[web2py] "One click" start for local development?
Is there a way to start up the local server without needing to use the GUI? Something like: $ python web2py.py --port=8000 --admin- password= And then just have it start as if I hit the "Start Server" button? Thanks. -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/web2py?hl=en.
[web2py] Re: sqlite & development
This is another great tool: https://addons.mozilla.org/en-US/firefox/addon/5817 A Firefox extension for managing Sqlite databases. On Mar 26, 2:50 pm, Yarko Tymciurak wrote: > I recently had a need to quickly look at sqlite data tables (not a > web2py app) - and was rather pleased with this tcl/tk written tool: > > http://sqlitestudio.one.pl/ > > I will try using this for a while to monitor data during development / > debugging cycles. > > Maybe you'll find it useful too. > > Regards, > - Yarko -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/web2py?hl=en.
[web2py:37244] Using db in uploaded modules
I have a module that I uploaded to an application, and I was wondering if there is a way that I can access my databases within the module. I imagine it is just a matter of importing the right things, but I don't know what all I need to import. -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/web2py?hl=en.
[web2py:37269] Re: Using db in uploaded modules
Thanks - Passing db into the module works as I wanted it to. On Dec 15, 11:45 am, mdipierro wrote: > Is the module imported by web2py? If not you need to pass the db to > thsoe functions/classes defined in the module that need to use it. > > Else you should probably run web2py -S app -M -R yourmodule.py > > On Dec 15, 12:28 pm, Hillman wrote: > > > I have a module that I uploaded to an application, and I was wondering > > if there is a way that I can access my databases within the module. I > > imagine it is just a matter of importing the right things, but I don't > > know what all I need to import. > > -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/web2py?hl=en.
[web2py:37302] TypeError: 'NoneType' object is not iterable error when inserting on GAE
I get the following error: Traceback (most recent call last): File "C:\DropBox\My Dropbox\Programming Projects\Python \google_appengine\hillmanwork\gluon\restricted.py", line 173, in restricted exec ccode in environment File "C:\DropBox\My Dropbox\Programming Projects\Python \google_appengine\hillmanwork\applications\default/controllers/ word0.py:index", line 21218, in File "C:\DropBox\My Dropbox\Programming Projects\Python \google_appengine\hillmanwork\gluon\globals.py", line 96, in self._caller = lambda f: f() File "C:\DropBox\My Dropbox\Programming Projects\Python \google_appengine\hillmanwork\applications\default/controllers/ word0.py:index", line 2, in index File "C:\DropBox\My Dropbox\Programming Projects\Python \google_appengine\hillmanwork\gluon\contrib\gql.py", line 137, in __call__ return Set(self, where) File "C:\DropBox\My Dropbox\Programming Projects\Python \google_appengine\hillmanwork\gluon\contrib\gql.py", line 573, in __init__ self._tables = [filter.left._tablename for filter in where.filters] TypeError: 'NoneType' object is not iterable when executing the following line of code: db(db.word.insert(word = 'aa')) The table definition is: db.define_table('word', SQLField('word', 'string')) I am running web2py version 1.74.1, by the way. Everything works fine on the local sqlite db, but not when uploaded to GAE, or run with the GAE local launcher. Any hints? Thanks. -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/web2py?hl=en.
[web2py:37318] Re: TypeError: 'NoneType' object is not iterable error when inserting on GAE
Thanks. I am not sure where I got the syntax I was using. Also, I find it odd that the syntax that shouldn't work actually does when working with a sqlite db. On Dec 15, 7:09 pm, mdipierro wrote: > This line > > db(db.word.insert(word = 'aa')) > > is not a valid DAL syntax. > > db.word.insert(word = 'aa') is correct and > db(query).select() > > is correct but the result of the insert is not a query. > > Massimo > > On Dec 15, 7:11 pm, Hillman wrote: > > > I get the following error: > > > Traceback (most recent call last): > > File "C:\DropBox\My Dropbox\Programming Projects\Python > > \google_appengine\hillmanwork\gluon\restricted.py", line 173, in > > restricted > > exec ccode in environment > > File "C:\DropBox\My Dropbox\Programming Projects\Python > > \google_appengine\hillmanwork\applications\default/controllers/ > > word0.py:index", line 21218, in > > File "C:\DropBox\My Dropbox\Programming Projects\Python > > \google_appengine\hillmanwork\gluon\globals.py", line 96, in > > self._caller = lambda f: f() > > File "C:\DropBox\My Dropbox\Programming Projects\Python > > \google_appengine\hillmanwork\applications\default/controllers/ > > word0.py:index", line 2, in index > > File "C:\DropBox\My Dropbox\Programming Projects\Python > > \google_appengine\hillmanwork\gluon\contrib\gql.py", line 137, in > > __call__ > > return Set(self, where) > > File "C:\DropBox\My Dropbox\Programming Projects\Python > > \google_appengine\hillmanwork\gluon\contrib\gql.py", line 573, in > > __init__ > > self._tables = [filter.left._tablename for filter in > > where.filters] > > TypeError: 'NoneType' object is not iterable > > > when executing the following line of code: > > > db(db.word.insert(word = 'aa')) > > > The table definition is: > > > db.define_table('word', > > SQLField('word', 'string')) > > > I am running web2py version 1.74.1, by the way. > > > Everything works fine on the local sqlite db, but not when uploaded to > > GAE, or run with the GAE local launcher. > > > Any hints? > > > Thanks. > > -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/web2py?hl=en.
[web2py:37643] Re: LOAD function anybody?
This is awesome! I wish I would have been aware of this sooner. Nice work, very well executed. On Dec 18, 8:19 pm, mdipierro wrote: > http://www.web2py.com/AlterEgo/default/show/252 -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/web2py?hl=en.
[web2py:37644] Re: LOAD function anybody?
This is awesome! I wish I would have been aware of this sooner. Nice work, very well executed. On Dec 18, 8:19 pm, mdipierro wrote: > http://www.web2py.com/AlterEgo/default/show/252 -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/web2py?hl=en.