[web2py:15896] Re: web2py 1.56 is OUT!!!

2009-02-05 Thread David Marko
Its really a great release!! One question. Is there any docs on the cron feature in web2py? David --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web

[web2py:15897] Re: How to disable registration in T3

2009-02-05 Thread ANDROSoft
Hello, Sorry for my ignorance You have right - making public pages in T3 wiki is straitforward, just check checkbox :) I don't saw this before because Main page don't have this option... regards On Feb 5, 6:17 am, mdipierro wrote: > T3 is a web2py app so you edit it via admin. You can com

[web2py:15898] Re: web2py 1.56 is OUT!!!

2009-02-05 Thread achipa
Short version: take a look at applications/cron/crontab Long version: https://mdp.cti.depaul.edu/web2py_wiki/default/wiki/Web2pyCron On Feb 5, 9:51 am, David Marko wrote: > Its really a great release!! > One question. Is there any docs on the cron feature in web2py? > > David --~--~-~--

[web2py:15899] Re: How to disable registration in T3

2009-02-05 Thread achipa
Maybe thread hijacking, but what's the recommended way of disabling registration with the new web2py-core level Auth ? I know I can just return if the user function argument is register, I'm just not sure that is the best way (or how tied should the login with the registration be). On Feb 5, 6:17

[web2py:15900] Re: How to disable registration in T3

2009-02-05 Thread ANDROSoft
Hello, again I'm just do it in 3 steps for now: 1. deploy T3 app 2. register first user and set is as admin in manage/settings of T3: settings.administrator_emails=['y...@registered.mail.here'] 3. change register() in default.py of T3 app in web2py admin interface to: def register(): i

[web2py:15901] T3 is not working with web2py ver. 1.56

2009-02-05 Thread ANDROSoft
Hello, Current download link of T3 is linked to outdated version (with 'delete_uploads=True' which is not working with web2py 1.56+). Can we have updated version of T3 to download from web2py.appspot.com/ t3 ?? --~--~-~--~~~---~--~~ You received this message becau

[web2py:15902] Re: new web site

2009-02-05 Thread Timothy Farrell
I see you fixed the broken link that Yannick mentioned, but it's not fixed. Fix "donwload" in the link. mdipierro wrote: > That will be fixed automatically when the old one gets replaced but > thanks for reporting it. > > I am glad that people here like it more than I do. ;-) > > Massimo > > On

[web2py:15903] Re: new web site

2009-02-05 Thread Timothy Farrell
Disregard, I see you fixed it in the real page. Timothy Farrell wrote: > I see you fixed the broken link that Yannick mentioned, but it's not > fixed. Fix "donwload" in the link. > > mdipierro wrote: > >> That will be fixed automatically when the old one gets replaced but >> thanks for repor

[web2py:15904] Re: web2py 1.56 is OUT!!!

2009-02-05 Thread mdipierro
Achipa this should really become a page in the examples app, linked form index. Can you send ma a patch? Massimo On Feb 5, 3:55 am, achipa wrote: > Short version: take a look at applications/cron/crontab > > Long version:https://mdp.cti.depaul.edu/web2py_wiki/default/wiki/Web2pyCron > > On Fe

[web2py:15906] Re: T3 is not working with web2py ver. 1.56

2009-02-05 Thread mdipierro
reporting now. There was a leftover delete_uploads=True in modules/ t2.py On Feb 5, 7:00 am, ANDROSoft wrote: > Hello, > > Current download link of T3 is linked to outdated version (with > 'delete_uploads=True' which is not working with web2py 1.56+). > > Can we have updated version of T3 to dow

[web2py:15907] Re: web2py 1.56 is OUT!!!

2009-02-05 Thread achipa
OK, a bit busy these days so expect it next week, I'll make it a bit more formal and drop in a few formatted examples. On Feb 5, 4:34 pm, mdipierro wrote: > Achipa > > this should really become a page in the examples app, linked form > index. Can you send ma a patch? > > Massimo > > On Feb 5, 3:

[web2py:15905] Re: T3 is not working with web2py ver. 1.56

2009-02-05 Thread mdipierro
fixed and reposted. sorry. On Feb 5, 7:00 am, ANDROSoft wrote: > Hello, > > Current download link of T3 is linked to outdated version (with > 'delete_uploads=True' which is not working with web2py 1.56+). > > Can we have updated version of T3 to download from web2py.appspot.com/ > t3 ?? --~--~--

[web2py:15909] Re: PEP 8 (Style Guide for Python Code) Compliance

2009-02-05 Thread Chuck Rhode
mdipierro wrote this on Wed, Feb 04, 2009 at 09:30:06AM -0800. My reply is below. > look into gluon/compileapp.py Sorry, I couldn't *unzip* your archive with version 5.52-9etch1, which is included in Debian. -- .. Be Seeing You, .. Chuck Rhode, Sheboygan, WI, USA .. Weather: http://LacusVer

[web2py:15910] Re: web2py ORM and aggregations

2009-02-05 Thread BearXu
in 1.56 it seems that row.name should be row.yourtablename.name 2008/10/20 mdipierro > > yes. for example > > > t=db.define_table('mytable',SQLField('name'),SQLField('price','double')) > >print db(t.id>0).count() > > > rows=db(t.id>0).select(t.ALL,t.price.sum(),orderby=t.name,groupby=t.name)

[web2py:15911] Re: web2py ORM and aggregations

2009-02-05 Thread BearXu
2008/10/20 mdipierro > > yes. for example > > > t=db.define_table('mytable',SQLField('name'),SQLField('price','double')) > >print db(t.id>0).count() > > > rows=db(t.id>0).select(t.ALL,t.price.sum(),orderby=t.name,groupby=t.name) >for row in rows: print row.name, row._extra[t.price.sum()]

[web2py:15912] Re: New web2py homepage breaks on wider font

2009-02-05 Thread mdipierro
Can you suggest a fix? Massimo On Feb 5, 10:01 am, Markus Gritsch wrote: > Hi, > > I have configured my Firefix to use Verdana to render pages.  The new > style of the web2py homepage breaks with this wider font.  See > attachments. > > Kind regards, > Markus > >  1.png > 109KViewDownload > >  

[web2py:15913] Re: PEP 8 (Style Guide for Python Code) Compliance

2009-02-05 Thread mdipierro
anybody else having unzipping problems? On Feb 5, 10:24 am, Chuck Rhode wrote: > mdipierro wrote this on Wed, Feb 04, 2009 at 09:30:06AM -0800.  My > reply is below. > > > look into gluon/compileapp.py > > Sorry, I couldn't *unzip* your archive with version 5.52-9etch1, which > is included in De

[web2py:15914] Re: web2py ORM and aggregations

2009-02-05 Thread mdipierro
That is correct. In 1.55 and earlier too. My exmaple had a typo: t=db.define_table('mytable',SQLField('name'),SQLField ('price','double')) print db(t.id>0).count() rows=db(t.id>0).select(t.ALL,t.price.sum (),orderby=t.name,groupby=t.name) for row in rows: print row.mytable.name, row._ex

[web2py:15915] Re: New web2py homepage breaks on wider font

2009-02-05 Thread Joel Merrick
On Thu, Feb 5, 2009 at 4:01 PM, Markus Gritsch wrote: > Hi, > > I have configured my Firefix to use Verdana to render pages. The new > style of the web2py homepage breaks with this wider font. See > attachments. Is that not just breaking the CSS that's already applied? > > > Kind regards,

[web2py:15916] 1.56 Crud

2009-02-05 Thread carlo
Congrats for this new release, it is brilliant. I liked the new crud, never loved T2 that much, and maybe this is a well known question: which is the best way to customize crud tables layout (css) and maybe other details (column headers,etc..) thank you, carlo --~--~-~--~~--

[web2py:15917] Re: 1.56 Crud

2009-02-05 Thread Fran
On Feb 5, 6:39 pm, carlo wrote: > I liked the new crud, never loved T2 that much, and maybe this is a > well known question: which is the best way to customize crud tables > layout (css) and maybe other details (column headers,etc..) Crud tables are based on SQLFORM & SQLTABLE so inherit their c

[web2py:15918] Re: PEP 8 (Style Guide for Python Code) Compliance

2009-02-05 Thread Fran
On Feb 5, 5:28 pm, mdipierro wrote: > anybody else having unzipping problems? 1.56 win & src .zips open fine with 7-Zip on Win32 > On Feb 5, 10:24 am, Chuck Rhode wrote: > > > look into gluon/compileapp.py > > Sorry, I couldn't *unzip* your archive with version 5.52-9etch1, which > > is includ

[web2py:15920] why web2py?

2009-02-05 Thread mdipierro
http://www.reddit.com/r/programming/comments/7v5km/web2py_156_is_out_check_out_the_new_documentation/c07hroi --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send em

[web2py:15921] Re: New web2py homepage breaks on wider font

2009-02-05 Thread mdipierro
can you try now? Massimo On Feb 5, 1:55 pm, Markus Gritsch wrote: > On Thu, Feb 5, 2009 at 6:27 PM, mdipierro wrote: > > > Can you suggest a fix? > > I am no CSS expert myself, but the attached styles.css adds "overflow: > hidden;" to .menu which at least keeps the main content of the page in

[web2py:15922] Re: PEP 8 (Style Guide for Python Code) Compliance

2009-02-05 Thread achipa
After merging in 1.56 with pep8 compliance I must admit I'm less thrilled than I was initially :( As for whitespace within single lines, it's ok and welcome, but when it comes to splitting lines, in some cases it's just terrible. I'm all for standards but I can't believe the line width enforcement

[web2py:15923] Re: New web2py homepage breaks on wider font

2009-02-05 Thread Markus Gritsch
On Thu, Feb 5, 2009 at 9:21 PM, mdipierro wrote: > > can you try now? Yes, enormous line spacing, but otherwise as the attachment ;) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To

[web2py:15924] Re: PEP 8 (Style Guide for Python Code) Compliance

2009-02-05 Thread mdipierro
I ever followed pep8 because I too have my own readability standards. nevertheless some people complained so much about the code not being pep8 compliant that I changed it. Aesthetic issues are subjective. Massimo On Feb 5, 3:00 pm, achipa wrote: > After merging in 1.56 with pep8 compliance I

[web2py:15925] Re: PEP 8 (Style Guide for Python Code) Compliance

2009-02-05 Thread Chuck Rhode
Fran wrote this on Thu, Feb 05, 2009 at 11:12:02AM -0800. My reply is below. > Try getting this file from Bzr: > http://bazaar.launchpad.net/~mdipierro/web2py/devel/annotate/head%3A/gluon/compileapp.py Thanks for the link. Yes, indeed, this is a bug with *PythonTidy*. Thanks to one and all fo

[web2py:15926] Re: KeyError, can't fix it

2009-02-05 Thread pedro
Thank yo massimo, I didn't see that. This is cool, I get my questions answered by the man himself. On 3 Feb, 05:18, mdipierro wrote: > matches=db(db.matches.kick_off_datetime>datetime.now()).select > (orderby=~db.matches.kick_off_datetime) > > Massimo > > On Feb 2, 8:59 pm,pedro wrote: > > > Ok,

[web2py:15927] Re: PEP 8 (Style Guide for Python Code) Compliance

2009-02-05 Thread Chuck Rhode
mdipierro wrote this on Thu, Feb 05, 2009 at 01:12:07PM -0800. My reply is below. > I ever followed pep8 because I too have my own readability > standards. nevertheless some people complained so much about the > code not being pep8 compliant that I changed it. > Aesthetic issues are subjective

[web2py:15928] Re: web2py 1.56 is OUT!!!

2009-02-05 Thread DenesL
Lots of new and exciting features... and with documentation! ;) thanks. A couple of details with the new site: 1) In /examples/default/docs # New Tools: Authentication, Authorizaiton, and CRUD Examples Authorization is misspelled 2) At the bottom of the /examples/default/tools page (geocoding)

[web2py:15929] multiple column unique index

2009-02-05 Thread pedro
Do validators support this? I am inserting many to many relationships manually, can I use validators to make sure no two rows are identical? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group

[web2py:15930] Re: multiple column unique index

2009-02-05 Thread mdipierro
is db.table.field2.requires=IS_NOT_IN_DB(db (db.table.field1==request.vars.field1),db.table.field2) On Feb 5, 5:00 pm, pedro wrote: > Do validators support this? > I am inserting many to many relationships manually, can I use > validators to make sure no two rows are identical? --~--~-~

[web2py:15931] Re: multiple column unique index

2009-02-05 Thread mdipierro
Yes db.table.field2.requires=IS_NOT_IN_DB(db (db.table.field1==request.vars.field1),db.table.field2) On Feb 5, 5:00 pm, pedro wrote: > Do validators support this? > I am inserting many to many relationships manually, can I use > validators to make sure no two rows are identical? --~--~-

[web2py:15932] Re: PEP 8 (Style Guide for Python Code) Compliance

2009-02-05 Thread achipa
Massimo: Yes, certainly, I'm not talking about aesthetics in terms of what pleases me, but what actually bothers/slows me down while working (subjective, of course). With wrapping as-is, half of the screen is empty and I scroll a lot more (IMO eye movement is cheaper than scrolling). I dare not i

[web2py:15933] Re: PEP 8 (Style Guide for Python Code) Compliance

2009-02-05 Thread mdipierro
Chuck, will change the COL_SIZE fix this? Massimo On Feb 5, 5:53 pm, achipa wrote: > Massimo: > > Yes, certainly, I'm not talking about aesthetics in terms of what > pleases me, but what actually bothers/slows me down while working > (subjective, of course). With wrapping as-is, half of the sc

[web2py:15934] Re: web2py 1.56 is OUT!!!

2009-02-05 Thread Speedbird
Congratulations on this great release, I specially welcome the authentication/authorization patterns, really needed! - In fact this version beat me to it, I just released my weblog a couple of days ago, a pure web2py implementation (including authentication/authorization) :( Massimo, can you ple

[web2py:15935] invalid function

2009-02-05 Thread Sebastian E. Ovide
Hi All, I'm testing T2 and getting an "invalid function" error and nothing else !... cannot find any log file nor a ticked with further information any ideas? how can an error like that be debugged ? thanks --~--~-~--~~~---~--~~ You received this message bec

[web2py:15936] Re: PEP 8 (Style Guide for Python Code) Compliance

2009-02-05 Thread Chuck Rhode
achipa wrote this on Thu, Feb 05, 2009 at 03:53:31PM -0800. My reply is below. > One more example of 'I didn't quite expect this': > > if os.name == 'nt': > proc = Popen([self.cmd], stdin=PIPE, stdout=PIPE, > stderr=PIPE, shell=True) >

[web2py:15937] Re: PEP 8 (Style Guide for Python Code) Compliance

2009-02-05 Thread Chuck Rhode
mdipierro wrote this on Thu, Feb 05, 2009 at 04:33:20PM -0800. My reply is below. > will change the COL_SIZE fix this? Yes, it will fix this: > >                                     launchstr = \ > >     "%s web2py.py -P -M -S %s -a 'recycle' -R %s" ... and this: > >                     if t

[web2py:15938] Re: web2py 1.56 is OUT!!!

2009-02-05 Thread mdipierro
Execllent. It would be great if you could help with the documentation of tools.py. Perhaps adding comments in docstrings. Massimo On Feb 5, 7:35 pm, Speedbird wrote: > Congratulations on this great release, > > I specially welcome the authentication/authorization patterns, really > needed! - In

[web2py:15939] Re: invalid function

2009-02-05 Thread mdipierro
Mind that t2 does not expose any action. You have to install t2 with the name "plugin_t2" you cannot rename plugins. And use it in your own applications as explained in http://mdp.cti.depaul.edu/examples/static/t2.pdf Mind that the new web2py (1.56) has new APIs http://mdp.cti.depaul.edu/examp

[web2py:15940] Re: PEP 8 (Style Guide for Python Code) Compliance

2009-02-05 Thread mdipierro
May I ask you to sent me the latest version with the parameters set appropriately? I am not sure I have the latest. Massimo On Feb 5, 9:41 pm, Chuck Rhode wrote: > mdipierro wrote this on Thu, Feb 05, 2009 at 04:33:20PM -0800.  My reply is > below. > > > will change the COL_SIZE fix this? > >

[web2py:15941] Re: web2py 1.56 is OUT!!!

2009-02-05 Thread mr.freeze
This looks great! I'm glad auth and auth are integrated now (among the other many goodies in this release). The new site is looking good. Much more modern looking Minor typo here: http://mdp.cti.depaul.edu/examples/default/download under the license section '(with are all MIT or BSD type licenses

[web2py:15942] Re: Database Synchronization Howto and UUID

2009-02-05 Thread INeedHelp
HI i using the code provide above and try to run but when i try to import back the exported file. i have this error ValueError: Mixing iteration and read methods would lose data can help please and is it possibel to set the file exported in notepad/text doc/ms excel format?? thank in advance O

[web2py:15943] Re: import and sync

2009-02-05 Thread INeedHelp
i solved this prob On Feb 5, 3:39 pm, INeedHelp wrote: > I also have an error with "items" > i have tried to solve but still cant solve > > db.import_from_csv_file(form.vars.data.file) >            # for every table >             for table in db.tables: >                  # for every uuid, delet

[web2py:15944] Zip a folder (not a file) and move a file/directory

2009-02-05 Thread INeedHelp
1st I know how to zip a file but is there a way to zip a folder (with files contain inside).??? 2nd Is there a way to move a file and folder after zip that folder and file? thanks in advance cheers --~--~-~--~~~---~--~~ You received this message because you are

[web2py:15945] Re: Database Synchronization Howto and UUID

2009-02-05 Thread INeedHelp
i have this error also after i using the latest web2py TypeError: long() argument must be a string or a number, not 'list' On Feb 6, 2:34 pm, INeedHelp wrote: > HI > i using the code provide above and try to run but when i try to import > back the exported file. i have this error > ValueError: M