I noticed that if i create a new application and then press the return
button in my browser, web2py will try to resubmit the form. For what i
understand, this happens because there should be a redirect after the
form submission. Is this correct? Was this "behavior" planned?
--~--~-~--~
Entrando!!!
On 11 abr, 17:10, "pirata.dabaixada"
wrote:
> Já entrei !
>
> g-man escreveu:
>
> > Tudo bem!
>
> > On Apr 11, 11:35 am, Álvaro Justen [Turicas]
> > wrote:
>
> >> Para quem fala Português, entre agora mesmo na lista de usuários
> >> brasileiros do web2py. :-)
> >> Participe e chame
hi all, how can I verify if there are users currently connected to my
web2py application? I just want to know if there is at least one. The
evolution of this question could be: how could I notify my app's users
that I will stop the application for maintenance?
thanks for hints,
Marco
--~--~--
Hi! I'm new to web2py(as new as it gets), and i'm having some trouble
with authentication stuff. Like, how to reference to it in db.py and
stuff. So, if someone could tell me of a nice article covering the
subject, i would love to read it = ]
--~--~-~--~~~---~--~~
Y
Nice =D I made a forum myself some time ago, with django, and yours
looks great!
On 14 abr, 01:28, Speedbird wrote:
> Released a couple of minutes ago, the update contains Pseudo-html code
> support added, and a little bit of code cleanup, read what this update
> contain athttp://www.pyforum.org
I am using this now...
http://mdp.cti.depaul.edu/AlterEgo/default/show/101
On Tue, 2009-04-14 at 00:51 -0700, Italo Maia wrote:
> Hi! I'm new to web2py(as new as it gets), and i'm having some trouble
> with authentication stuff. Like, how to reference to it in db.py and
> stuff. So, if someone
Err... oops..
http://mdp.cti.depaul.edu/examples/default/tools#authentication
This will help a lot more.
BR
-Jason
On Tue, 2009-04-14 at 00:51 -0700, Italo Maia wrote:
> Hi! I'm new to web2py(as new as it gets), and i'm having some trouble
> with authentication stuff. Like, how to reference to i
Thanks Julio,
I changed some things around but still have not got it working. Here
is my code:
now I have a problem with "id"
model:
db.define_table("prodj",
SQLField("timestamp",'datetime',default=now),
SQLField("uuid",length=128,writable=False,default=str(uuid.uuid4
())),
SQLField(
Cool, thanks :-)
On Apr 10, 6:13 pm, mdipierro wrote:
> db(db.name.like('%alex%)).select()
>
> On Apr 10, 4:04 pm, "web2py <<>> technicalbloke.com"
>
> wrote:
> > I can't seem to find a clear example of using 'like' in database
> > selects.
>
> > I'd like to do something like...
>
> > SELECT *
cool, keep up the good work!
On Apr 14, 9:54 am, Italo Maia wrote:
> Nice =D I made a forum myself some time ago, with django, and yours
> looks great!
>
> On 14 abr, 01:28, Speedbird wrote:
>
> > Released a couple of minutes ago, the update contains Pseudo-html code
> > support added, and a li
Hi!
I tested with 1.60 and that query still doesn't work. Can this be
resolved?
Btw, is it possible to use the Entity key instead of an incrementing
id? May be that would work?
Thank you
Ramon
On Mar 9, 3:07 am, rbuc wrote:
> Hi!
>
> any progress on this? the query doesn't seem to work with
I don't follow. What does the shell choice got to do with tickets,
especially in this (automated invocation) context ?
On Apr 13, 6:59 am, Yarko Tymciurak wrote:
> ...and even worse, the shell could be any number of applications (well -
> python or ipython at least...)
>
> On Wed, Apr 8, 2009 at
Yes, that syntax would cover it (not sure how obvious it would be to
newbies, though).
Massimo: the result should be something like "user input string" LIKE
table.keyword_column
On Apr 13, 3:30 pm, Wes James wrote:
> On Sat, Apr 11, 2009 at 11:20 PM, mdipierro wrote:
>
> > I do not understand.
Hint:
I don't believe You can notify user's - except if You have a
javascript, which pulls notifications (if any) from the server (with
certain intervals).
Regards Niels Bjerre
On Apr 14, 9:40 am, Marco Prosperi wrote:
> hi all, how can I verify if there are users currently connected to my
>
Hint
You could save session-records to the database and se who has recently
started a session (Modified Datetime). But it is difficult to notify
the user - except when he calls a controller/function.
On Apr 14, 9:40 am, Marco Prosperi wrote:
> hi all, how can I verify if there are users current
this line
discuss=db(db.discuss.id==prodj.id).select(orderby=~db.discuss.score)
should be
discuss=db(db.discuss.id==prodj).select(orderby=~db.discuss.score)
On Apr 14, 4:52 am, murray3 wrote:
> Thanks Julio,
> I changed some things around but still have not got it working. Here
> is my code:
I think the forum is excellent but you need a better logo image. ;-)
On Apr 14, 5:13 am, rbuc wrote:
> cool, keep up the good work!
>
> On Apr 14, 9:54 am, Italo Maia wrote:
>
> > Nice =D I made a forum myself some time ago, with django, and yours
> > looks great!
>
> > On 14 abr, 01:28, Speedb
Please use 1.61 (it is faster on GAE).
That query still does not work.
On Apr 14, 5:12 am, rbuc wrote:
> Hi!
>
> I tested with 1.60 and that query still doesn't work. Can this be
> resolved?
>
> Btw, is it possible to use the Entity key instead of an incrementing
> id? May be that would work?
>
Hi,
I'm a newbie for this framework, so i'm facing problems using
Ajax. I actually want to create a form with a select option for the
user. Based on the selection he makes, another select menu should be
displayed with a few more options. And based on this selection, yet
another selection men
I've created a simple appliance, and it needs to be in Chinese as
default language, En as a fall back.
Setting it using browser is not ideal as users are multi-lingual and
probably accessing from public computer.
I've tried putting this into the controller but to no avail.
def index():
request
T.force('en-zh')
On Apr 14, 6:20 am, CK Ng wrote:
> I've created a simple appliance, and it needs to be in Chinese as
> default language, En as a fall back.
> Setting it using browser is not ideal as users are multi-lingual and
> probably accessing from public computer.
>
> I've tried putting th
with "press the return button in my browser," do you mean the "back"
button?
I am not sure how to avoid this. Any advice?
Massimo
On Apr 14, 2:09 am, Italo Maia wrote:
> I noticed that if i create a new application and then press the return
> button in my browser, web2py will try to resubmit t
I usually do
db(db.name.like('%'+user_input_string+'%')).select()
On Apr 14, 6:51 am, AchipA wrote:
> Yes, that syntax would cover it (not sure how obvious it would be to
> newbies, though).
>
> Massimo: the result should be something like "user input string" LIKE
> table.keyword_column
>
> On
+1 :)
On Tue, Apr 14, 2009 at 4:36 AM, Italo Maia wrote:
>
> Entrando!!!
>
> On 11 abr, 17:10, "pirata.dabaixada"
> wrote:
> > Já entrei !
> >
> > g-man escreveu:
> >
> > > Tudo bem!
> >
> > > On Apr 11, 11:35 am, Álvaro Justen [Turicas]
> > > wrote:
> >
> > >> Para quem fala Português, entre
I'm struggling setting up web2py with Apache2 and mod_wsgi. I've
followed the manual, (page 205) mainly-->
Alias / /home/web2py/applications/
## setup WSGI
WSGIScriptAlias / /home/web2py/wsgihandler.py
WSGIDaemonProcess web2py user=www-data group=www-data
home=/home/web2py/ 12 processes=10 maxim
That won't match because of the (potential) extra characters in
user_input_string. Imagine user_input_string is "web2py python web
framework" and the keyword in the database is "%python%".
On Apr 14, 1:51 pm, mdipierro wrote:
> I usually do
>
> db(db.name.like('%'+user_input_string+'%')).select(
On Tue, Apr 14, 2009 at 3:11 AM, Nazgi wrote:
>
> Hi,
>
> I'm a newbie for this framework, so i'm facing problems using
> Ajax. I actually want to create a form with a select option for the
> user. Based on the selection he makes, another select menu should be
> displayed with a few more opti
I must insert information to the same table from three different
SQLFORMs, as if it was a wizard.
form1 -> form2 -> form3.
In every form I force a field determined to take certain value.
Except this field the others can be the same that the previous form.
I want is to be able to fill the form
def form1():
form=FORM()
if form.accepts(request.vars):
session.vars=form.vars
redirect(URL(r=request,f='form2'))
return dict(form=form)
def form2():
if not session.vars: redirect(URL(r=request,f='form1'))
form=FORM()
if form.accepts(request.vars)
any ideas?
Thank you in advance :)
On Apr 14, 1:42 am, ceej wrote:
> I've noticed that if I have mydomain.com/http://google.com?a=testit
> will ignore a in path, is there anyway in routes I can convert ? to
> safe text? I've created a tinyurl.com but better in web2py. This is my
> last problem
The issue I raised coincides with what iceberg has described. I also
agree with Yarko on the data persistence as a backend. But db in ram
would be amazing as you can seamlessly use all DAL features !
Hopefully if we can get more traction on this feature.
On Apr 14, 9:31 am, Yarko Tymciurak wrote
On 14 abr, 15:18, mdipierro wrote:
> def form1():
> form=FORM()
> if form.accepts(request.vars):
> session.vars=form.vars
> redirect(URL(r=request,f='form2'))
> return dict(form=form)
>
> def form2():
> if not session.vars: redirect(URL(r=request,f='form1')
Notifications could be done by view-template panels that update system
status (and perhaps nothing by default).Start reading:
http://en.wikipedia.org/wiki/Push_technology
2009/4/14 notabene
>
> Hint
>
> You could save session-records to the database and se who has recently
> started a session (
No routes does not see the path_info but that should transparently be
passed to your app.
On Apr 14, 10:27 am, ceej wrote:
> any ideas?
>
> Thank you in advance :)
>
> On Apr 14, 1:42 am, ceej wrote:
>
> > I've noticed that if I have mydomain.com/http://google.com?a=testit
> > will ignore a in
Hmm well for some reason it's ignoring and not passing anything past
a ?
On Apr 14, 11:00 am, mdipierro wrote:
> No routes does not see the path_info but that should transparently be
> passed to your app.
>
> On Apr 14, 10:27 am, ceej wrote:
>
> > any ideas?
>
> > Thank you in advance :)
>
> >
but the user can already define its own
parse(text)
and use it
db.define_table(*parse(text))
I am talking about *forcing* a new syntax to our users instead of
having everybody come up with their own shortcuts.
The solution I propose introduce a simpler syntax to define tables and
set de
On Tue, Apr 14, 2009 at 8:32 AM, mdipierro wrote:
>
> this line
>
> discuss=db(db.discuss.id==prodj.id).select(orderby=~db.discuss.score)
>
> should be
>
> discuss=db(db.discuss.id==prodj).select(orderby=~db.discuss.score)
You use prodj 3 ways, so this is really hard to read.
prodj: the local
function! - what function do you wnat?
tokens=parcel(user_input_string)
for token in parcel(user_input_string):
db(db.name.like('%'+token+'%').select()
(I leave it to you to coalesce to a single where phrase)
On Tue, Apr 14, 2009 at 9:39 AM, AchipA wrote:
>
> That won't match because
you may need to set other things... (servername?)
See if http://forum.webfaction.com/viewtopic.php?pid=8473#p8473
provides any hints for you
On Tue, Apr 14, 2009 at 9:27 AM, Mark Larsen wrote:
>
> I'm struggling setting up web2py with Apache2 and mod_wsgi. I've
> followed the manual, (page
I think we need
db(db.table.field.contains_any(tokens)).select()
db(db.table.field.contains_all(tokens)).select()
I may have this already somewhere. I will add to 1.62 by next week.
Massimo
On Apr 14, 11:28 am, Yarko Tymciurak wrote:
> function! - what function do you wnat?
> tokens=parcel(
Could you create a global variable.
Have it check it, like we do with the response.flash stuff.
if the value exists then show a modal popup with js or something
similar.
Regards,
Jason Brower
On Tue, 2009-04-14 at 05:01 -0700, notabene wrote:
> Hint
>
> You could save session-records to the dat
On Apr 12, 10:39 pm, Skip Montanaro wrote:
> I'm trying to get web2py installed and running w/ WSGI on an Ubuntu
> Intrepid virtual server. Apache by itself was working just fine. After
> installing WSGI and setting up web2py using these instructions:
>
> http://jdoe.asidev.com/2009/02/26/co
On Tue, Apr 14, 2009 at 11:18 AM, mdipierro wrote:
>
> but the user can already define its own
>
> parse(text)
>
> and use it
>
> db.define_table(*parse(text))
H not pre-this discussion. Anyway, if you are talking about parsing
to create one string so that your chosen solution is i
On Tue, Apr 14, 2009 at 11:56 AM, mdipierro wrote:
>
> I think we need
>
> db(db.table.field.contains_any(tokens)).select()
> db(db.table.field.contains_all(tokens)).select()
I like this - between your original suggestion (the entire user string) any
and all ... this could be useful.
There se
On Tue, Apr 14, 2009 at 10:49 AM, mdipierro wrote:
> with "press the return button in my browser," do you mean the "back"
> button?
>
> I am not sure how to avoid this. Any advice?
It's a "Django way of develop" that I like. Django's manual teach some
good Web programming practices. :-)
You can
On Tue, Apr 14, 2009 at 1:13 PM, Álvaro Justen [Turicas] <
alvarojus...@gmail.com> wrote:
>
> On Tue, Apr 14, 2009 at 10:49 AM, mdipierro
> wrote:
> > with "press the return button in my browser," do you mean the "back"
> > button?
> >
> > I am not sure how to avoid this. Any advice?
>
> It's a "
On Tue, Apr 14, 2009 at 2:09 AM, Italo Maia wrote:
>
> I noticed that if i create a new application and then press the return
> button in my browser, web2py will try to resubmit the form. For what i
> understand, this happens because there should be a redirect after the
> form submission. Is this
Alvaro is right. This is a bug in the admin app. The site page does
not redirect to self after form submission. I will fix it tonight.
Massimo
On Apr 14, 1:25 pm, Yarko Tymciurak wrote:
> On Tue, Apr 14, 2009 at 2:09 AM, Italo Maia wrote:
>
> > I noticed that if i create a new application and
On Tue, Apr 14, 2009 at 12:27 PM, ceej wrote:
>
> any ideas?
>
> Thank you in advance :)
>
> On Apr 14, 1:42 am, ceej wrote:
>> I've noticed that if I have mydomain.com/http://google.com?a=testit
>> will ignore a in path, is there anyway in routes I can convert ? to
>> safe text? I've created a
On Tue, Apr 14, 2009 at 3:41 PM, Álvaro Justen [Turicas]
wrote:
> as I requested in other thread[1], I think we can improve routes.py with:
[1]
http://groups.google.com/group/web2py/browse_thread/thread/dafc5113dfd8f07/9a9a8b3fffb36dc7?lnk=gst&q=routes.py#9a9a8b3fffb36dc7
--
Álvaro Justen
P
You right. I am adding something along these lines. ...
On Apr 14, 1:41 pm, Álvaro Justen [Turicas]
wrote:
> On Tue, Apr 14, 2009 at 12:27 PM, ceej wrote:
>
> > any ideas?
>
> > Thank you in advance :)
>
> > On Apr 14, 1:42 am, ceej wrote:
> >> I've noticed that if I have mydomain.com/http://g
I'm wondering if anyone has tips on where I should start in trying to
track down performance problems running my web2py application on GAE.
Initially I created an application using only the api's supplied by
GAE. This app was very fast in terms of response times.
I've since recreated and updated
Thanks for your time guy's. I will heed your advice regarding code.
cnhrism
On Apr 14, 5:20 pm, Yarko Tymciurak wrote:
> On Tue, Apr 14, 2009 at 8:32 AM, mdipierro wrote:
>
> > this line
>
> > discuss=db(db.discuss.id==prodj.id).select(orderby=~db.discuss.score)
>
> > should be
>
> > discuss=db
I do not know how to profile on GAE.
There are some things to consider:
0) make sure you use the provided gaehandler.py
1) you get the benefit of chaching bytecode compiler models and
actions only if the page if accessed often
2) you will get a speed up if you use memcache session instead of
data
Some ideas:
There is a log_stats decorator in gaehandler.py that can be
uncommented and enabled in production to give a more precise timing
profile than the log coarse timing.
The main caching mechanism is in compileapp.py and the compiled code
should be cached in a dict called 'cfs' which can b
NP - Massimo's suggestion (if you rename prodj => requested_proj_id) is
(probably) correct; the item var you have (and the associated select)
seems not needed...
On Tue, Apr 14, 2009 at 3:16 PM, murray3 wrote:
>
> Thanks for your time guy's. I will heed your advice regarding code.
> cnhrism
>
Yeah, that was a failed attempt of creating "something" in gimp in
like 20 minutes :D
I'll see what I can come up with in the next few weeks..
On Apr 14, 6:34 am, mdipierro wrote:
> I think the forum is excellent but you need a better logo image. ;-)
>
> On Apr 14, 5:13 am, rbuc wrote:
>
>
>
>
Another trick is put as much code you can in a module (in yourapp/
modules/) as and just call that from your models and controllers.
Massimo
On Apr 14, 3:38 pm, Robin B wrote:
> Some ideas:
>
> There is a log_stats decorator in gaehandler.py that can be
> uncommented and enabled in production t
I updated to 1.62 this morning and made two changes in the views.
When I uploaded to GAE, the application failed with a "600 server
error" and the log shows:
: No module named settings
Traceback (most recent call last):
File "/base/data/home/apps/utilityplant/1.332789504321242905/
gaehandler.py
Yes, there should be a gluon/settings.py that was not there before.
Did you use bzr, svn or the source from the web page?
Massimo
On Apr 14, 3:42 pm, Gary wrote:
> I updated to 1.62 this morning and made two changes in the views.
> When I uploaded to GAE, the application failed with a "600 ser
Source from the web page.
On Apr 14, 5:08 pm, mdipierro wrote:
> Yes, there should be agluon/settings.py that was not there before.
>
> Did you use bzr, svn or the source from the web page?
>
> Massimo
>
> On Apr 14, 3:42 pm, Gary wrote:
>
> > I updated to 1.62 this morning and made two chang
This is very impressive. How long did it take you to do the web2py
portion and the UI portion? I'm just learning Python, and this is one
of the nicest web2py sites that I've seen.
Mike
On Apr 14, 1:43 pm, Speedbird wrote:
> Yeah, that was a failed attempt of creating "something" in gimp in
>
I just downloaded it again and the settings.py is there and works fine
for me. Please download it again.
Massimo
On Apr 14, 4:10 pm, Gary wrote:
> Source from the web page.
>
> On Apr 14, 5:08 pm, mdipierro wrote:
>
> > Yes, there should be agluon/settings.py that was not there before.
>
> > D
Could you post your apache and wsgi config files?
On Apr 14, 12:04 pm, Fran wrote:
> On Apr 12, 10:39 pm, Skip Montanaro wrote:
>
>
>
> > I'm trying to get web2py installed and running w/ WSGI on an Ubuntu
> > Intrepid virtual server. Apache by itself was working just fine. After
> > installi
I added it to the list:
http://www.appliedstacks.com/NewestFirst/web2py
Massimo
On Apr 14, 4:44 pm, mikech wrote:
> This is very impressive. How long did it take you to do the web2py
> portion and the UI portion? I'm just learning Python, and this is one
> of the nicest web2py sites that I'v
On Tue, Apr 14, 2009 at 6:50 PM, mdipierro wrote:
> I just downloaded it again and the settings.py is there and works fine
> for me. Please download it again.
How web2py_src.zip is created in server? Some time ago I had a problem
downloading this file (error 404). Is there a chance that Gary
dow
Massimo,
You are absolutely correct and it was in the file that I downloaded
this morning. I must have done something that failed to copy into the
subdirectories.
I just want to say that that Web2py is a beautiful piece of work and
you should be commended for it's elegance. I found it a little
Thanks Gary and thanks for using web2py.
Massimo
On Apr 14, 5:06 pm, Gary wrote:
> Massimo,
>
> You are absolutely correct and it was in the file that I downloaded
> this morning. I must have done something that failed to copy into the
> subdirectories.
>
> I just want to say that that Web2py
No good : /. Couldn't find a example referencing an user model : /.
On 14 abr, 05:09, Jason Brower wrote:
> Err... oops..http://mdp.cti.depaul.edu/examples/default/tools#authentication
> This will help a lot more.
> BR
> -Jason
>
> On Tue, 2009-04-14 at 00:51 -0700, Italo Maia wrote:
> > Hi! I'm
I will amend it. You can do this
auth=Auth(globals(),db)
db.define_table('auth_user',
SQLField('first_name',length=128),
SQLField('last_name',length=128),
SQLField('password','password',requires=CRYPT()),
SQLField('registration_key',length=128))
auth.settings.table_user=db.auth_user
On Tue, Apr 14, 2009 at 3:43 PM, Speedbird wrote:
>
> Yeah, that was a failed attempt of creating "something" in gimp in
> like 20 minutes :D
>
> I'll see what I can come up with in the next few weeks..
I ran accross this the other night - you might find it interesting (a
graphic web-based stud
"unique" field attribute is not there, though i could find it in the
cheatsheet.
link : http://mdp.cti.depaul.edu/examples/default/dal
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" group.
To p
I have been experiencing some issues with "pack all", and attempting
to deploy an app on a different web2py instance.
Long version: (for others that might be experiencing the same thing)
My dev machine is a mac and the other test bed box is a windows vm
(not that it matters). I was seeing some o
Thank you for the tips. I'll work through these and determine if I can
find a specific root cause of the performance problem.
I've been testing on a particular page of the application that lists a
number of items along with thumbnail images for those items. The
thumbnails are images placed into a
cool!
On Apr 14, 5:51 pm, Yarko Tymciurak wrote:
> On Tue, Apr 14, 2009 at 3:43 PM, Speedbird wrote:
>
> > Yeah, that was a failed attempt of creating "something" in gimp in
> > like 20 minutes :D
>
> > I'll see what I can come up with in the next few weeks..
>
> I ran accross this the other ni
Is this reproducible? Does the browser make a difference?
Can you try delete everything under web2py/deposit and try again?
Massimo
On Apr 14, 7:58 pm, John wrote:
> I have been experiencing some issues with "pack all", and attempting
> to deploy an app on a different web2py instance.
>
> Long
Whatever you discover please let us know. It will help us improve.
Massimo
On Apr 14, 8:26 pm, Ted G wrote:
> Thank you for the tips. I'll work through these and determine if I can
> find a specific root cause of the performance problem.
>
> I've been testing on a particular page of the applica
I have been thinking about this. Even if I do not like your proposal
Yarko, I think you have a better point than you think. In fact
form_factory would not work with my proposal syntax but it would work
with yours and that is a big plus in your favor.
I am tired so I think I am going to sleep on t
fixing now! Thanks
On Apr 14, 5:59 pm, Italo Maia wrote:
> "unique" field attribute is not there, though i could find it in the
> cheatsheet.
> link :http://mdp.cti.depaul.edu/examples/default/dal
--~--~-~--~~~---~--~~
You received this message because you are sub
It is reproducible (at least on my machine).
Same problem with Firefox 3 and Safari 4beta. The tar file placed in
web2py/deposit exhibits the same problem as the file that is
downloaded. Both files are identical as verified by md5 checksums, so
it is not happing during the transfer, but with I
There is a python 2.5 requirement mostly because that is what I
tested.
This looks like a bug in the tar module that ships with 2.6.1.
Massimo
On Apr 14, 10:04 pm, John wrote:
> It is reproducible (at least on my machine).
>
> Same problem with Firefox 3 and Safari 4beta. The tar file placed
Thanks, that solved the first problem
On Apr 14, 9:48 pm, mdipierro wrote:
> T.force('en-zh')
>
Additional Q:
- Could we use T() inside the template? Or we can only pass it in as
dict?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to
82 matches
Mail list logo