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
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
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
I see. So that explains the backtracking when two dots are in the URL
(similar behaviour to cd .. at the command line).
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).
Shouldn't you just be using a normal web2py form?
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
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
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
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
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
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
Is there some reason your table definitions depart so significantly from what
is shown in the docs?
Hi Roberto,
I was just about to post the solution I found: precisely what you mention
:-)
client_max_body_size 10M;
Thanks!,
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
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
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
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
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
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
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
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
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
guys ,
what is the best web2py host and what to do when i have a domin , i
packed everythin so what now ???
Hi Antonio,
> Do we have a woman here?
> We are not alone :)
Yes, you do.
Kind regards,
Annet.
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
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
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
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
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
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
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
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 .
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
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
hey guys ,
anyone can tell me how to upload my website online , what file do i
pick ?? helppp
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,
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
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
39 matches
Mail list logo