[web2py:23168] Re: windows service problem in 1.63 (source)

2009-06-03 Thread Hans Donner
see the docstring in gluon.Winservice it needs the win32 lib, to be installed seperately. --- Original Message --- From: mdipierro mdipie...@cs.depaul.edu To: web2py Web Framework web2py@googlegroups.com Sent: 03/06/2009, 06:37:07 Subject: [web2py:23165] Re: windows service problem in

[web2py:23169] why id field is displaying in the form?

2009-06-03 Thread durga
Hi , I have created a table for user. to update the table i have written the code def editprofile(): user = db(db.users.id==session.userid).select()[0] form = SQLFORM(db.users,user,fields=['firstname','lastname']) i found id field is showing in the browser though i have selected

[web2py:23170] Re: why id field is displaying in the form?

2009-06-03 Thread Mladen Milankovic
Hi. There's a parameter to SQLFORM, showid which is True by default. Just set it to False. Like: form = SQLFORM(db.users,user,fields=['firstname','lastname'], showid = False) regards mmlado On Wednesday 03 June 2009 08:32:16 durga wrote: Hi , I have created a table for user. to update

[web2py:23171] Re: why id field is displaying in the form?

2009-06-03 Thread durga moganty
thanks mmlado :) On Wed, Jun 3, 2009 at 12:21 PM, Mladen Milankovic mml...@gmail.com wrote: Hi. There's a parameter to SQLFORM, showid which is True by default. Just set it to False. Like: form = SQLFORM(db.users,user,fields=['firstname','lastname'], showid = False) regards mmlado

[web2py:23172] Re: web2py 1.63.3 is out with some bug fixes

2009-06-03 Thread Iceberg
On Jun3, 11:51am, mdipierro mdipie...@cs.depaul.edu wrote: web2py 1.63.3 is out with some bug fixes The fix to sql.py in revision 985 has a typo. And it is insufficient anyway because the /path-with-non-ascii/sql.log won't be create correctly. After some consideration, I make further

[web2py:23173] Re: more slides - must read

2009-06-03 Thread dlypka
On Page 68 it has 'SQLField is a query' Also I believe IS_IN_DB is missing from that long list of validators on page 106 On Jun 2, 11:52 pm, mdipierro mdipie...@cs.depaul.edu wrote: http://www.web2py.com/examples/static/cookbook2.pdf --~--~-~--~~~---~--~~ You

[web2py:23174] Re: Still not luck with cross references in input forms.

2009-06-03 Thread dlypka
Using a View over the join might help. Then both fields would be available. On Jun 2, 10:28 am, mdipierro mdipie...@cs.depaul.edu wrote: This cannot be done with the IS_IN_DB validator. You must create your own validator. Massimo On Jun 1, 3:46 pm, Offray Vladimir Luna Cárdenas

[web2py:23175] Re: more slides - must read

2009-06-03 Thread dlypka
On page 24, why does it include the '.html' ? In your original cookbook, there is no '.html' here: A URL like http://hostname/cookbook/default/index/bla/bla/bla?variable=value will result in a call to function index() in controller default.py in applicaiton cookbook. “bla”, “bla” and “bla” will

[web2py:23176] Re: should login redirect to index function after login?

2009-06-03 Thread salbefe
Thank you Massimo, I will do in that way. Kind Regards Salva On 3 jun, 06:28, mdipierro mdipie...@cs.depaul.edu wrote: This is a problem only if login is the entry point of your app and it should not be. If you always get to login from a redirection you should not have this problem.

[web2py:23177] Re: web2py solution for debbuging with FirePHP/Firebug

2009-06-03 Thread sgtpep
Unfortunately I have no expirience in screencasting, and my English is buggy. Debugging/logging tool is very useful thing for web development. I really like this one in Symfony framework (it is included to Symfony and made with JavaScript, screenshot -

[web2py:23178] Re: web2py solution for debbuging with FirePHP/Firebug

2009-06-03 Thread Álvaro Justen [Turicas]
Really cool! Congratulations for this work and exaplanation! 2009/6/3 sgtpep danil.m...@gmail.com: Unfortunately I have no expirience in screencasting, and my English is buggy. Debugging/logging tool is very useful thing for web development. I really like this one in Symfony framework (it

[web2py:23179] inserting values in to db fields which are not there in SQLFORM

2009-06-03 Thread durga
hi, i would like to insert a values to a table through form where user can enter fewer fields. for example i have table 'company' which has fields userid,compname,designation,location. form = SQLFORM(db(db.company),fields= ['compname','designation','location']) userid is stored in session

[web2py:23180] Re: inserting values in to db fields which are not there in SQLFORM

2009-06-03 Thread Mladen Milankovic
Hi. Do something like this: form = SQLFORM(db(db.company),fields = ['compname','designation','location']) if form.accepts(request.vars, session): db(db.company.id == form.vars.id).update(userid = session.userid) # do something else like redirect if needed The id of the new record can be

[web2py:23181] Re: more slides - must read

2009-06-03 Thread notabene
Page 84: Example: db(db.product.id10).update(product=db.product.price+20) Should be (): db(db.product.id10).update(db.product.price=db.product.price+20) On Jun 3, 5:52 am, mdipierro mdipie...@cs.depaul.edu wrote: http://www.web2py.com/examples/static/cookbook2.pdf

[web2py:23182] Re: more slides - must read

2009-06-03 Thread mdipierro
no. it is correct as it is. On Jun 3, 7:41 am, notabene niels...@gmail.com wrote: Page 84: Example: db(db.product.id10).update(product=db.product.price+20) Should be (): db(db.product.id10).update(db.product.price=db.product.price+20) On Jun 3, 5:52 am, mdipierro

[web2py:23186] Re: more slides - must read

2009-06-03 Thread Alexei Vinidiktov
On page 54, the line curl -u username:password http://hostanme.../function ^^ should read curl -u username:password http://hostname.../function On Wed, Jun 3, 2009 at 11:52 AM, mdipierro mdipie...@cs.depaul.edu wrote:

[web2py:23187] Re: more slides - must read

2009-06-03 Thread Alexei Vinidiktov
On page 55 the wording is not clear. Or is it just me? Uploads and authentication Uploaded files are served by the “download” action. To required authentication and authorization in order to download any file: db.image.file.authorize = lambda record: True where the lambda is a function hat, give

[web2py:23188] Re: more slides - must read

2009-06-03 Thread mdipierro
Ouch! Yes there is a typo, should be db(db.product.id10).update(price=db.product.price+20) Massimo On Jun 3, 7:41 am, notabene niels...@gmail.com wrote: Page 84: Example: db(db.product.id10).update(product=db.product.price+20) Should be ():

[web2py:23189] Re: web2py solution for debbuging with FirePHP/Firebug

2009-06-03 Thread mdipierro
You are now officially our firebug expert! Massimo On Jun 3, 5:19 am, sgtpep danil.m...@gmail.com wrote: Unfortunately I have no expirience in screencasting, and my English is buggy. Debugging/logging tool is very useful thing for web development. I really like this one in Symfony

[web2py:23191] Re: more slides - must read

2009-06-03 Thread JohnMc
Other posters caught some of the same items I did, so I won't repeat. But on slide 61 I think there is an unintended syntactical reference in the sentence -- First bullet. My comment is based on Web2Py manual. As I recall there are some helpers not derived from DIV. So unless that has changed

[web2py:23193] Re: more slides - must read

2009-06-03 Thread LordMax
Hi On 3 Giu, 05:52, mdipierro mdipie...@cs.depaul.edu wrote: http://www.web2py.com/examples/static/cookbook2.pdf It's possible to have the document with white background? It's for printing purpose. Thanks --~--~-~--~~~---~--~~ You received this message because

[web2py:23194] Re: inserting values in to db fields which are not there in SQLFORM

2009-06-03 Thread durga moganty
thanks lado its working :) On Wed, Jun 3, 2009 at 5:38 PM, Mladen Milankovic mml...@gmail.com wrote: Hi. Do something like this: form = SQLFORM(db(db.company),fields = ['compname','designation','location']) if form.accepts(request.vars, session): db(db.company.id ==

[web2py:23192] Re: more slides - must read

2009-06-03 Thread Alexei Vinidiktov
On page 131, Single Server Tricks I think there's an error in the first bullet point User mod_wsgi instead of wsgiserver. Should it be Use ... ? And one thing I'm not sure about. Should all the words in the headings be capitalized? For example, should Single server tricks be Single Server

[web2py:23196] Re: more slides - must read

2009-06-03 Thread mdipierro
yes, it is messy. I wrote it late at night. Fixing it. thanks. On Jun 3, 8:57 am, Alexei Vinidiktov alexei.vinidik...@gmail.com wrote: On page 55 the wording is not clear. Or is it just me? Uploads and authentication Uploaded files are served by the “download” action. To required

[web2py:23197] Re: date field error

2009-06-03 Thread Mladen Milankovic
Hi. You need to define the type of the field, the IS_DATE is only a validator that will check the values before insert/update. Use: db.define_table('users', SQLField('dob', 'date',requires=IS_DATE()), regards mmlado On Wed, Jun 3, 2009 at 4:36 PM, durga durgaprasadmoga...@gmail.com wrote:

[web2py:23198] Re: date field error

2009-06-03 Thread durga
thanks for your immediate response On Jun 3, 7:42 pm, Mladen Milankovic mml...@gmail.com wrote: Hi. You need to define the type of the field, the IS_DATE is only a validator that will check the values before insert/update. Use: db.define_table('users',     SQLField('dob',

[web2py:23199] Re: more slides - must read

2009-06-03 Thread bsnipes
The document appears to be blank except for the first page and the bullets now. On Jun 3, 9:39 am, mdipierro mdipie...@cs.depaul.edu wrote: yes, it is messy. I wrote it late at night. Fixing it. thanks. --~--~-~--~~~---~--~~ You received this message because

[web2py:23200] Re: more slides - must read

2009-06-03 Thread mdipierro
Posted a new one with some new pages. http://www.web2py.com/examples/static/cookbook2.pdf It would be great if somebody would post a link on reddit, digg, etc. and if people were to vote it up. I am not going to do it because I am chickening out. Massimo On Jun 3, 9:39 am, mdipierro

[web2py:23201] upload filename

2009-06-03 Thread Robert Marklund
Maybe you should expose the filename making as a method: uuid_key = str(uuid.uuid4()).replace('-', '')[-16:] encoded_filename = base64.b16encode(filename).lower() newfilename = '%s.%s.%s.%s' % \

[web2py:23203] Re: more slides - must read

2009-06-03 Thread JohnMc
Not Reddit but I posted a piece on a blog -- http://tightwadtechnica.com/?p=3980. On Jun 3, 10:33 am, mdipierro mdipie...@cs.depaul.edu wrote: Posted a new one with some new pages. http://www.web2py.com/examples/static/cookbook2.pdf It would be great if somebody would post a link on

[web2py:23204] click click clik

2009-06-03 Thread mdipierro
http://www.reddit.com/r/programming/comments/8pijx/web_development_with_python_made_easier_then_ever/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups web2py Web Framework group. To post to this group, send email to

[web2py:23205] Re: click click clik

2009-06-03 Thread Wes James
seems odd that there are down votes on this subject already. Must be some other framework trolls?!?! Give me a brrrek already... -wes On Wed, Jun 3, 2009 at 11:32 AM, mdipierro mdipie...@cs.depaul.edu wrote:

[web2py:23206] Re: more slides - must read

2009-06-03 Thread bsnipes
There seem to be some pdf errors in the document. I can open it on Windows but the document says it has 'invalid object structure' and a 'misaligned object'. On Linux I get a 30 page document with all white backgrounds, text on the title page and only the bullets show after that. On Jun 3,

[web2py:23207] Re: more slides - must read

2009-06-03 Thread mdipierro
h On Jun 3, 1:44 pm, bsnipes snipes.br...@gmail.com wrote: There seem to be some pdf errors in the document. I can open it on Windows but the document says it has 'invalid object structure' and a 'misaligned object'. On Linux I get a 30 page document with all white backgrounds, text on

[web2py:23208] Re: more slides - must read

2009-06-03 Thread JohnMc
I am using Xubuntu with the evince reader and am having no problems. Which reader are you using? On Jun 3, 1:44 pm, bsnipes snipes.br...@gmail.com wrote: There seem to be some pdf errors in the document. I can open it on Windows but the document says it has 'invalid object structure' and a

[web2py:23209] Re: more slides - must read

2009-06-03 Thread Yarko Tymciurak
I had them, flushed my cache - and now (in 2 browsers) that link goes into eternal load - never gets the file... On Wed, Jun 3, 2009 at 1:48 PM, mdipierro mdipie...@cs.depaul.edu wrote: h On Jun 3, 1:44 pm, bsnipes snipes.br...@gmail.com wrote: There seem to be some pdf errors in the

[web2py:23210] Re: more slides - must read

2009-06-03 Thread Yarko Tymciurak
...and curl has now spent over a minute w/ 0 speed, 0 downloaded and trying to get to www.web2py.com at all seems to fail. Is the server down? On Wed, Jun 3, 2009 at 2:08 PM, Yarko Tymciurak yark...@gmail.com wrote: I had them, flushed my cache - and now (in 2 browsers) that link goes

[web2py:23211] Re: more slides - must read

2009-06-03 Thread JohnMc
Fired up another VM. Downloading the file as we speak. no problems. On Jun 3, 7:11 pm, Yarko Tymciurak yark...@gmail.com wrote: ...and curl has now spent over a minute w/ 0 speed, 0 downloaded and trying to get towww.web2py.comat all seems to fail. Is the server down? On Wed, Jun 3,

[web2py:23212] Re: more slides - must read

2009-06-03 Thread bsnipes
Arch Linux. Using Okular and Evince: [bsni...@galileo ~]$ evince --version GNOME Document Viewer 2.26.2 [bsni...@galileo ~]$ okular --version Qt: 4.5.1 KDE: 4.2.3 (KDE 4.2.3) Okular: 0.8.3 The PDF viewer that shows errors on Windows is PDFXChange Viewer. I use it for the free editing features

[web2py:23214] Re: more slides - must read

2009-06-03 Thread JohnMc
Brian, I just run through evince, Adobe, kpdfviewer on linux. Adobe, Fox viewer on Windows. I not having any problems. Maybe the transport and the unreadable pdf are related. On Jun 3, 2:22 pm, bsnipes snipes.br...@gmail.com wrote: I won't discount it being my system since I did do an update

[web2py:23215] Re: more slides - must read

2009-06-03 Thread bsnipes
No clue. I have Jaunty at home on a desktop and will try it from there. Thanks for letting me know. Brian On Jun 3, 2:29 pm, JohnMc maruadventu...@gmail.com wrote: Brian, I just run through evince, Adobe, kpdfviewer on linux. Adobe, Fox viewer on Windows. I not having any problems.

[web2py:23216] Re: more slides - must read

2009-06-03 Thread mdipierro
Try this instead: http://www.scribd.com/doc/16085263/web2py-slides-version-163 On Jun 3, 2:19 pm, bsnipes snipes.br...@gmail.com wrote: Arch Linux. Using Okular and Evince: [bsni...@galileo ~]$ evince --version GNOME Document Viewer 2.26.2 [bsni...@galileo ~]$ okular --version Qt: 4.5.1

[web2py:23217] Re: more slides - must read

2009-06-03 Thread JohnMc
M, This might be related as well. I just restarted web2py (1.61.1) and I get a 'Checking for upgrades...'. It persists for about a minute before I can get into the projects design page. On Jun 3, 2:45 pm, mdipierro mdipie...@cs.depaul.edu wrote: Try this instead:

[web2py:23218] Re: more slides - must read

2009-06-03 Thread bsnipes
That works in both evince and in okular for me. Thanks! On Jun 3, 2:45 pm, mdipierro mdipie...@cs.depaul.edu wrote: Try this instead: http://www.scribd.com/doc/16085263/web2py-slides-version-163 On Jun 3, 2:19 pm, bsnipes snipes.br...@gmail.com wrote: Arch Linux.  Using Okular and

[web2py:23219] Re: more slides - must read

2009-06-03 Thread Yarko Tymciurak
this is what I reported - www.web2py.com does not (still) appear to be loading (it responds to pings) Your checking for upgrades is a symptom of no http response from web2py.com I think... it continued for a long time... and seems to just have broken free of whatever it was in the past

[web2py:23220] Re: more slides - must read

2009-06-03 Thread Fran
Excellent work :) Pg 1 This app also replaces the old cookbook so is a full tutorial - not just an overview of new features... Pg 5 Bottom text unreadable against background Pg 13 scaffolding app ^ Pg 15 Views can extend other ^ Pg 16 They contain ^ Pg 17 how to

[web2py:23221] Re: more slides - must read

2009-06-03 Thread Yarko Tymciurak
(over that 10 min. or so period where something wasn't working, you may have been getting from your browser cache) On Wed, Jun 3, 2009 at 3:10 PM, bsnipes snipes.br...@gmail.com wrote: That works in both evince and in okular for me. Thanks! On Jun 3, 2:45 pm, mdipierro

[web2py:23222] Re: web2py 1.63.3 is out with some bug fixes

2009-06-03 Thread rhubarb
I noticed this new version immediately mentioned in the admin app upon creating my first app today (from a download yesterday!). What I need to know is: 1. what's the upgrade procedure 2. what's changelog. Generally I really like it when there's a what's new link next to any new version link.

[web2py:23223] Re: more slides - must read

2009-06-03 Thread Fran
On Jun 3, 9:17 pm, Fran francisb...@googlemail.com wrote: More later, perhaps ;) Pg 76 both file contents and ^ Uploaded files are always streamed ^ Pg 80 .count() - does this not work on GAE still? Pg 81 row is None if no record with current id ^

[web2py:23224] Re: new slides

2009-06-03 Thread Fred
I find the white text a bit hard to read against that textured background on the slides. Please use a background without so much contrast within its texture. (Or no texture at all, my preference.) Slide 13: s/you app/your app/ s/scaffoling/scaffolding/ Slide 114: much of the text is in

[web2py:23225] Re: web2py 1.63.3 is out with some bug fixes

2009-06-03 Thread mdipierro
Hi rhubarb, new features are listed in the README files. usually 1.63.xxx versions are bug fixes version. In this case better docstrings, some undocumented experimental features that you should not be using and fixed an issue with SQLite on windows in presence of strange chars in paths. We do

[web2py:23226] Re: web2py 1.63.3 is out with some bug fixes

2009-06-03 Thread Fran
On Jun 3, 9:24 pm, rhubarb rover.rhub...@gmail.com wrote: 2. what's changelog. Generally I really like it when there's a what's new link next to any new version link. +1 to having the full changelog visible from the webpage rather than needing to download the .zip then follow the

[web2py:23227] Re: Auth forwarding

2009-06-03 Thread Scott Hunter
I've just downloaded the MacOSX v 1.63.3, and its exhibiting this same problem. I had gotten an earlier copy through launchpad, and the problem was indeed fixed. Is it possible the pre-compiled version isn't up to date? I noticed that the web2py executable (in the MacOS directory) is dated

[web2py:23229] Re: click click clik

2009-06-03 Thread desfrenes
I don't see the point in paying attention to those comments. All this reddit/twiter thing is mostly noise (and now even insults !). Why should you care about whinners ? On Jun 3, 8:42 pm, Wes James compte...@gmail.com wrote: seems odd that there are down votes on this subject already.  Must be

[web2py:23230] Re: web2py 1.63.3 is out with some bug fixes

2009-06-03 Thread Yarko Tymciurak
I am so used to reading latest changes first, that I found reading the README... a bit annoying. Quick / dirty fix attached (insert in your web2py dir, and run readme.py to view the README file) perhaps you'll appreciate this... On Wed, Jun 3, 2009 at 4:18 PM, Fran

[web2py:23231] Event-style locking in web2py

2009-06-03 Thread Juan
Hi I've made a web2py application that uses AJAX long polling for bringing content to the browser at realtime, but in order to optimize it I want a request to be locked until some event ocurrs so the AJAX request function does not need to do periodic polling (reducing cpu usage and latency). Is

[web2py:23232] Re: Jpolite

2009-06-03 Thread murray3
Actually No! the args=[prodj.id] are not passed and Get the following ticket: Traceback (most recent call last): File C:\APPS\web2py\gluon\restricted.py, line 107, in restricted exec ccode in environment File C:/APPS/web2py/applications/jpolie/controllers/default.py, line 90, in module

[web2py:23233] Translating a line with a link

2009-06-03 Thread suiato
This may be a newbie question, but will someone tell me what'd be the proper way of putting T() to the line below? liUsers can access the store a href={{=request.application}}here/a/li It's in manage/setup.html of the eStore appliance. I've tried like li{{=T('Users can access the store a

[web2py:23234] quite some heated discussion....

2009-06-03 Thread mdipierro
http://www.reddit.com/r/programming/comments/8pijx/web_development_with_python_made_easier_then_ever/ thanks to those who gave support. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups web2py Web Framework group. To

[web2py:23235] Re: click click clik

2009-06-03 Thread mdipierro
because those people are influential people in the Django community, the same people posting negative comments about web2py everywhere. Massimo On Jun 3, 5:16 pm, desfrenes desfre...@gmail.com wrote: I don't see the point in paying attention to those comments. All this reddit/twiter thing is

[web2py:23236] Does web2py still supports python 2.4?

2009-06-03 Thread Mariano Mara
I'm trying to migrate a web2py app to a centos server that comes with Python 2.4.3 So far I hit errors with hashlib and uuid (easily fixed installing python-hashlib and python-uuid). However now I have a problem with the code: $ ./web2py.py Traceback (most recent call last): File ./web2py.py,

[web2py:23237] Re: Event-style locking in web2py

2009-06-03 Thread mdipierro
You should not start a thread from a web2py thread (without lots of caveats). Massimo On Jun 3, 4:46 pm, Juan sor...@gmail.com wrote: Hi I've made a web2py application that uses AJAX long polling for bringing content to the browser at realtime, but in order to optimize it I want a request

[web2py:23238] Re: Translating a line with a link

2009-06-03 Thread mdipierro
li{{=T('Users can access the store')}} a href={{=request.application}}{{=T('here')}}/a/li you still need to go to admin and edit the translation in the language requested by the browser. Massimo On Jun 3, 7:14 pm, suiato homm...@gmail.com wrote: This may be a newbie question, but will someone

[web2py:23239] Re: click click clik

2009-06-03 Thread Horst Herb
On Thu, Jun 4, 2009 at 10:19 AM, mdipierro mdipie...@cs.depaul.edu wrote: because those people are influential people in the Django community, the same people posting negative comments about web2py everywhere. I am not sure whether such comments matter. People seriously using such development

[web2py:23240] Re: Does web2py still supports python 2.4?

2009-06-03 Thread cesmiga
Mariano, I got this information from the link below. web2py Download http://www.web2py.com/examples/default/download Current Version 1.63.3 (2009-06-02 22:13:56) * for Windows * for Mac * source code for all platforms (requires Python 2.5, runs on Windows and most Unix

[web2py:23241] Re: Does web2py still supports python 2.4?

2009-06-03 Thread Mariano Mara
On Jun 3, 10:18 pm, cesmiga cesm...@gmail.com wrote: Mariano, I got this information from the link below. web2py Download    http://www.web2py.com/examples/default/download Current Version 1.63.3 (2009-06-02 22:13:56)     * for Windows     * for Mac     * source code for all platforms

[web2py:23242] Re: Translating a line with a link

2009-06-03 Thread suiato
Thanks, Massimo 2009/6/4 mdipierro mdipie...@cs.depaul.edu: li{{=T('Users can access the store')}} a href={{=request.application}}{{=T('here')}}/a/li OK. It works :) I hoped T() could include the whole line because word orders are different (often reversed) in Japanese. For example, verb in

[web2py:23243] Re: click click clik

2009-06-03 Thread JohnMc
Massimo, Following Horst's observations from a different angle. 1) Don't worry about whether Web2Py is 'Enterprise Ready'. That is Tech Press/Vendor Spiel to create marketshare with appeal. Its verbal junk. Go take a look at table 2a -- http://www.census.gov/epcd/www/smallbus.html . The tally

[web2py:23244] Re: Translating a line with a link

2009-06-03 Thread mdipierro
It can li{{=XML(str(T('Users can access the store a href=%shere/a', (request.application)))}}/li Massimo On Jun 3, 8:31 pm, suiato homm...@gmail.com wrote: Thanks, Massimo 2009/6/4 mdipierro mdipie...@cs.depaul.edu: li{{=T('Users can access the store')}} a

[web2py:23245] Re: Authentication for services

2009-06-03 Thread Alexei Vinidiktov
I've tried this with the pyjamas tutorial and it didn't work. I've enabled user registration and registered a user whose credentials are used in the URL below. I got a server error when a function requiring user authentication was called. I changed the line JSONProxy.__init__(self,

[web2py:23246] Re: Translating a line with a link

2009-06-03 Thread suiato
2009/06/04 11:16 mdipierro mdipie...@cs.depaul.edu: It can li{{=XML(str(T('Users can access the store a href=%shere/a', (request.application)))}}/li Massimo Wow, great! It worked after adding a paranthesis ) to close XML. (The correction was easy to make thanks to the friendly editor in

[web2py:23247] Re: Translating a line with a link

2009-06-03 Thread mdipierro
it may work without the str but I have not tried. On Jun 3, 10:01 pm, suiato homm...@gmail.com wrote: 2009/06/04 11:16 mdipierro mdipie...@cs.depaul.edu: It can li{{=XML(str(T('Users can access the store a href=%shere/a', (request.application)))}}/li Massimo Wow, great! It

[web2py:23248] Re: click click clik

2009-06-03 Thread mdipierro
When I say enterprise I do not mean large businesses, I rather mean businesses and non profit organizations that use computers and follow a more or less professional software development cycles. I agree with you that small businesses are more profitable and a better market for web2py than large

[web2py:23249] Re: Does web2py still supports python 2.4?

2009-06-03 Thread mdipierro
actually it should work with 2.4 even if we do not like to advertise it (because of the backward compatibility issues). 1.63.3 broke this because of a patch. I am fixing this as we speak. Tomorrow it will work with 2.4 Sorry. Massimo On Jun 3, 8:25 pm, Mariano Mara mariano.m...@gmail.com wrote:

[web2py:23250] Re: web2py 1.63.3 is out with some bug fixes

2009-06-03 Thread mdipierro
useful thanks. Massimo On Jun 3, 6:05 pm, Yarko Tymciurak yark...@gmail.com wrote: I am so used to reading latest changes first, that I found reading the README... a bit annoying. Quick / dirty fix attached (insert in your web2py dir, and run readme.py to view the README file)

[web2py:23251] Re: Translating a line with a link

2009-06-03 Thread suiato
When writing {{=XML(str(T(...)))}}} lines for translation here and there, I realize it might be better to modify T(), wrapping the current T() with XML(str()). It will be simpler in expression, and won't break the compatibility, will it? Otherwise, you might end up with typing lots of

[web2py:23252] Re: Translating a line with a link

2009-06-03 Thread mdipierro
In model you can just do Tx=lambda *a: XML(str(T(*a)) and use Tx instead. On Jun 3, 10:51 pm, suiato homm...@gmail.com wrote: When writing {{=XML(str(T(...)))}}} lines for translation here and there, I realize it might be better to modify T(), wrapping the current T() with XML(str()). It

[web2py:23253] Re: click click clik

2009-06-03 Thread Eric Florenzano
1) Don't worry about whether Web2Py is 'Enterprise Ready'. That is Tech Press/Vendor Spiel to create marketshare with appeal. Its verbal junk. Go take a look at table 2a --http://www.census.gov/epcd/www/smallbus.html . The tally of firms 100 employees to those 100 outrank them 10x. You're

[web2py:23254] Re: click click clik

2009-06-03 Thread mdipierro
Hello Eric, We do not have to agree on everything but I do value your opinion so I am happy to have you here. Massimo On Jun 3, 9:33 pm, Eric Florenzano flo...@gmail.com wrote: 1) Don't worry about whether Web2Py is 'Enterprise Ready'. That is Tech Press/Vendor Spiel to create marketshare

[web2py:23255] web2py 1.63.4 is OUT

2009-06-03 Thread mdipierro
I just posted 1.63.4 because I patch in 1.63.3 had broken Python 2.4 and it was an urgent matter. I think the problem is now fixed. Changelog: - fixed python 2.4 - fixed problem with strange char encoding of absolute paths in sqlite on windows. Thanks Iceberg. Massimo

[web2py:23256] Re: Translating a line with a link

2009-06-03 Thread suiato
2009/06/04 12:57 mdipierro mdipie...@cs.depaul.edu: In model you can just do Tx=lambda *a: XML(str(T(*a)) and use Tx instead. This is a good learning experience for me. Lots of thanks, Massimo. By the way, XML(T()) seems to work when I tested with an example. Cheers, Teru

[web2py:23257] Re: click click clik

2009-06-03 Thread JohnMc
Massimo, We're on the same wavelength. Though I have to say that to many in the IT trade press, 'Enterprise' to them is the Fortune 5000. Which the joke is on them. That side of the business spends a lot of money but the margins are nonexistent. I spent the last 10 years of a 30year IT career

[web2py:23258] Re: upload filename

2009-06-03 Thread Trollkarlen
Strange because i did break out the filename building to a function. And both the appadmin and the app download works jut fine. def __db_filename(tablename, fieldname, filename): import re, uuid, base64 re_extension = re.compile('\.\w{1,5}$') m = re_extension.search(filename) e =