Groups
Groups
Sign in
Groups
Groups
web2py japan
Conversations
About
Send feedback
Help
modulesフォルダー
27 views
Skip to first unread message
web2py@isumi
unread,
Mar 21, 2011, 7:15:01 PM
3/21/11
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 japan
mudules フォルダーの下にpythonモジュールを置きましたが、request,session,responceなどを参照できません。
そこでglobal()を__init__で渡してauthを真似して使うのですがうまく行きません。
一般にweb2pyでグローバル変数を扱う方法を説明している文書をご存知のかた教えてください。
shinriyo
unread,
Apr 11, 2012, 4:17:39 AM
4/11/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
こんにちは
modulesではないでしょうか?
こちらはグローバルオブジェクトとなるそうです。
request、response、session、cache、T
sessionで、このように"hoge"などを格納しておき
session
.
myvariable = "hoge"
こうやってあとで使えるようです。
a = session
.
myvariable
Reply all
Reply to author
Forward
0 new messages