[web2py] Re: GAE delete() has subtle difference compared to native Web2Py

2010-03-03 Thread Throngly
I also get this problem with code that used to work before the ".count() to len()" change, so it appears to be a regression. My traceback is as follows: Traceback (most recent call last): File "/base/data/home/apps/throngly-com/1.340262947933306301/gluon/ restricted.py", line 173, in restricted

[web2py] Re: cron weirdness

2010-03-03 Thread Rowdy
Wes James wrote: install mercurial on your distro https://help.ubuntu.com/community/Mercurial then at the command line do this: hg clone https://web2py.googlecode.com/hg/ web2py when this is done you should have a copy of trunk in the folder web2py That worked well, thank you Wes. But I w

[web2py] Re: Ajax query

2010-03-03 Thread LB22
OK, Thadeus was right on the money with regard to my problem. I don't know how I overlooked it, but I had a line of "legacy code" in my function that requested the refering page. This is what was being returned in the ajax callback. As soon as I removed that line, I no longer had the problem with

[web2py] Re: crud and col3

2010-03-03 Thread mdipierro
I applied most of your patch, but I left the syntax auth.settings.captcha = Recaptcha(...) auth.settings.captcha.label = auth.settings.captcha.comment = Please check it. On Mar 2, 11:22 pm, "mr.freeze" wrote: > On second thought, how would you get captcha into a crud form that is > bu

Re: [web2py] shell only web2py

2010-03-03 Thread Nicol van der Merwe
Sweet! I noticed a typo: "*My Fist Application" *should be "*My First Application*" (notice the 'r') Nicolaas On Wed, Mar 3, 2010 at 7:10 AM, Jason Brower wrote: > Very nice article. Thanks, it's good to know this side as well, > especially when deploying remotely. > BR, > Jason Brower > On

[web2py] Re: crud and col3

2010-03-03 Thread szimszon
After this thread ends could someone write a reference manual to this new feature - what is implemented now? Could be good :-D On márc. 3, 11:49, mdipierro wrote: > I applied most of your patch, but I left the syntax > > auth.settings.captcha = Recaptcha(...) > auth.settings.captcha.label =

[web2py] Re: GAE delete() has subtle difference compared to native Web2Py

2010-03-03 Thread mdipierro
I think this is now fixed in trunk. On Mar 3, 3:24 am, Throngly wrote: > I also get this problem with code that used to work before the > ".count() to len()" change, so it appears to be a regression. > > My traceback is as follows: > > Traceback (most recent call last): >   File "/base/data/home/

[web2py] Re: Ajax query

2010-03-03 Thread LB22
I don't actually know how to mark this as solved, but please consider it so. On Mar 3, 10:25 am, LB22 wrote: > OK, Thadeus was right on the money with regard to my problem. > > I don't know how I overlooked it, but I had a line of "legacy code" in > my function that requested the refering page. T

[web2py] Re: shell only web2py

2010-03-03 Thread mdipierro
oops On Mar 3, 5:13 am, Nicol van der Merwe wrote: > Sweet! > > I noticed a typo: > > "*My Fist Application" *should be "*My First Application*" >  (notice the 'r') > > Nicolaas > > > > On Wed, Mar 3, 2010 at 7:10 AM, Jason Brower wrote: > > Very nice article.  Thanks, it's good to know this sid

[web2py] error in tools.py (in trunk)

2010-03-03 Thread Jose
in line 1033 and 1227 captcha = self.settings.register_captcha or self.settings.captcha Jose -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send ema

[web2py] Re: error in tools.py (in trunk)

2010-03-03 Thread mdipierro
fixed, thanks On Mar 3, 6:21 am, Jose wrote: > in line 1033 and 1227 > > captcha = self.settings.register_captcha or self.settings.captcha > > Jose -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@go

[web2py] Dream Host Deployment

2010-03-03 Thread Jesse
Hello, I've been trying to set up web2py on my dreamhost account. I've searched the web over trying to find something that works finally found: http://www.web2pyslices.com/main/slices/take_slice/1 Which I effective followed save that I used different directory (/opt instead of /local) and installe

[web2py] One time loading of large pickle file on server start

2010-03-03 Thread praveendasigi
Hi, I have a large pickle file (approx 400MB) which contains objects to be used by various controllers in my app. The pickle loading obviously cannot happen online whenever the application is accessed. Earlier when I built a primitive version of this app with cherrypy alone, the pickle loaded alon

[web2py] Re: One time loading of large pickle file on server start

2010-03-03 Thread mdipierro
There are many ways to do. The simplest was it create a module in your app applications/yourapp/modules/pickle_loader.py that contains import cPickle data = cPickle.load(.) then in your model: pickle_loader = local_import('pickle_loader') data = pickle_loader.data On Mar

[web2py] Re: Redefining db types without patching sql.py

2010-03-03 Thread KMax
Thank you for example, sure it works for most cases, but what could be done with id of rows? They are not defined explicity, and changes in sql.by were enought for defining table i need. Let me explain my idea. Let see sql.py from 1.76.1 release at position of SQL_DIALECTS = { .skipped...

[web2py] auto upgrade needs testing

2010-03-03 Thread mdipierro
There is a new link in admin/default/site "upgrade web2py". Seems to work on source but needs to be tested on Windows and Mac binary. ** This may mess up your web2py installation ** To help with test: 1) make a copy of web2py in a different folder 2) edit the VERSION file and set it to somethi

[web2py] Re: auto upgrade needs testing

2010-03-03 Thread mdipierro
on a second thought. I need to make binaries before you can test them later today. On Mar 3, 7:09 am, mdipierro wrote: > There is a new link in admin/default/site "upgrade web2py". > > Seems to work on source but needs to be tested on Windows and Mac > binary. > > ** This  may mess up your we

[web2py] Re: trunkeylinux help

2010-03-03 Thread Mark Breedveld
I've done some research on turnkey. And its much better than the thing a made. I will test it in the coming week. and the results will come as soon as possible. regards, Mark Breedveld, On 17 feb, 07:41, Massimo Di Pierro wrote: > I am trying to make a web2py appliance for turnkey linux. Once

[web2py] Re: trunkeylinux help

2010-03-03 Thread mdipierro
Thank you Mark. On Mar 3, 7:38 am, Mark Breedveld wrote: > I've done some research on turnkey. > And its much better than the thing a made. > > I will test it in the coming week. > and the results will come as soon as possible. > > regards, > > Mark Breedveld, > > On 17 feb, 07:41, Massimo Di Pie

[web2py] Web2Py Book application

2010-03-03 Thread Giovanni Giorgi
Hi all, I am new to web2py, even if I am following it from time to time (http://gioorgi.com/2009/web2py/) I have seen the Book application used for the web2py book http://web2py.com/book/ Where Is it possible to download the source of this application? I'd like to study it for learning web2py..

Re: [web2py] Re: Ajax query

2010-03-03 Thread Thadeus Burgess
Just append to the title of the post [SOLVED] Glad you fixed it! -Thadeus On Wed, Mar 3, 2010 at 5:39 AM, LB22 wrote: > I don't actually know how to mark this as solved, but please consider > it so. > > On Mar 3, 10:25 am, LB22 wrote: >> OK, Thadeus was right on the money with regard to my

[web2py] Re: Web2Py Book application

2010-03-03 Thread mdipierro
I will post it but I want to clean it up first. It was written a bit in a hurry. On Mar 3, 7:47 am, "Giovanni Giorgi" wrote: > Hi all, >  I am new to web2py, even if I am following it > from time to time (http://gioorgi.com/2009/web2py/) > > I have seen the Book application used for the web2py bo

[web2py] wordpress

2010-03-03 Thread mdipierro
I really like the look and feel of the management interface of wordpress (white/black/gray with rounder corner and js effects/menu). It would be nice to use their CSS and images in web2py admin. What do you think? Any volunteers to work on it? -- You received this message because you are subscrib

[web2py] Re: * web2py's Brand *

2010-03-03 Thread Wobmofo
Here is the results (from only 11 responses): http://spreadsheets.google.com/pub?key=tKCyJuTYjVuWHWNFyPcZ51w&single=true&gid=0&output=html http://spreadsheets.google.com/viewanalytics?formkey=dEtDeUp1VFlqVnVXSFdORnlQY1o1MXc6MA In summary : web2py is THE EASY web framework django people don't lik

[web2py] web2py 1.76.2 is OUT

2010-03-03 Thread mdipierro
Main changes include: 1) major fix in cron (will I ever get this 100% right?) 2) auth.settings.login_captcha and auth.settings.register_captcha 3) crud.settings.create_captcha and crud.settings.update_captcha 4) automatic update button in admin 4) needs testing. To test-in: - make a fresh web2p

[web2py] Re: * web2py's Brand *

2010-03-03 Thread mdipierro
Some of the answers are funny. Mostly they are consistent with one exception. Perhaps a web2py hat is better than a t-shirt. I lost mine last summer. :-( On Mar 3, 10:10 am, Wobmofo wrote: > Here is the results (from only 11 responses): > > http://spreadsheets.google.com/pub?key=tKCyJuTYjVuWHWNF

Re: [web2py] wordpress

2010-03-03 Thread Giovanni Giorgi
I am working on an application and I need to change the CSS. I can grab the Wordpress CSS and adapt it... :) After I finished the work, how do you like to send you the changes? On Wed, March 3, 2010 17:04, mdipierro wrote: > I really like the look and feel of the management interface of > wordpres

[web2py] Re: wordpress

2010-03-03 Thread mdipierro
You should be able to do this by just changing the views, css and static files in web2py admin. You can just zip the admin folder and I will check for differences. On Mar 3, 10:07 am, "Giovanni Giorgi" wrote: > I am working on an application and I need to change the CSS. > I can grab the Wordpres

[web2py] Re: crud and col3

2010-03-03 Thread mr.freeze
There were a few issues so I sent you a patch to your patch to my patch :) Just a couple small bugs and added the same functionality to crud that you did to auth. On Mar 3, 4:49 am, mdipierro wrote: > I applied most of your patch, but I left the syntax > > auth.settings.captcha = Recaptcha(...) >

[web2py] Re: web2py 1.76.2 is OUT

2010-03-03 Thread mdipierro
made a build error. re-posting as 1.76.3. sorry. On Mar 3, 10:11 am, mdipierro wrote: > Main changes include: > > 1) major fix in cron (will I ever get this 100% right?) > 2) auth.settings.login_captcha and auth.settings.register_captcha > 3) crud.settings.create_captcha and  crud.settings.update

[web2py] Re: web2py 1.76.2 is OUT

2010-03-03 Thread mr.freeze
You might need to repost again. auth and crud captcha had problems. On Mar 3, 10:50 am, mdipierro wrote: > made a build error. re-posting as 1.76.3. sorry. > > On Mar 3, 10:11 am, mdipierro wrote: > > > Main changes include: > > > 1) major fix in cron (will I ever get this 100% right?) > > 2) au

[web2py] deleting user groups

2010-03-03 Thread hamdy.a.farag
Hi there's a problem in removing users , one has to delete the special group (user_id )for the user so that all his permissions are dropped why not adding a functionality to delete the special user_group automatically ? -- You received this message because you are subscribed to the Google G

[web2py] Re: Limitby not working with Oracle with joins

2010-03-03 Thread SergeyPo
PATCH File gluon/sql.py, line #2987 in _select method of Set (SQLSet) class should be: return '%s %s FROM (SELECT w_tmp.*, ROWNUM w_row FROM (SELECT %s FROM %s%s%s) w_tmp WHERE ROWNUM<=%i) %s %s %s;' % (sql_s, sql_f, sql_f, sql_t, sql_w, sql_o, lmax, sql_t, sql_w_row, sql_o) Previoisly was: retu

[web2py] Re: crud and col3

2010-03-03 Thread mdipierro
thank you On Mar 3, 10:48 am, "mr.freeze" wrote: > There were a few issues so I sent you a patch to your patch to my > patch :) > Just a couple small bugs and added the same functionality to crud that > you did to auth. > > On Mar 3, 4:49 am, mdipierro wrote: > > > I applied most of your patch,

[web2py] Re: deleting user groups

2010-03-03 Thread mdipierro
I'll take the patch On Mar 3, 10:51 am, "hamdy.a.farag" wrote: > Hi > > there's a problem in removing users , one has to delete the special > group  (user_id )    for the user so that all his permissions are > dropped > why not adding a functionality to delete the special user_group > automatical

[web2py] Re: web2py 1.76.2 is OUT

2010-03-03 Thread mdipierro
nobody downloaded it so I did and preserved the number. On Mar 3, 10:51 am, "mr.freeze" wrote: > You might need to repost again. auth and crud captcha had problems. > > On Mar 3, 10:50 am, mdipierro wrote: > > > made a build error. re-posting as 1.76.3. sorry. > > > On Mar 3, 10:11 am, mdipierro

[web2py] Re: Limitby not working with Oracle with joins

2010-03-03 Thread mdipierro
I applied your top patch. I cannot test the second issue. If you can and want to send me a patch, I will be happy to include it. Thanks. On Mar 3, 10:57 am, SergeyPo wrote: > PATCH > > File gluon/sql.py, line #2987 in _select method of Set (SQLSet) class > should be: > > return '%s %s FROM (SELEC

Re: [web2py] Re: wordpress

2010-03-03 Thread Giovanni Giorgi
I will start doing some tests on a demo app, then I will send it to you when ready. I plan to work on it on the weekend. Because Wordpress CSS is quite complex I will start with a prototype. Ciao ciao :) On Wed, March 3, 2010 17:27, mdipierro wrote: > You should be able to do this by just changi

[web2py] Re: crud.select headers attribute

2010-03-03 Thread snfctech
I found this requires the table name, such as in Annet's example. I tried to edit the book errata wiki, but the edit links are layed out way to the right (on FF) and they all seem to have "page isn't redirecting properly" errors. On Jan 17, 9:15 pm, Michael Howden wrote: > From my use of thecrud

[web2py] Re: web2py 1.76.2 is OUT

2010-03-03 Thread mr.freeze
Bad news. Cron errors on Windows running from source: Exception in thread Thread-22: Traceback (most recent call last): File "c:\Python25\lib\threading.py", line 486, in __bootstrap_inner self.run() File "C:\Users\me\workspace\web2py\gluon\contrib\cron.py", line 81, in run if 60 <= now

[web2py] Re: web2py 1.76.2 is OUT

2010-03-03 Thread mdipierro
g. as the changelog above said: 1) major fix in cron (will I ever get this 100% right?) Anyway, please check it in trunk. On Mar 3, 11:10 am, "mr.freeze" wrote: > Bad news. Cron errors on Windows running from source: > > Exception in thread Thread-22: > Traceback (most recent call last): >

[web2py] Online Users

2010-03-03 Thread Mengu
Hi, After logging in, how should I collect the online users? -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to web2py+unsubscr...@googleg

[web2py] Re: KeyError in web2py_modpython.py

2010-03-03 Thread fadehelix
Hi, I have the same problem as @IRV. I can't use mod_wsgi because on my shared hosting i haven't own apache configuration. regards On 19 Sty, 14:44, mdipierro wrote: > I will take a look but I stongly suggest you use mod_wsgi instead of > mod_python. > > On Jan 19, 4:57 am, IRV wrote: > > > >

[web2py] Re: KeyError in web2py_modpython.py

2010-03-03 Thread mdipierro
problem is the error appear to be in mod_python, not web2py. On Mar 3, 11:22 am, fadehelix wrote: > Hi, > > I have the same problem as @IRV. I can't use mod_wsgi because on my > shared hosting i haven't own apache configuration. > > regards > > On 19 Sty, 14:44, mdipierro wrote: > > > I will tak

Re: [web2py] Re: KeyError in web2py_modpython.py

2010-03-03 Thread Jonathan Lundell
On Mar 3, 2010, at 9:22 AM, fadehelix wrote: > Hi, > > I have the same problem as @IRV. I can't use mod_wsgi because on my > shared hosting i haven't own apache configuration. I've been using mod_proxy in that situation, and it seems to work OK. It's straightforward, at least. Are there serious

[web2py] Re: web2py 1.76.2 is OUT

2010-03-03 Thread mr.freeze
I forgot to mention, I only get the error when I have cron=False in web2py.py. Sorry. There is no error when cron=True. On Mar 3, 11:22 am, mdipierro wrote: > g. as the changelog above said: > > 1) major fix in cron (will I ever get this 100% right?) > > Anyway, please check it in trunk. > >

[web2py] Re: KeyError in web2py_modpython.py

2010-03-03 Thread mdipierro
I have been using it on web2py.com for ~3 years until January 2010 without issues. On Mar 3, 11:33 am, Jonathan Lundell wrote: > On Mar 3, 2010, at 9:22 AM, fadehelix wrote: > > > Hi, > > > I have the same problem as @IRV. I can't use mod_wsgi because on my > > shared hosting i haven't own apach

[web2py] Re: web2py 1.76.2 is OUT

2010-03-03 Thread mdipierro
Check if it works anyway. On Mar 3, 11:37 am, "mr.freeze" wrote: > I forgot to mention, I only get the error when I have cron=False in > web2py.py. Sorry. There is no error when cron=True. > > On Mar 3, 11:22 am, mdipierro wrote: > > > g. as the changelog above said: > > > 1) major fix in cr

[web2py] Re: New features not documented in Book (2 ed)

2010-03-03 Thread Dragonfyre13
If it's untarred over the top of the old one, any files that are not in the new tar file will be left there. Since an app is supposed to kind of be self contained, shouldn't it remove the old app, and then untar to the directory? On Feb 16, 11:08 am, Jonathan Lundell wrote: > On Feb 16, 2010, at

[web2py] Re: web2py 1.76.2 is OUT

2010-03-03 Thread mr.freeze
No errors. On Mar 3, 11:39 am, mdipierro wrote: > Check if it works anyway. > > On Mar 3, 11:37 am, "mr.freeze" wrote: > > > I forgot to mention, I only get the error when I have cron=False in > > web2py.py. Sorry. There is no error when cron=True. > > > On Mar 3, 11:22 am, mdipierro wrote: > >

Re: [web2py] Re: New features not documented in Book (2 ed)

2010-03-03 Thread Jonathan Lundell
On Mar 3, 2010, at 9:48 AM, Dragonfyre13 wrote: > If it's untarred over the top of the old one, any files that are not > in the new tar file will be left there. Since an app is supposed to > kind of be self contained, shouldn't it remove the old app, and then > untar to the directory? Probably, t

[web2py] Re: Online Users

2010-03-03 Thread mr.freeze
This?: http://web2py.com/book/default/section/3/3?search=sessions On Mar 3, 11:23 am, Mengu wrote: > Hi, > > After logging in, how should I collect the online users? -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send

[web2py] Re: wordpress

2010-03-03 Thread mr.freeze
+ 1. Admin is mighty but needs some makeup. On Mar 3, 10:50 am, "Giovanni Giorgi" wrote: > I will start doing some tests on a demo app, >  then I will send it to you when ready. > I plan to work on it on the weekend. > Because Wordpress CSS is quite complex I will start with a prototype. > Ciao c

[web2py] Javascript Comment Bug

2010-03-03 Thread Mengu
Hi, This is not a big deal. I have some inline javascript in my layout and I have a commented line like "// url: /review/vote?reviewid={{= review.id}}" (it was for rememering the url) but the template system want to find review and print the id. -- You received this message because you are subsc

[web2py] newcron

2010-03-03 Thread mdipierro
I am trying to refactor cron and get rid of ExecuteOnCompletion I think I succeeded. In trunk: gluon/contrib/wsgihooks.py and gluon/contrib/cron.py are now unused and replaced by gluon/newcron.py gluon/newcron is very similar to old gluon/contrib/cron.py but cron.crontype is replaced by settings

[web2py] Re: Online Users

2010-03-03 Thread Mengu
no actually, for two reasons: 1) it says: "The counter is associated to each visitor, and is incremented each time the visitor reloads the page. Different visitors see different counters." 2) i need to keep the usernames and ids. i thought i could add something like "session.online_users = sessi

[web2py] Re: Problem with IS_IN_SET validator where valid list is dynamic

2010-03-03 Thread hschill...@nasa.gov
Thanks for all the help again. It should have been obvious to me before but I am sure the problem is that values coming back from get_last_names() are different when the form is generated compared to when it is validated. So I really need to just get the list of last names once and it use it both

[web2py] Re: New features not documented in Book (2 ed)

2010-03-03 Thread Yarko Tymciurak
On Mar 3, 11:48 am, Dragonfyre13 wrote: > If it's untarred over the top of the old one, any files that are not > in the new tar file will be left there. Since an app is supposed to > kind of be self contained, shouldn't it remove the old app, and then > untar to the directory? A trivially simple

[web2py] data type for .sum()?

2010-03-03 Thread Philip
I have a DAL field of type 'double'. What python data type is row._extra[db.table.field.sum()] for that field? Assuming it was a python float, I tried to perform an arithmetic operation on it, and an error came back that the type was 'NoneType' so the operation could not be performed. I can't tell

[web2py] Re: New features not documented in Book (2 ed)

2010-03-03 Thread mdipierro
you can already trash an application On Mar 3, 1:34 pm, Yarko Tymciurak wrote: > On Mar 3, 11:48 am, Dragonfyre13 wrote: > > > If it's untarred over the top of the old one, any files that are not > > in the new tar file will be left there. Since an app is supposed to > > kind of be self containe

[web2py] Re: data type for .sum()?

2010-03-03 Thread mdipierro
I can see there is a bug in web2py in that respect since it assumes integer while it should be of the same type as the field being summed. I fixed it in trunk. Anyway, that is not your problem. can I see how you are using it? On Mar 3, 1:39 pm, Philip wrote: > I have a DAL field of type 'double'.

[web2py] Re: data type for .sum()?

2010-03-03 Thread Mengu
for such operations i use, for example, review.votes = review.votes if review.votes is not None else 0 so i can do operations on it. On Mar 3, 10:26 pm, mdipierro wrote: > I can see there is a bug in web2py in that respect since it assumes > integer while it should be of the same type as the fiel

[web2py] Re: data type for .sum()?

2010-03-03 Thread mdipierro
this is simpler and works with 2.4 review.votes = review.votes or 0 On Mar 3, 2:49 pm, Mengu wrote: > for such operations i use, for example, review.votes = review.votes if > review.votes is not None else 0 so i can do operations on it. > > On Mar 3, 10:26 pm, mdipierro wrote: > > > I can see t

[web2py] Re: New features not documented in Book (2 ed)

2010-03-03 Thread Yarko Tymciurak
On Mar 3, 2:22 pm, mdipierro wrote: > you can already trash an application How? (From the admin interface? - I don't see a trash-can to "undo" this from...) In any case, the discussion was about "overrite installed app" behavior, and the problem with files no longer used, and managing that...

Re: [web2py] Re: Online Users

2010-03-03 Thread Kuba Kucharski
> 1) it says: "The counter is associated to each visitor, and is > incremented each time the visitor reloads the page. Different visitors > see different counters." yes, but you can make "users" timeout.. and f.e: update table with online users - on that basis. there is no way to get online user

Re: [web2py] Re: Online Users

2010-03-03 Thread Kuba Kucharski
http://www.mail-archive.com/web2py@googlegroups.com/msg16186.html here you can find more. -- Kuba -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, se

Re: [web2py] Re: New features not documented in Book (2 ed)

2010-03-03 Thread Jonathan Lundell
On Mar 3, 2010, at 12:22 PM, mdipierro wrote: > you can already trash an application We want to trash the application, but not the application state (database, etc). > > On Mar 3, 1:34 pm, Yarko Tymciurak > wrote: >> On Mar 3, 11:48 am, Dragonfyre13 wrote: >> >>> If it's untarred over the to

[web2py] Re: Problem with IS_IN_SET validator where valid list is dynamic

2010-03-03 Thread DenesL
An ajax autocomplete field would be a better option IMO. There is an experimental AutocompleteWidget in web2py but I believe it still has some issues plus it might not allow enough customization of the query depending on your particular needs in this case. You can create your own widget though.

Re: [web2py] Re: Problem with IS_IN_SET validator where valid list is dynamic

2010-03-03 Thread Jonathan Lundell
On Mar 3, 2010, at 11:29 AM, hschill...@nasa.gov wrote: > > Thanks for all the help again. It should have been obvious to me > before but I am sure the problem is that values coming back from > get_last_names() are different when the form is generated compared to > when it is validated. So I real

[web2py] Re: how to pass multiline output from controller to view and get it printed in multiline..

2010-03-03 Thread Babu
Thank you very much. This works fantastic! On Mar 3, 2:06 pm, mdipierro wrote: > def index(): >     >     return dict(message=message) > > and the view should be > {{extend 'layout.html'}} > {{=message}} > > On Mar 2, 10:56 pm, Babu wrote: > > > > > Sorry, I am new to python and web2py.  I

[web2py] Re: Online Users

2010-03-03 Thread Mengu
after some discussions with b00m_chef on IRC, I have decided going with database. in the login action, i will insert the user record to the "onlineuser" table. in db.py which is executed on every request, i will update the lastactivity field on the onlinetable of the current user. and i will also

[web2py] Re: data type for .sum()?

2010-03-03 Thread Mengu
way more cool! :) thanks. On Mar 3, 10:59 pm, mdipierro wrote: > this is simpler and works with 2.4 > > review.votes = review.votes or 0 > > On Mar 3, 2:49 pm, Mengu wrote: > > > > > for such operations i use, for example, review.votes = review.votes if > > review.votes is not None else 0 so i

[web2py] Re: Javascript Comment Bug

2010-03-03 Thread Mengu
which file should i edit to fix this? On Mar 3, 8:58 pm, Mengu wrote: > Hi, > > This is not a big deal. I have some inline javascript in my layout and > I have a commented line like "// url: /review/vote?reviewid={{= > review.id}}" (it was for rememering the url) but the template system > want to

Re: [web2py] Re: Javascript Comment Bug

2010-03-03 Thread Kuba Kucharski
a python fork? ;) AFAIK there are two styles of comments in python # single line comment " " " this is a multiline comment which spawns many lines " " " -- Kuba On Wed, Mar 3, 2010 at 11:28 PM, Mengu wrote: > which file should i edit to fix this? > > On Mar 3, 8:58 pm, Mengu wrote: >> H

Re: [web2py] Re: wordpress

2010-03-03 Thread Albert Abril
With all the respects, i always thought that the admin interface could be better, it's because i think this is a great idea. +1 for wordpress-like css. On Wed, Mar 3, 2010 at 7:53 PM, mr.freeze wrote: > + 1. Admin is mighty but needs some makeup. > > On Mar 3, 10:50 am, "Giovanni Giorgi" wrote:

[web2py] Helper functions

2010-03-03 Thread minh
I have functions in my controller that require no view and should be inaccessible through the browser, i.e: helper functions, callbacks, etc If the user tries to access the function through http://../app/controller/function, I'll either get an 'invalid function' or the return values. How do I pr

[web2py] Re: Helper functions

2010-03-03 Thread mr.freeze
Functions that take arguments or start with a double underscore are not publicly exposed and can only be called by other functions. On Mar 3, 5:52 pm, minh wrote: > I have functions in my controller that require no view and should be > inaccessible through the browser, i.e: helper functions, call

[web2py] Re: wordpress

2010-03-03 Thread Richard
that would be great! There was an OSX admin style posted here some time back but can't find it right now ... Richard On Mar 4, 3:07 am, "Giovanni Giorgi" wrote: > I am working on an application and I need to change the CSS. > I can grab the Wordpress CSS and adapt it... :) > After I finished th

[web2py] Re: Helper functions

2010-03-03 Thread DenesL
To handle the missing view you could modify the "generic" one to suit your needs. That is the one that gets executed when there is no corresponding view for a controller. On Mar 3, 6:57 pm, "mr.freeze" wrote: > Functions that take arguments or start with a double underscore are > not publicly ex

[web2py] Re: Javascript Comment Bug

2010-03-03 Thread DenesL
Templates are converted to python programs. In python the comments start with a # or are enclosed in triple quotes. So {{#...}} or {{'''...'''}} or {{"""..."""}} should work. What you have is a Javascript comment which is just another HTML string in the template. {{=review.id}} will still be conve

[web2py] Re: wordpress

2010-03-03 Thread mdipierro
The nice thing about wordpress is that it is color neutral and it doed almost everything with CSS not images. They have a few images like this for example: http://s0.wp.com/wp-admin/images/gray-grad.png and they they have tabs like Title all the effect logic f

[web2py] Re: web2py 1.76.2 is OUT - testing cron

2010-03-03 Thread Rowdy
mdipierro wrote: g. as the changelog above said: 1) major fix in cron (will I ever get this 100% right?) Anyway, please check it in trunk. I did not get a chance to test cron changes in trunk before the 1.76.3 release. Thank you for the speedy responses and update. I have had a look at

[web2py] Re: * web2py's Brand *

2010-03-03 Thread John Heenan
On Mar 4, 2:17 am, mdipierro wrote: > Some of the answers are funny. Mostly they are consistent with one > exception. > Perhaps a web2py hat is better than a t-shirt. I lost mine last > summer. :-( > Rather flippant given that someone has gone to some effort to set up a survey to help out Web2py

[web2py] Re: KeyError in web2py_modpython.py

2010-03-03 Thread Graham Dumpleton
On Mar 4, 4:28 am, mdipierro wrote: > problem is the error appear to be in mod_python, not web2py. Not an issue with mod_python. Web2Py is looking for SCRIPT_URL, this isn't put into req.subprocess_env by Apache core modules or mod_python under normal conditions. The only time that a variabl

Re: [web2py] Re: * web2py's Brand *

2010-03-03 Thread Thadeus Burgess
I think that was the goal of this survey was to find out where web2py is currently in the minds of the community and those using it, and then where do we actually "want" to be. We can't dial a Stargate unless we know the point of origin! -Thadeus On Wed, Mar 3, 2010 at 7:23 PM, John Heenan

[web2py] Re: KeyError in web2py_modpython.py

2010-03-03 Thread mdipierro
Can you propose a fix? I can write the patch if you can provide us with a proposal. Massimo On Mar 3, 7:36 pm, Graham Dumpleton wrote: > On Mar 4, 4:28 am, mdipierro wrote: > > > problem is the error appear to be in mod_python, not web2py. > > Not an issue with mod_python. > > Web2Py is looking

[web2py] Re: wordpress

2010-03-03 Thread Mengu
the designer can just use jquery.corner plugin for rounded corners. it is working with firefox, ie, opera and chrome very good. On Mar 4, 3:02 am, mdipierro wrote: > The nice thing about wordpress is that it is color neutral and it doed > almost everything with CSS not images. They have a few ima

[web2py] Re: web2py 1.76.2 is OUT - testing cron

2010-03-03 Thread mdipierro
Let's make it 59.99 then. We want to avoid false positives more than false negatives. On Mar 3, 7:08 pm, Rowdy wrote: > mdipierro wrote: > > g. as the changelog above said: > > > 1) major fix in cron (will I ever get this 100% right?) > > > Anyway, please check it in trunk. > > I did not get

[web2py] Re: KeyError in web2py_modpython.py

2010-03-03 Thread Graham Dumpleton
I don't know what it is you are even trying to do, nor even have the code which is raising the error. The last web2py I downloaded doesn't have that file in it, it only has 'modpythonhandler.py'. On Mar 4, 1:13 pm, mdipierro wrote: > Can you propose a fix? I can write the patch if you can provide

[web2py] Re: web2py 1.76.2 is OUT - testing cron

2010-03-03 Thread Rowdy
mdipierro wrote: Let's make it 59.99 then. We want to avoid false positives more than false negatives. Sounds good. Over the past 2.5 hours the smallest value I saw was 59.9909880161. Rowdy -- You received this message because you are subscribed to the Google Groups "web2py-users" group. T

[web2py] Re: * web2py's Brand *

2010-03-03 Thread Mengu
John, There are things that I agree with you and there are things that I disagree with you. For example if PyCon participants are interested in Django and not in web2py, isn't this for Django's popularity? If so, how come the concern over popularity is uncomfortable? When selecting a framework, I

[web2py] Re: Dream Host Deployment

2010-03-03 Thread Jesse
I tried running the python code from the passenger_wsgi.py manually to see if there were any issues. When I got down to import gluon.main I got: WARNING:root:unable to import dbhash issues??? My passenger_wsgi.py / wsgihandler.py code: #!/usr/bin/env python # -*- coding: utf-8 -*- """ This is a

[web2py] Re: * web2py's Brand *

2010-03-03 Thread mdipierro
On Mar 3, 7:23 pm, John Heenan wrote: > On Mar 4, 2:17 am, mdipierro wrote: > > > Some of the answers are funny. Mostly they are consistent with one > > exception. > > Perhaps a web2py hat is better than a t-shirt. I lost mine last > > summer. :-( > > Rather flippant given that someone has gone

[web2py] Re: web2py 1.76.2 is OUT - testing cron

2010-03-03 Thread mdipierro
ok, in trunk. Thanks for your help with this. On Mar 3, 8:42 pm, Rowdy wrote: > mdipierro wrote: > > Let's make it 59.99 then. We want to avoid false positives more than > > false negatives. > > Sounds good. > > Over the past 2.5 hours the smallest value I saw was 59.9909880161. > > Rowdy -- Yo

[web2py] uservoice problems

2010-03-03 Thread mdipierro
I am having lots of problems with uservoice. I am trying to comment since some of the things people asked already exist (at least partially) but it logs me out when I post the comment and the comment does not who up. I tried two different accounts (google and local). -- You received this message

[web2py] Re: * web2py's Brand *

2010-03-03 Thread waTR
I tend to agree with what has been mentioned in the past. Concentrate on building good web apps and websites using web2py. Let the work speak for itself. All we need is one or two big successes... On Mar 3, 7:02 pm, mdipierro wrote: > On Mar 3, 7:23 pm, John Heenan wrote: > > > On Mar 4, 2:17

[web2py] Re: uservoice problems

2010-03-03 Thread waTR
What browser are you using? I am on firefox using a local account I made with them, and it works fine...I just commented on the routes.py for each app suggestion... On Mar 3, 7:13 pm, mdipierro wrote: > I am having lots of problems with uservoice. I am trying to comment > since some of the thi

[web2py] online book correction protocol

2010-03-03 Thread G. Clifford Williams
How shall we submit minor (and not so minor) corrections to the online book? -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to web2py+unsu

[web2py] A suggestion on table migration

2010-03-03 Thread Mengu
Hi, I think it would be better and faster for setting a global option for db for migrations so instead of checking per table, if that global option is set to True then it migrates and if it's set to False then it doesn't migrate. What do you think? -- You received this message because you are su

Re: [web2py] Re: crud delete weird behavior (on GAE at least)

2010-03-03 Thread Miguel Goncalves
Just installed 1.76.3 and it seems to have fixed the problem. -Miguel On Tue, Mar 2, 2010 at 11:16 PM, Miguel Goncalves wrote: > What is the file that locally stores the databases/tables contents when > using GAE devserver? > I would like to delete it (without re-installing) and start from scr

  1   2   >