[web2py] request.vars is empty when variable has leading underscore

2011-05-28 Thread Geoff
Hello: I was following the internationalization video tutorial and stumbled upon an issue that has left me confused. In the tutorial, a variable called _language=en is appended to the URL such as, 127.0.0.1/default/index?_language=test However, when I do this, request.get_vars is empty but requ

[web2py] Re: moving from Drupal to Web2py

2011-03-21 Thread geoff golder
You would have to write your own migration. There are pretty good snipptets and modules around for getting data out of Drupal; but you are going to have to create your own table structure to handle nodes and comments. Users should go pretty smoothly; depending on how much 'profile' information yo

[web2py] Error in book re Indexes

2010-09-13 Thread geoff
http://web2py.com/book/default/chapter/06#Indexes Here is an example of how to create an index using SQL in SQLite: 1. 2. 3. >>> db = DAL('sqlite://storage.db') >>> db.define_table('person', Field('name')) >>> db.executesql('CREATE INDEX IF NOT EXISTS myidx ON person name;) Other database dialec

[web2py] fast lookups on secondary unique key? also, error in book and code check

2010-09-10 Thread geoff
http://web2py.com/book/default/chapter/06#Indexes The example appears to be missing a quote. Adding the missing single-quote I am still getting a syntax error: Error traceback File "/web2py/web2py/gluon/restricted.py", line 186, in

Re: [web2py] AJAX issue with '#' in URL

2010-09-10 Thread geoff
In your controller you could check for the # and strip it? Alternatively, I believe you can have your onclick return false which will avoid the # On Sat, 2010-09-04 at 14:45 -0700, weheh wrote: > I have a controller that takes an argument, which is the id of a row > in mytable. If the arg is pres

Re: [web2py] Re: Parent -> Child Models in a single form

2010-09-08 Thread geoff
This works for me now. Indeed it was the formatting. Probably on my end. Of course this does not really solve an 'address' issue if an address is more than one field, which is the case for both myself and the original poster. In any case, that is a wonderful widget! Best, Geoff

Re: [web2py] Re: Parent -> Child Models in a single form

2010-09-08 Thread geoff
This breaks, I believe formatting is the culprit. I was not able to fix it right away. On Wed, 2010-09-08 at 13:27 -0700, mdipierro wrote: > A little better: > > > def ListStringWidget(field,value,**attributes): > _id = '%s_%s' % (field._tablename, field.name) > _name = field.name >

Re: [web2py] Re: Parent -> Child Models in a single form

2010-09-08 Thread geoff
this particular problem. Thanks Geoff On Wed, 2010-09-08 at 12:46 -0700, mdipierro wrote: > How about this? > > def ListStringWidget(field,value,**attributes): > _id = '%s_%s' % (field._tablename, field.name) > _class = isinstance(field.type,str) and fie

Re: [web2py] Re: Parent -> Child Models in a single form

2010-09-08 Thread geoff
similar functionality to Portly, and don't really want to go the iframe route. Specifically I need to show the 'children' of a table in the same input form as the parent. Thanks Geoff On Fri, 2010-09-03 at 05:28 -0700, Dominic wrote: > We (Sahana-Eden) use to do such things with web2

[web2py] importing into web2py when too complex for csv, best place to do it?

2010-09-02 Thread geoff
ll likely be an iterative process with some amount of wiping the db and going again. Looking for any tips here. Also, is it appropriate to send code for review into this list from time to time? Thanks a lot Geoff