Re: [web2py] Test if client has javascript

2011-02-09 Thread Running Clam
Hi, On 09/02/2011 09:46, m momin wrote: stop my mesage Every message from the list has a hint in the headers as to how to un-subscribe: - List-Unsubscribe: , You are sending your inst

Re: [web2py] Re: Next record in crud.create

2011-02-06 Thread Running Clam
Hi Massimo, On 06/02/2011 16:03, Massimo Di Pierro wrote: There is a shortcut for this: def add(): return dict(form=crud.create(db.accmgr,next='view/[id]')) Sorted - Thanks! -- Cheers, Clam

[web2py] Next record in crud.create

2011-02-06 Thread Running Clam
Hi All, Using CRUD methods, in a controller I have: - def update(): crud.settings.showid = True crud.settings.update_next = URL('view', args=[request.args(0),request.args(1)]) return dict(form=crud.update(db.accmgr, request.args(1))) ...and update_next takes me to view the

Re: [web2py] Search form in CRUD

2011-02-03 Thread Running Clam
Hi All, Not sure if anyone else has worked through the CRUD URLs described in the book on p317, but the search URL described does not work: - def client_search(): return dict(form=crud.search(db.client)) ...works as expected, but using: - def data(): return dict(form=crud()) ...and

[web2py] Search form in CRUD

2011-02-01 Thread Running Clam
Hi All, If I call "search" from a controller like: - def client_search(): return dict(form=crud.search(db.client)) ...and get the expected form, but using: - def data(): return dict(form=crud()) ...at: - [app]/crm/data/search/client ...I get a 404. Am I missing something? -- Cheer

[web2py] Re: URL formation in CRUD

2011-01-29 Thread Running Clam
See: http://groups.google.com/group/web2py/browse_thread/thread/8aab803ada993cd3#

[web2py] Re: Bugfix for full CRUD internal read links

2011-01-29 Thread Running Clam
Hi Bernd, Thank you - I think that solves a problem I've been wrestling with. -- Clam

[web2py] Re: URL formation in CRUD

2011-01-27 Thread Running Clam
Hi, OK, specifying the controller as follows: - crud.settings.controller = 'crm' ...as suggested by web2py.n00b resolves the controller name issue, and I feel suitably foolish for having overlooked it. However, the omission of the "data" function name still happens when I drill down to a record

[web2py] Re: URL formation in CRUD

2011-01-27 Thread Running Clam
Hi, On Jan 27, 1:56 pm, web2py noob wrote: > ref:http://web2py.com/book/default/chapter/07#CRUD > > crud.settings.controller = 'crm' > D'Oh! Will retest and report back as to how I got on. -- Clam

[web2py] Re: URL formation in CRUD

2011-01-27 Thread Running Clam
If this isn't something anyone else has encountered, can anyone clue me in as to how to start digging into this? I'm not sure whether to start with my own set-up (Windows, Version 1.91.6), or dive into the web2py source, which I've not had reason to do before...

[web2py] URL formation in CRUD

2011-01-26 Thread Running Clam
Hi, Having used web2py for a while using hand-written controllers and views, I'm trying to see how far I can get with CRUD alone, but I'm seeing some odd behaviour. If I create a controller called crm.py, and define "data" as a function as described in the book, when I call the function, [app]/cr

Re: [web2py] Re: CRUD and controllers

2010-07-21 Thread Running Clam
Hi Massimo, On 21/07/10 13:46, mdipierro wrote: Crud does not determine in which controller it is called. You need to do crud.settings.controller = 'MyController' I may be able to change this behavior anyhow. Aha - I had not realised this. Links in the data returned by "crud.tables()" are

[web2py] CRUD and controllers

2010-07-21 Thread Running Clam
Hi, I've been trying to get to grips with CRUD after previously doing things mostly manually, but I seem to have fallen at the first hurdle with "crud.tables()". If I call crud.tables() from a function called tables in MyController and just let the generic template render it, I do get the ex