[web2py:16647] gluon.Storage doctests not passing

2009-02-21 Thread Grahack
In a personal project, I'm using the Storage class. I found that this line in its docstring prints nothing: >>> o.a None Fails. I replaced `o.a` with `print o.a` and it prints None as expected. I know it's maybe the most minor comment about w2p ever, but I couldn't keep it for

[web2py:16648] Re: Great app, but a few questions....

2009-02-21 Thread Francisco Gama
Please check out the web2py bazaar launchpad that should answer to the first part of your comment: https://launchpad.net/~mdipierro/web2py/devel I think you are right about the spelling errors... There are too many and it's bad to (an enterprise but not only) image. When it comes to the solution

[web2py:16649] Re: Great app, but a few questions....

2009-02-21 Thread mdipierro
Hi Jason, to upgrade web2py just unzip a new one over an old one. It is safe. Your apps will not be overwritten. Please email me any spelling errors and I will fix them. I apologize for them. Massimo On Feb 20, 11:14 pm, Jason Brower wrote: > I like web2py, finally a web framework I can sink

[web2py:16650] Re: gluon.Storage doctests not passing

2009-02-21 Thread mdipierro
Fixed in launchpad now. Thanks. On Feb 21, 3:44 am, Grahack wrote: > In a personal project, I'm using the Storage class. I found that this > line in its docstring prints nothing: > >         >>> o.a >         None > > Fails. > > I replaced `o.a` with `print o.a` and it prints None as expected. >

[web2py:16651] Re: New Trove classification for web2py in PyPI

2009-02-21 Thread mdipierro
How do we do that. Can you help? Massimo On Feb 21, 1:47 am, Maurice Ling wrote: > Hi > > Anyone think it is a good idea to propose a new Trove classification > in PyPI for web2py? > > Framework :: web2py?? > > Cheers > ML --~--~-~--~~~---~--~~ You received this

[web2py:16652] Re: Great app, but a few questions....

2009-02-21 Thread Jason Brower
I will start keeping track of the spelling and or grammatical errors and report them. Thanks the for launchpad link. I will subscribe there to get the changes list. Thanks for the great product! --- Regards, Jason Brower On Sat, 2009-02-21 at 04:53 -0800, Francisco Gama wrote: > Please check o

[web2py:16653] Re: Great app, but a few questions....

2009-02-21 Thread mdipierro
Thank you for the help Jason. Massimo On Feb 21, 9:21 am, Jason Brower wrote: > I will start keeping track of the spelling and or grammatical errors and > report them.  Thanks the for launchpad link.  I will subscribe there to > get the changes list.  Thanks for the great product! > --- > Regar

[web2py:16654] Re: New Trove classification for web2py in PyPI

2009-02-21 Thread Maurice Ling
Let me talk to Richard Jones, maintainer of PyPI and one of the associate editors of The Python Papers Anthology, and see what he says... ML On Feb 21, 11:14 pm, mdipierro wrote: > How do we do that. Can you help? > > Massimo > > On Feb 21, 1:47 am, Maurice Ling wrote: > > > Hi > > > Anyone th

[web2py:16655] Re: Trouble with form.accepts?

2009-02-21 Thread weheh
Line 16 in gallery.py is this: if form.accepts(request.vars,session): On Feb 21, 12:51 am, mdipierro wrote: > which one is line 16 in gallery.py ? > > this > > > def download(): > >  import os > >     path = os.path.join(request.folder,'uploads',request.args[0]) > >  return response.stre

[web2py:16656] Can hardcron work without being triggered by a request?

2009-02-21 Thread Iceberg
Hi Achipa, I just search your description about cron patch in here: http://groups.google.com/group/web2py/browse_frm/thread/44817da72c798df8 First of all, this excellent post deserves becoming part of web2py 's builtin document, say, let's add one more example in http://localhost:8000/examples/

[web2py:16657] Re: Can hardcron work without being triggered by a request?

2009-02-21 Thread David Marko
I would also appreciate some working example/appliance for using *cron. Its very usefull thing!!! David --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email

[web2py:/] Re: Great app, but a few questions....

2009-02-21 Thread Francisco Gama
I wouldn't recommend that procedure specially if you are on a Mac where overwriting means replacing (this means that using Finder you could lose changes like new applications,...). Besides, even in Windows/Linux/GNU, overwriting a directory won't remove obsolete files. Here's my take on how you s

[web2py:16659] Re: Trouble with form.accepts?

2009-02-21 Thread mdipierro
The error is here: form.vars.image_id = wtb.image.id the right hand field is a "field" object, while it should be a field value, perhaps form.vars.image_id = photo.id On Feb 21, 11:12 am, weheh wrote: > Line 16 in gallery.py is this: >         if form.accepts(request.vars,session): > > On Fe

[web2py:16660] Trailing slash

2009-02-21 Thread Jim
I'm trying to do this: /newest-messages/ and that works fine. /newest-messages/category works fine /newest-messages/category/0 /newest-messages/category/1 /newest-messages/category/2 ... works fine but /newest-messages/category/ bombs with an http error of "Invalid Request" I'm probably

[web2py:16661] Re: Trailing slash

2009-02-21 Thread mdipierro
this is a web2py issue. it will be fixed immediately. thanks for reporting it. On Feb 21, 1:51 pm, Jim wrote: > I'm trying to do this: > > /newest-messages/ > > and that works fine. > > /newest-messages/category > > works fine > > /newest-messages/category/0 > /newest-messages/category/1 > /newe

[web2py:16662] Re: Trailing slash

2009-02-21 Thread Jim
As a PS, I'm not sure if it makes any difference but "/newest- messages/" is a function and the different "category" examples were arguments. So /app/controller/newest-messages/ Thanks so much for the quick response. On Feb 21, 1:05 pm, mdipierro wrote: > this is a web2py issue. it will be fix

[web2py:16663] Re: Trailing slash

2009-02-21 Thread mdipierro
fixed on launchpad. Could you please give it a try? Massimo On Feb 21, 3:36 pm, Jim wrote: > As a PS, I'm not sure if it makes any difference but "/newest- > messages/" is a function and the different "category" examples were > arguments.  So /app/controller/newest-messages/ > > Thanks so much

[web2py:16664] Re: I am about to give up on SVN

2009-02-21 Thread mdipierro
But the problem is not ignore. That is just telling me that the file is under version control. Why I cannot commit with a new version of this file present? On Feb 20, 11:18 pm, "mr.freeze" wrote: > Looks like the ignore syntax is wrong. This may > help:http://athenageek.wordpress.com/2008/04/1

[web2py:16665] Re: I am about to give up on SVN

2009-02-21 Thread AchipA
bzr ignore = svn propedit svn:ignore My guess is you copies around a few directories and have copied/ overwritten .svn dir content with them, so the versioning data got messed up. Try: svn cleanup and please tell us what does svn status applications/examples/static say. Also, always do svn up

[web2py:16666] Re: Can hardcron work without being triggered by a request?

2009-02-21 Thread AchipA
On Feb 21, 6:28 pm, Iceberg wrote: > Then, when talking about the hardcron, I assume you told us that: > 1. "softcron: cron routines are checked after page content has been > served, does not guarantee execution precision" Correct. > 2. On the contrary, hardcron runs in a separate thread, and g

[web2py:16667] Re: db insert does not work with unicode strings

2009-02-21 Thread AchipA
I guess the question is whether the str() conversion should be done at the DAL level so databases that support unicode just pass through, and we do str() for those that don't. This will especially be a consideration with regard to plans for Python 3000 migration as str is deprecated there. On Feb

[web2py:16668] Re: Custom forms with SQLFORM

2009-02-21 Thread murray3
thanks for the help on this, but I didn't get it to work and I have been preocupied with designing a railway(day job:). I am still using standard SQLFORM object as this allows for the nicEdit markup to be saved to db. When I try using custom form it does not submit. All I wanted todo was use a te

[web2py:16669] Re: facebook + web2py app

2009-02-21 Thread Yarko Tymciurak
this could potentially be useful... can't wait to look at it (wish I had time to just do this, like you; maybe soon ;-) On Fri, Feb 20, 2009 at 11:56 PM, mdipierro wrote: > > Download here: > >http://mdp.cti.depaul.edu/appliances/default/show/48 > > Try it here: > >http://mdp.cti.depaul

[web2py:16670] Re: New Appliance Submission: QrOne CSS Designer

2009-02-21 Thread Yarko Tymciurak
mmm if you used the welcome app as a template (that is model/db.py) would this still be an issue? I think you can assume apps will be "created" from the welcome as a template, so this will be there: - #!/usr/bin/python # -*- coding: utf-8 -*- # ##

[web2py:16671] Re: DAL subset supported by GAE

2009-02-21 Thread Yarko Tymciurak
I may be missing something (I have just started to read this) but I have a fundamental question: It seems to me entity groups (no matter how "limited" you consider them) are also useful and critical for things like updating, say, a user registration to a conference which may very well involve more

[web2py:16672] Re: DAL subset supported by GAE

2009-02-21 Thread Sebastian E. Ovide
On Sat, Feb 21, 2009 at 11:44 PM, Yarko Tymciurak wrote: > I may be missing something (I have just started to read this) but I have a > fundamental question: > It seems to me entity groups (no matter how "limited" you consider them) > are also useful and critical for things like updating, say, a

[web2py:16673] Re: Trouble with form.accepts?

2009-02-21 Thread weheh
Your right, the error was with: form.vars.image_id = wtb.image.id The correct statement is: form.vars.image_id = photo.image.id Thanks, Massimo. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framewor

[web2py:16674] Re: I am about to give up on SVN

2009-02-21 Thread mdipierro
> svn cleanup > > and please tell us what does > > svn status applications/examples/static ! applications/examples/static M applications/examples/static/jquery.js > say. Also, always do svn update before commit. Really, even if you are > the only user, always svn update before commit

[web2py:16675] Re: any outstanding issue?

2009-02-21 Thread Jonathan B
Hi Massimo, On Feb 20, 8:56 am, mdipierro wrote: > anything I have forgotten or can we release 1.56.4? Everything looks fine from my perspective. Thanks! --Jonathan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Group

[web2py:16676] Re: DAL subset supported by GAE

2009-02-21 Thread Jonathan B
Hi Yarko, On Feb 22, 4:44 am, Yarko Tymciurak wrote: > It seems to me "entity group" is a useful concept that should scale accross > to SQL dbs in some way also.  By not abstracting this appropriately, it > seems we are creating (practically looking at this) more limitations than > GAE has in

[web2py:16677] Re: many-to-many dupes and trees

2009-02-21 Thread Jaime Barciela
That worked, thank you. On Feb 20, 8:09 pm, mdipierro wrote: > db.define_table('some', >      SQLField('name', 'string'), >      SQLField('parent', 'referece some')) > > On Feb 20, 6:01 pm, Jaime Barciela wrote: > > > Hello all, > > > I have not found answers for these two questions in the ma

[web2py:16678] Re: [web2py:/] Re: Great app, but a few questions....

2009-02-21 Thread Jason Brower
Thanks for the pointer. I am on Linux, but that command should work for me too. --- Regards, Jason Brower On Sat, 2009-02-21 at 12:17 -0800, Francisco Gama wrote: > I wouldn't recommend that procedure specially if you are on a Mac > where overwriting means replacing (this means that using Finder

[web2py:16679] Problem when following the authentication toturial... And a few other questions...

2009-02-21 Thread Jason Brower
I realized after creating my users table that there is a better way to setup authentication found here... http://mdp.cti.depaul.edu/examples/default/tools#authentication But I can't seem to figure out how to modify my current "users" table to work with the new class... from gluon.tools import

[web2py:16680] GAE: auto now add ?

2009-02-21 Thread Sebastian E. Ovide
Hi, is it possible to set the "auto now add" to a data time property ? (do not confuse with the default=now !) thanks >DateTimeProperty(auto_now_add=True) Sebastian E. Ovide Sent from: Buenos Aires Argentina. --~--~-~--~~~---~--~~

[web2py:16681] Re: Problem when following the authentication toturial... And a few other questions...

2009-02-21 Thread mdipierro
You can create your own table but... 1) this > def __init__ (self, environment, T, db = db.users): is wrong because you cannot pass a table where web2py expects a database connection 2) your "users" table must have an "email" field, not "email_address" 3) the proper way to use your ta

[web2py:16682] CAS vs Auth

2009-02-21 Thread DJ
Hi there, I have used CAS previously for single-sign and it worked well. Whats recommended now? Auth or CAS? I would like to have authentication to do record level edit/updates and have the same user login for multiple apps? Can I do this in Auth? Thanks, Sebastian --~--~-~--~~

[web2py:16683] Re: CAS vs Auth

2009-02-21 Thread mdipierro
Right now they serve two distinct purpose. CAS does single sign on but no access control Auth does basic authentication and group based access control. It would be possible to implement authentication on CAS and/or implement CAS using Auth. A more ambitious goal is to extend CAS to support dis

[web2py:16684] Re: Can hardcron work without being triggered by a request?

2009-02-21 Thread Iceberg
So I guess this is a bug. Can you take a look at this, Achipa? Here is what I did. 1. I am running web2py_win.zip, the windows distribution bundle, v 1.56.3, on a Windows XP Home edition 5.1.2600, SP3. 2. For simplicity, I have this in my controller/default.py def trigger(): import logging

[web2py:16685] Re: Can hardcron work without being triggered by a request?

2009-02-21 Thread Iceberg
On Feb22, 7:53am, AchipA wrote: > On Feb 21, 9:12 pm, David Marko wrote: > > > I would also appreciate some working example/appliance for using > > *cron. Its very usefull thing!!! > > web2py comes with an example (cleaning sessions), see applications/ > admin/cron ! Do you think additional exam