Groups
Groups
Sign in
Groups
Groups
web2py japan
Conversations
About
Send feedback
Help
web2pyでのmodelの流儀
52 views
Skip to first unread message
shinriyo
unread,
Apr 18, 2012, 3:30:20 AM
4/18/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to web2py...@googlegroups.com
お世話になっています。杉田です。
ドキュメントにも多々見られますが、web2.pyの流儀では、modelフォルダのdb.py
にテーブル定義をすべて記載しているものを度々目にします。
例えば、
http://www.web2py.com/examples/default/examples
にある「Example 29」ですが、
modelのなかにperson.py、dog.py、product.py、purchase.py
などに複数分けるというようなことはあまりしないのでしょうか?
kato
unread,
Apr 18, 2012, 5:28:40 PM
4/18/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to web2py...@googlegroups.com
この件は、私もあまり分かりません。
しかし一件のDB定義に、モデルファイルを一つ割り当てるというのは、常識的には実施しない方法だと思います。
2012年4月18日16:30 shinriyo
<
shin...@gmail.com
>
:
ochi...@gmail.com
unread,
Apr 18, 2012, 6:17:21 PM
4/18/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to web2py...@googlegroups.com
テーブルごとにファイルを分けることはしませんが、通常は、テーブルの記述だけをひとつのファイル(db_appname.py)にまとめる場合が多いです。
Sent from my Verizon Wireless BlackBerry
From:
kato <
hi21a...@yahoo.co.jp
>
Sender:
web2py...@googlegroups.com
Date:
Thu, 19 Apr 2012 06:28:40 +0900
To:
<
web2py...@googlegroups.com
>
ReplyTo:
web2py...@googlegroups.com
Subject:
Re: web2pyでのmodelの流儀
Reply all
Reply to author
Forward
0 new messages