Re: [web2py] Compile from command line

2011-09-05 Thread Anthony
On Monday, September 5, 2011 5:15:51 AM UTC-4, Thomas Bellembois wrote: > > > Sorry for this basic question about compiled apps: do we have to run > web2py in a different way with a compiled app ? or does web2py detect > that there is a compiled version ? No, just run as usual -- web2py will fi

[web2py] Re: how to avoid shell in the admin

2011-09-05 Thread Anthony
On Monday, September 5, 2011 12:18:28 PM UTC-4, Ramos wrote: > > hello, i dont like the shell in the admin because in windows i cannot > repeat last command also the pythonwin is way more friendly... > > 1 - in windows how can i do the shame as the admin shell using pythonwin or > just command li

[web2py] Re: button calling a action

2011-09-05 Thread Anthony
I think that's a Javascript error, not a web2py error. You probably need to put the URL in quotes, so: onclick="document.location='{{=URL(r=request,f='atualizar')}}'" Anthony On Monday, September 5, 2011 3:07:11 PM UTC-4, Fabiano Faver wrote: > > I'm tryng to put a button thaat calls a action

[web2py] Re: request.args inconsistent behaviour and ignoring URI valid characters

2011-09-05 Thread Noel Villamor
I see. So that explains the backtracking when two dots are in the URL (similar behaviour to cd .. at the command line).

[web2py] request.args inconsistent behaviour and ignoring URI valid characters

2011-09-05 Thread pbreit
It's hard to say exactly what is allowed but according to my reading of http://tools.ietf.org/html/rfc3986 * is definitely not allowed and . and .. may not be allowed in the path (since they have meaning in a file system).

[web2py] button calling a action

2011-09-05 Thread pbreit
Shouldn't you just be using a normal web2py form?

Re: [web2py] Re: testing scheduler in windows

2011-09-05 Thread Brian M
I think I've got the scheduler sorted out for windows (other than a lack of debug messages from the workers, suspect it's due to a lack of os.fork()). My TypeError: demo1() keywords must be strings was fixed with http://stackoverflow.com/questions/956867/how-to-get-string-objects-instead-unico

[web2py] Re: button calling a action

2011-09-05 Thread Noel Villamor
I found this for you: http://www.plus2net.com/html_tutorial/button-linking.php Try this: Noel On Sep 6, 7:07 am, Fabiano Faver wrote: > I'm tryng to put a button thaat calls a action which in the end will > redirect to another page. but its like the function is not known. > > I've tryed in v

[web2py] request.args inconsistent behaviour and ignoring URI valid characters

2011-09-05 Thread Noel Villamor
I am trying to pass a '.' and a '*' as parameters to a controller function. controller: test.py def t(): arr = request.args return 'alert("%s");' % repr(arr) url: /myapp/test/t/1/2/3 alert: ['1', '2', '3'] With one dot in between 1 and 3 url: /myapp/test/t/1/./3 alert: ['1', '3'] With t

Re: [web2py] Re: testing scheduler in windows

2011-09-05 Thread Brian M
OK, I've managed get the scheduler to partially work under windows. I had to add if __name__ == '__main__': to web2py.py right before actually starting web2py (line 19). This appears to have solved the problem of web2py starting over and over again, now when I run python web2py.py -K scheduler

Re: [web2py] Re: testing scheduler in windows

2011-09-05 Thread Brian M
OK, I've got the scheduler reliably (I think) working now under Linux - I just changed my patch mentioned above a bit to make it so that WEB2PY_PATH would work even if you didn't launch from the same folder as web2py is in. At line 61, replace: if 'WEB2PY_PATH' in os.environ: sys.path.appen

[web2py] button calling a action

2011-09-05 Thread Fabiano Faver
I'm tryng to put a button thaat calls a action which in the end will redirect to another page. but its like the function is not known. I've tryed in view: and: in controller: def atualizar(): #add some code here later redirect(URL('index')) butthis is what I got: Un

[web2py] appadmin and db.Table definition

2011-09-05 Thread pbreit
Is there some reason your table definitions depart so significantly from what is shown in the docs?

Re: [web2py] upload/post of semi-large files

2011-09-05 Thread Carlos
Hi Roberto, I was just about to post the solution I found: precisely what you mention :-) client_max_body_size 10M; Thanks!, Carlos

Re: [web2py] upload/post of semi-large files

2011-09-05 Thread Roberto De Ioris
> Hi, > > My production environment is ubuntu, postgresql, uwsgi and nginx. > > The issue I'm having is when posting a form with a semi-large file (~2 > mb), > where it keeps 'resetting' the % uploaded every 30 seconds up to 2 to 3 > times, and finally failing (with no specific error that I could

[web2py] Re: Problem with SQLFORM.grid

2011-09-05 Thread brushek
Can anybody help ? or grid and smartgrid shouldn't be used with custom fields ? Regards brushek On 5 Wrz, 16:22, brushek wrote: > On 5 Wrz, 15:55, Johann Spies wrote: > > > Hallo Brushek, > > > I am also trying out SQLFORM.grid/smartgrid and learn as I go. > > > @auth.requires_login()> def doda

[web2py] how to avoid shell in the admin

2011-09-05 Thread António Ramos
hello, i dont like the shell in the admin because in windows i cannot repeat last command also the pythonwin is way more friendly... 1 - in windows how can i do the shame as the admin shell using pythonwin or just command line python? 2 - in windows in command line python how do i execute a functi

Re: [web2py] Re: testing scheduler in windows

2011-09-05 Thread Brian M
I found that under linux I was able to get the scheduler to successfully run a task by making sure os.environ['WEB2PY-PATH'] was defined. What I did was edit gluon/scheduler.py and change lines 61-62 from if 'WEB2PY_PATH' in os.environ: sys.path.append(os.environ['WEB2PY_PATH']) to if 'WEB2P

Re: [web2py] Re: testing scheduler in windows

2011-09-05 Thread Brian M
I just put together an Ubuntu VM to test in and yeah, the scheduler doesn't work quite right there either. First off it appears that the DB tables don't get defined there either without intervention -- I changed migrate=False to migrate=True on line 265 and then running *python web2py.py -K sc

[web2py] Re: uploading my web2py website

2011-09-05 Thread Web2Py Freak
what is shared hosting ?? and when i finish my website do i need to add somthing so my website will work online am realu confused now am reading stuff sgi and things i dont understand .. please help

[web2py] Re: appadmin and db.Table definition

2011-09-05 Thread Manuele
ok everything goes fine without specifying "unique=True" option... but it why? anyway the traceback didn't help in any way... could it be a sort of bug?? thankyou Manuele On 05/09/2011 18:31, Manuele wrote: Hi, if you simply cut & paste the following code in a model of a generic app may

[web2py] Re: uploading my web2py website

2011-09-05 Thread annet
Hi, I deploy my apps on Mac OS X Leopard Server ... I guess it won't be of much help to tell you how to set up an deployment environment on it. Did you have a look at Denes his post on web2py hosting? http://groups.google.com/group/web2py/browse_thread/thread/7b648be5588e84be Also, isn't this

Re: [web2py] Re: testing scheduler in windows

2011-09-05 Thread Martín Mulone
The new version is completely broke in linux too, I confirm this. Exception in thread Thread-1: Traceback (most recent call last): File "C:\Python26\lib\threading.py", line 525, in __bootstrap_inner self.run() File "C:\Users\Brian\Documents\development\web2py\google hg repo\trunk\gluon\s c

[web2py] Re: uploading my web2py website

2011-09-05 Thread Web2Py Freak
guys , what is the best web2py host and what to do when i have a domin , i packed everythin so what now ???

[web2py] Re: uploading my web2py website

2011-09-05 Thread annet
Hi Antonio, > Do we have a woman here? > We are not alone :) Yes, you do. Kind regards, Annet.

[web2py] appadmin and db.Table definition

2011-09-05 Thread Manuele
Hi, if you simply cut & paste the following code in a model of a generic app maybe you'll get a table called layers_wms in your database without any problem but if you try to insert a record in it you'll get the traceback reported after. Can you help me to understand why I get this traceback

[web2py] upload/post of semi-large files

2011-09-05 Thread Carlos
Hi, My production environment is ubuntu, postgresql, uwsgi and nginx. The issue I'm having is when posting a form with a semi-large file (~2 mb), where it keeps 'resetting' the % uploaded every 30 seconds up to 2 to 3 times, and finally failing (with no specific error that I could see). I thou

[web2py] Re: uploading my web2py website

2011-09-05 Thread Web2Py Freak
Annet , i meent to take it online to a host , i packed everything and uploaded it to a python server it didnt work , i really dont know what to do .. now i have a domain and i want to use my site in it , tell me how to do that please ? Thank you alot

[web2py] Re: Problem with SQLFORM.grid

2011-09-05 Thread brushek
On 5 Wrz, 15:55, Johann Spies wrote: > Hallo Brushek, > > I am also trying out SQLFORM.grid/smartgrid and learn as I go. > > @auth.requires_login()> def dodajserwer(): > >    response.flash = T('Serwery') > >    form=SQLFORM.grid(db.serwery) > > Apparently the usage is either SQLFORM.smartgrid(t

Re: [web2py] Re: uploading my web2py website

2011-09-05 Thread António Ramos
Do we have a woman here? We are not alone :) Best regards António 2011/9/5 annet > Hi, > > > anyone can tell me how to upload my website online, what file do i > > pick?? > > At http://127.0.0.1:8000/admin/default/site: you simply click your > app's 'pack all' link. > > > At https://www.yourdo

[web2py] Re: uploading my web2py website

2011-09-05 Thread annet
Hi, > anyone can tell me how to upload my website online, what file do i > pick?? At http://127.0.0.1:8000/admin/default/site: you simply click your app's 'pack all' link. At https://www.yourdomain.com/admin/default/site In the upload and install form browse to e.g.: /Users/you/downloads/ web2

Re: [web2py] Problem with SQLFORM.grid

2011-09-05 Thread Johann Spies
Hallo Brushek, I am also trying out SQLFORM.grid/smartgrid and learn as I go. @auth.requires_login() > def dodajserwer(): >response.flash = T('Serwery') >form=SQLFORM.grid(db.serwery) > > Apparently the usage is either SQLFORM.smartgrid(table) or SQLFORM.grid(query) Try 'form = SQLFORM

[web2py] Re: testing scheduler in windows

2011-09-05 Thread Niphlod
same thing happened here, but only the second time I ran web2py -K it was able to load pending scheduled tasks. it definitely spans a new subprocess every few seconds until task manager is clobbered .

[web2py] DAL reserved keywords (Inherited method from dictionary)

2011-09-05 Thread max
Hi web2py users, currently i am working with the newest version of dal with an existing (and currently in use by other users) database structure (Postgres), so i can't change any field-name or something like that. In this Database is the field 'values' defined. But if I try to connect via psyco

[web2py] Facebook Auth & password cleanup

2011-09-05 Thread Bruno Rocha
Hi, I am using Michele's Facebook API, works like a charm (with few modifications) But, every time an existing user signin-in the password is cleaned, I would like to keep the password unchanged because my users will login via facebook and normal auth. I changed a littlem included more permissio

[web2py] uploading my web2py website

2011-09-05 Thread Web2Py Freak
hey guys , anyone can tell me how to upload my website online , what file do i pick ?? helppp

[web2py] help setting up web2py on a shared host

2011-09-05 Thread Brenty
I would really appreciate some help setting up web2py on a shared host. I have followed the "Shared Hosting with mod_python" part of The Book. When I try to access the application, the webpage displays "[an error occurred while processing this directive]". The URLs http://www.lisjac.com/web2py2,

Re: [web2py] Compile from command line

2011-09-05 Thread Thomas Bellembois
Le 29/08/2011 04:40, Mike Veltman a écrit : here: http://thadeusb.com/weblog/2010/4/21/compile_web2py_apps_externally python -c "import gluon.compileapp; gluon.compileapp.compile_application('applications/')" On Sun, Aug 28, 2011 at 10:05 PM, Mike Veltman wrote: Its pretty annoying because I

[web2py] Problem with SQLFORM.grid

2011-09-05 Thread brushek
Hello, I have following table with custom type (database: postgres): from gluon.sql import SQLCustomType inet = SQLCustomType ( type='string', native='inet', encoder=lambda x: repr(str(x))) db.define_table("serwery", Field("id_klienci",db.klienci), Field("ip_serwera",type=inet,requ