[web2py] Re: Migrating only a single auth table ?

2014-11-23 Thread Chris Baron
Ah, I think I understand. Thank you. On Wednesday, November 19, 2014 10:29:17 AM UTC-6, Leonel Câmara wrote: > > No it won't fail, it won't try to recreate auth_user unless you deleted > your .table files, in which case you need to do a fake migration first. > -- Resources: - http://web2py.com

[web2py] Re: Migrating only a single auth table ?

2014-11-19 Thread Chris Baron
"Then you can define your auth.settings.extra_fields['auth_group'], put your extra columns there, and do a regular migration." -- This is the first thing I tried to do. Won't that fail because auth_user already exists? I only want to migrate a single table -- auth_group. On Wednesday, Novembe

[web2py] Migrating only a single auth table ?

2014-11-18 Thread Chris Baron
I am trying to add columns to auth_group, but the migration breaks here : auth.define_tables(username=False, signature=False, migrate=True) It tries to migrate auth_user first, and fails because it already exists. How do I migrate only the auth_group table ? -- Resources: - http://web2py.com

[web2py] Re: powertable ( multiple tables on the same page )

2011-07-20 Thread Chris Baron
e dict. > > 2011/7/20 Chris Baron > > > > > > > > > I'm still having a problem getting two powertables on one page.  If I > > comment out the code for the second powertable, everything is fine, > > but it seems the first powertable can't

[web2py] Re: powertable ( multiple tables on the same page )

2011-07-20 Thread Chris Baron
On Jul 20, 9:40 am, Chris Baron wrote: > Thank you for the prompt responses. > > On Jul 19, 4:12 pm, Roberto Perdomo wrote: > > > > > > > > > Hello, it's me again. > > > Well, I discovered that the problem of loading the table with "load&qu

[web2py] Re: powertable ( multiple tables on the same page )

2011-07-20 Thread Chris Baron
ry hevy for the group mail. > > >> > 2011/7/18 Bruno Rocha > > >> > > include ownTable._id = "something" and ownTable._class = "something" > >> to set > >> > > different class and id to the tables. &g

[web2py] Re: powertable ( multiple tables on the same page )

2011-07-18 Thread Chris Baron
t; different class and id to the tables. > > On Mon, Jul 18, 2011 at 12:57 PM, Chris Baron wrote: > > > > > > > > > > > How do you do it ? > > > Here is my controller : > > > ownDataSource = db( db.gtree.contributor == &#x

[web2py] powertable ( multiple tables on the same page )

2011-07-18 Thread Chris Baron
How do you do it ? Here is my controller : ownDataSource = db( db.gtree.contributor == ' '.join( [ auth.user.first_name, auth.user.last_name ] ) ).select() class ownVirtualFields(object): @virtualsettings(label='Tree') def tree_url(self): gtree = self.gtree.id

[web2py] Janrain login_next

2011-06-24 Thread Chris Baron
Hi web2py users, I'm using Janrain for login. What's the best way to have a proper redirect after login? I would like to redirect to be the location visited before the login page. When a non logged in user attempts to access a page that requires login, they are redirected to the login page, and

[web2py] Unable to access admin, one other application

2011-02-22 Thread Chris Baron
250 S'' p251 sS'fieldname' p252 S"'graftedTreeId'" p253 sS'rtable' p254 S"}>" p255 sS'ref' p256 S"'graftedTree'" p257 sS'self' p258 S"}>" p259 sssS'traceback' p260 S'Traceback (most recent call last):\n File "/Users/cbaron/Desktop/ web2py/gluon/restricted.py", line 188, in restricted\nexec ccode in environment\n File "/Users/cbaron/Desktop/web2py/applications/ pluginApp/models/plugin_treeGrafter.py", line 22, in \n Field( \'affectedNodeId\', db.node ) )\n File "/Users/cbaron/Desktop/ web2py/gluon/dal.py", line 3493, in define_table\n t._create_references()\n File "/Users/cbaron/Desktop/web2py/gluon/ dal.py", line 3795, in _create_references\nraise SyntaxError, "Table: table \'%s\'does not exist" % rtablename\nSyntaxError: Table: table \'graftedTree\'does not exist\n' p261 s. Thanks in advance, Chris Baron

[web2py] Re: Multi Tabbed Menu - Any Suggestions.

2011-01-06 Thread Chris Baron
http://jqueryui.com/demos/tabs/ You could also try writing your own if you're not happy with the way it works. Use the jquery code as a reference. On Jan 5, 11:58 pm, "David J." wrote: > I was wondering if anyone on the list has seen an good multi-level > horizontal tab menu. > > I have > > >

[web2py] Re: python list serialization to json

2010-12-30 Thread Chris Baron
Its not my day for posting. request.vars.tabs is a list of strings in python when it gets to the controller. The response.json does exactly what its supposed to do. Sorry for the spam. On Dec 30, 12:59 pm, Chris Baron wrote: > In my controller: > > def default(): >     f=open(&#x

[web2py] python list serialization to json

2010-12-30 Thread Chris Baron
In my controller: def default(): f=open('/tmp/debug','w') f.write( str( request.vars.tabs ) )f.write( '\n' ) f.write( response.json(request.vars.tabs) ) return dict( tabs = response.json(request.vars.tabs) ) In /tmp/debug ["{'text': 'Tree List', 'args': {'trees': 'db.tree.id

[web2py] another component question

2010-11-10 Thread Chris Baron
Hello web2py users, I've been playing around with components recently and they are helping me modularize my application. I was hoping someone could explain to me why they do what they do. I've noticed that when a controller function that is referenced by a component returns a dict(), it require

[web2py] Render svg using web2py without js library

2010-10-27 Thread Chris Baron
Thanks in advance, Chris Baron