Re: [web2py] Re: Maintenance Mode

2012-11-25 Thread Martin Weissenboeck
2012/11/25 howesc > Martin, > > 1. i didn't know about maintenance modehow do you trigger it? i > suspect there is a way to route it to use a particular set of view(s) > Howesc, it's the enable / disable button to be found on the admin page. > > 2. there is a request.is_local i believe

[web2py] Re: wxpython app using web2py username and password

2012-11-25 Thread dlypka
Sample controller code: (This is not production quality code. It is meant only to suggest an approach to use). def isloggedin_cookieless0(self): request,response,session,cache,T,db=self._globals() retIsLoggedIn = False person_id = session.person_id retIsLoggedIn = True if person_id else Fals

[web2py] getting access to sqlform.grid forms in a view

2012-11-25 Thread david.waldrop
I am using sqlform.grid and would like to control the display of the update form. I read and saw several posts form which I 1) I see the formname parameter on the sqlgrid and am using the default "web2py_grid. 2) I also saw a post referencing the name of the various forms (I am interested i

[web2py] Re: Administrator Password Field not shown

2012-11-25 Thread dhmorgan
which method are you using to run web2py? what url are you using access admin if you do a fresh install of web2py and start development server with " python web2py.py -a 'admin' " and then go to " http://localhost:8000/welcome/admin ", does the admin form look okay there? if you are running

[web2py] Re: getting access to sqlform.grid forms in a view

2012-11-25 Thread david.waldrop
> > Oops - dumb question - I figured it out. One has to reference the sqlgrid > variable name passed to the view. In my case "results". However, I now > cannot seem to change the width of the desired element, but I can change > the number of rows. Any ideas? {{extend 'layout.html'}} {{if

[web2py] Row level access on GAE datastore

2012-11-25 Thread Gian Luca Decurtins
Hi all How do I enable row level access features on GAE datastore? In the documentation is written that the accessible_query does not work because of the usage of JOIN. Is there an other way of using it? I think it could work using google:sql instead of google:datastore, but I'm trying to avoid

[web2py] how to pre-default an upload field type

2012-11-25 Thread wwwgong
Hi, I like to build a small web2py app to manage documents on my computer. e.g. db.define_table('docs', Field('filename'), Field('filetype'), Field('category'), Field('description'), Field('filepath','upload') ); If I like to create a new document,e.g. 'test.doc', how can web

[web2py] Re: web2py shell window problem

2012-11-25 Thread Nico Zanferrari
Il giorno sabato 24 novembre 2012 15:15:40 UTC+1, Massimo Di Pierro ha scritto: > > Please open a ticket about this. > > Thank you Massimo! Ticket 1185 opened. Cheers, Nico --

[web2py] Re: Sharing a database between apps

2012-11-25 Thread pumplerod
Sorry, I'm a little unclear on the manual explanation. as an example, given app1 and app2 I want to have app2 share the database I have built in app1 So do I change the app2/models/db.py file to show: db = DAL('sqlite://storage.sqlite',migrate='false') ? and include all other myModel.py files

[web2py] Re: Newbie: Cascading deletes with SQLFORM.grid and GAE

2012-11-25 Thread Julian Sanchez
Oh, I see. I thought that were you mentioned logs you were referring to the built-in logs inside web2py (I assume there are some?). As far as my 'test app' is concerned all there is is the code I posted a couple of posts ago. I also added these controllers for testing the deletion of records:

Re: [web2py] Re: we should support this in DAL

2012-11-25 Thread Mark Kirkwood
I am wondering if there are some deeper issues getting NoSQL support in Web2py - for instance the model part seems pretty tied into relational ideas (e.g db.define_table and ..references db.dog etc). This design works really well and insulates developers from much of the fiddlyness of dealing

[web2py] informix standard engine

2012-11-25 Thread Wouter Pronk
Hello All, I'm trying to connect to an external Informix Standard Enigine database. This works when I use Informixdb (python-module), but in web2py I get the following error when go to the database administration: ValueError: invalid literal for int() with base 10: '| My db.py looks like this