[web2py:23647] Re: how to get main web2py directory?

2009-06-09 Thread SergeyPo
There are problems with these in Windows when web2py is run as service. They show path to python. After many trials I came to this ugly solution: import applications.advantage.modules.pathfinder as pathfinder PATH_TO_ME = os.path.dirname( os.path.realpath( pathfinder.__file__ )) Here

[web2py:23648] Re: problem with selfreference left outer join

2009-06-09 Thread notabene
Try list argument in left join: left =[ ... , ... ] On Jun 9, 7:59 am, Peter Etchells peter.a.etche...@gmail.com wrote: When trying the example in the new slide show:  ...db = SQLDB('sqlite://storage.sqlite') db.define_table('dog',     SQLField('name'),    

[web2py:23649] Re: problem with selfreference left outer join

2009-06-09 Thread mdipierro
odd. try print db()._select(db.dog.name, db.father.name, db.mother.name, left=(db.father.on(db.father.id==db.dog.father_id), db.mother.on (db.mother.id==db.dog.mother_id))) On Jun 9, 12:59 am, Peter Etchells peter.a.etche...@gmail.com wrote: When

[web2py:23650] jython again

2009-06-09 Thread mdipierro
I uploaded a new version of web2py that runs on Jython (it run before but one of the previous patches broke it). HOWTO: download jython_installer-2.5rc3.jar java -jar jython_installer-2.5rc3.jar cd [the created jython folder where ever it is] ./jython ../web2py/web2py.py -S mynewapp

[web2py:23651] Re: web2py perfomance

2009-06-09 Thread Alexey Nezhdanov
Ok. Now the confusion is resolved. 1) Speed improvements of 70% and up that I reported yesterday are really exist. I just reproduced a 3.47 times model speedup and 2.15 overall speedup for my app (r875 vs r822+inits). BUT this app is atypical. I have added some time measuring code there so it

[web2py:23652] Re: how to get main web2py directory?

2009-06-09 Thread mdipierro
I am not convinced. why should it find applications and not find its own path? anyway, where do you think it should go? massimo On Jun 9, 1:04 am, SergeyPo ser...@zarealye.com wrote: There are problems with these in Windows when web2py is run as service. They show path to python. After many

[web2py:23653] Re: rev 877 breaks app

2009-06-09 Thread Fran
On Jun 9, 1:53 am, mdipierro mdipie...@cs.depaul.edu wrote: please try revision 892 Seems to fix that problem, but creates a new one: I have a table which has a parent-child hierarchy, so has a reference to itself: db.define_table(gis_location, db.Field('parent', 'reference

[web2py:23654] Re: Delete error on crud

2009-06-09 Thread annet
Massimo, I just tested the check to delete functionality based on r1006, and it passe all tests. Thanks for fixing this issues. Which adjustments did you make to the welcome app I based my applications on? Kind regards, Annet --~--~-~--~~~---~--~~ You

[web2py:23655] Re: web2py perfomance

2009-06-09 Thread Alexey Nezhdanov
new testing: SERVER KERNEL --prints r8750.04898 r822ini 0.03070 1.60x --silent r8750.04914 r822ini 0.03049 1.61x So I get much more consistent results on this hardware. While this is obviously not the best perfomance (my weaker box, with less RAM, troubled with video output

[web2py:23656] Re: web2py perfomance

2009-06-09 Thread Yarko Tymciurak
it might help to have tests in a state that you can ask others to run them; a dozen or so other random boxes will help you gain the confidence you seek I think On Tue, Jun 9, 2009 at 2:12 AM, Alexey Nezhdanov snak...@gmail.com wrote: new testing: SERVER KERNEL --prints r875

[web2py:23657] Re: jython again

2009-06-09 Thread Fran
On Jun 9, 7:42 am, mdipierro mdipie...@cs.depaul.edu wrote: I know I need to install sqlite-jdbc-3.6.14.2.jar but I have no idea what to do with it. help? May help: http://wiki.python.org/jython/JythonFaq/InstallingJython#JythoncannotfindyourJavaclass.2Ceventhoughitexistsintheclasspath. F

[web2py:23658] Re: how to get main web2py directory?

2009-06-09 Thread SergeyPo
When it runs as windows service it shows, well, not python, I was wrong, it shows the path to that utility that is used to run as service... I think if request.env.web2py_path always gives realpath to web2py directory that would be enough. On Jun 9, 10:44 am, mdipierro mdipie...@cs.depaul.edu

[web2py:23659] Login_next

2009-06-09 Thread annet
Massimo, r992 did not fix the login_next problem. In db.py I have: auth.settings.login_url=URL(r=request,c='authentication',f='login') auth.settings.login_next=URL(r=request,c='core',f='index') auth.settings.logout_next=URL(r=request,c='default',f='index') In 1.61.4 the first two worked, in

[web2py:23660] retrieve_username and retrieve_password

2009-06-09 Thread annet
In version 1.61.4 these settings sufficed to retrieve the username and password: ## mailer mail=Mail() ## specify your SMPT server mail.settings.server='smtp.gmail.com:587' ## specify your email address mail.settings.sender='@gmail.com' ## optional: specify your user name and password

[web2py:23661] Re: problem with selfreference left outer join

2009-06-09 Thread Peter Etchells
prints: SELECT dog.name, dog.name, dog.name FROM LEFT JOIN dog ON dog.id=dog.father_id LEFT JOIN dog ON dog.id=dog.mother_id; --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups web2py Web Framework group. To post to

[web2py:23662] Re: web2py perfomance

2009-06-09 Thread Alexey Nezhdanov
You probably right. But I can't give away the project I'm testing it on and don't yet 'ready' to write a separate one exclusively for testing. I'm still fighting with getting stable results even on this box :( On Tue, Jun 9, 2009 at 11:17 AM, Yarko Tymciurakyark...@gmail.com wrote: it might

[web2py:23663] Re: slides again

2009-06-09 Thread LordMax
Hi On 7 Giu, 23:13, mdipierro mdipie...@cs.depaul.edu wrote: I did not realize one had to login. I will post it somewehere else too, together with source (ppt and keynote) asap. wow. There's alredy a link? I would appreciate very much ppt or keynote version.

[web2py:23664] Delete Content with Security question

2009-06-09 Thread pk
Hi together, how can I delete a content (row) from the table with a security question. for example: Are you sure to delete the project? yes - no thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups web2py Web

[web2py:23665] Re: web2py perfomance

2009-06-09 Thread Alexey Nezhdanov
Wrote 'optimised inits v2' patch. Tested everything. Once again I changed my testing pattern a bit. 1) I dumped my own timing tool in favor of much more standard 'ab' (apache benchmark). 2) I decidedly will publish all these results in two main. I just finished first round of testing. Here are

[web2py:23666] Reference in another table

2009-06-09 Thread pk
Hi, I´ve a table called project and i have another table called projectfile. How can i reference automaticlly the project.id in the table projectfile? this is my code, but it`s wrong: db.define_table('projectfile', SQLField('projectid', default=project.id, writable=False,

[web2py:23667] Re: build automation

2009-06-09 Thread Sebastian E. Ovide
ok... from the Makefile I could use: python -c 'import compileall; compileall.compile_dir(applications/myapplication)' to build it. will it run the unit tests too ? if yes, how do I know how many tests have failed ? thanks On Mon, Jun 8, 2009 at 10:20 PM, mdipierro

[web2py:23668] Re: new auth functions in trunk (basic, email/gmail, ldap)

2009-06-09 Thread Trollkarlen
Alexei Vinidiktov wrote: On Mon, Jun 8, 2009 at 11:29 AM, mdipierromdipie...@cs.depaul.edu wrote: Hi Richard, the gmail authentication is not based on open-id (yet). it presents you with a standard login form. It tried to log you in via the normal auth_user table. It it fails, it

[web2py:23669] Re: response.flash upgrade

2009-06-09 Thread Trollkarlen
I have done the same but with: http://digitarald.de/project/roar They have very nice things on that site. /T mr.freeze wrote: I don't like having to click on response.flash to close it so I replaced it with this: http://stanlemon.net/projects/jgrowl.html Just thought I would share.

[web2py:23670] Auth

2009-06-09 Thread Robert Marklund
Cant auth be changed somhow to it will be easier to extend like this: db.define_table('auth_user2', db.auth_user, SQLField('nickname'), SQLField('image','upload')) The problem to day is the: table.email.requires = [IS_EMAIL(), IS_NOT_IN_DB(db,

[web2py:23671] Re: web2py perfomance

2009-06-09 Thread Alexey Nezhdanov
Results of second set of test runs: r87545.523ms r88220.614ms inits v.1 18.464ms inits v.2 18.677ms inits1+lazyT15.377ms inits2+lazyT15.280ms Observed noise was 0.502ms for slowest execution (90:1 signal-to-noise) and 0.889ms for fastest execution

[web2py:23672] Re: web2py perfomance

2009-06-09 Thread Alexey Nezhdanov
Forgot about patches. Here they are. 'optimised inits v.2' 'lazy tables' (this one is modified to be applicable to trunk version of sql.py) On Tue, Jun 9, 2009 at 3:10 PM, Alexey Nezhdanov snak...@gmail.com wrote: Results of second set of test runs: r87545.523ms r882

[web2py:23673] Re: Delete Content with Security question

2009-06-09 Thread Fran
On Jun 9, 10:30 am, pk peter.kirch...@youngdesigners.de wrote: how can I delete a content (row) from the table with a security question. for example: Are you sure to delete the project? yes - no Look at make_delete_row() in this file:

[web2py:23674] Re: Reference in another table

2009-06-09 Thread Fran
On Jun 9, 10:56 am, pk peter.kirch...@youngdesigners.de wrote: I´ve a table called project and i have another table called projectfile. How can i reference automaticlly the project.id in the table projectfile? db.define_table('projectfile',                 SQLField('projectid',

[web2py:23675] Re: Reference in another table

2009-06-09 Thread pk
ok i will try, thanks for your help On 9 Jun., 13:47, Fran francisb...@googlemail.com wrote: On Jun 9, 10:56 am, pk peter.kirch...@youngdesigners.de wrote: I´ve a table called project and i have another table called projectfile. How can i reference automaticlly the project.id in the

[web2py:23676] how to prevent deletion of referenced records

2009-06-09 Thread Marco Prosperi
hi all, is there a validator or an easy way to prevent a user to delete a record if there are other records referencing it? Just to make an example: consider the 'images' application in cookbook2.pdf. I would like that the user cannot delete an image if there are comments referred to it (it would

[web2py:23677] Re: Auth

2009-06-09 Thread Fran
On Jun 9, 11:42 am, Robert Marklund robbelibob...@gmail.com wrote: Cant auth be changed somhow to it will be easier to extend like this: db.define_table('auth_user2',                 db.auth_user,                 SQLField('nickname'),                 SQLField('image','upload')) The problem

[web2py:23680] Re: web2py perfomance

2009-06-09 Thread Alexey Nezhdanov
Wanted to attach test data as well but automatically clicked 'send' and oops... it gone. Here are couple of test runs: 1.63.544.572 On Tue, Jun 9, 2009 at 4:14 PM, Alexey Nezhdanov snak...@gmail.com wrote: Finally, I started migration (before I was just slapping sql.py, checked out of the trunk

[web2py:23681] Re: response.flash upgrade

2009-06-09 Thread mr.freeze
Ooooh...That's nice too. Massimo, should one of these (probably a jQuery based one) replace the default response.flash behavior to give web2py some more pizazz out of the box? Also, what are your thoughts on including jQueryUI with web2py and replacing the current default clunky calendar with

[web2py:23682] Re: web2py perfomance

2009-06-09 Thread Alexey Nezhdanov
:( using web interface is inconvenient. Ignore last mail, resending: - Wanted to attach test data as well but automatically clicked 'send' and oops... it gone. Here are couple of test runs: 1.63.5 44.572ms 1.63.5 44.898ms detected noise 0.326ms (136:1

[web2py:23683] Re: new auth functions in trunk (basic, email/gmail, ldap)

2009-06-09 Thread mr.freeze
I will take a stab at the active directory implementation ASAP. On Jun 8, 11:52 pm, mdipierro mdipie...@cs.depaul.edu wrote: only mode='uid' is implemented. I could use help debugging/ implementing the other modes Massimo On Jun 8, 10:38 pm, mr.freeze nfre...@gmail.com wrote: Sorry, I

[web2py:23684] Re: global logging to file

2009-06-09 Thread Hans
Sorry for being picky on this. I think the database is not a suitable place either to store a 'application instance initialized flag'. Reason: 1) the db can be used by more than one instance of the app 2) if the app stops execution without setting back the 'db record' to 'app not initialized' -

[web2py:23685] Re: how to prevent deletion of referenced records

2009-06-09 Thread carlo
Hi Marco, if you mean at db level, it depends on your db engine. To my knowledge, in Sqlite you can not get foreign key constraints (on delete=cascade or similar is not effective) but you have to use Triggers to achieve the same result. Foreign keys constraints though can be enforced in most of

[web2py:23686] Re: how to prevent deletion of referenced records

2009-06-09 Thread annet
Marco, Did you test this in Sqlite: db.define_table('table', db.Field('field',...,ondelete='RESTRICT'), migrate='table.table') It does set the ON DELETE to RESTRICT in the foreign key constraint in Postres. Annet. --~--~-~--~~~---~--~~ You received

[web2py:23687] Re: how to prevent deletion of referenced records

2009-06-09 Thread carlo
Foreign key constraints are not implemented in Sqlite (although it parses the command). See: http://www.sqlite.org/omitted.html but you can use triggers. carlo On 9 Giu, 15:46, annet annet.verm...@gmail.com wrote: Marco, Did you test this in Sqlite: db.define_table('table',    

[web2py:23688] Re: problem with selfreference left outer join

2009-06-09 Thread mdipierro
sorry, should have been: db().select(db.dog.name, father.name, mother.name, left=(father.on(father.id==db.dog.father_id), mother.on(mother.id==db.dog.mother_id))) On Jun 9, 3:03 am, Peter Etchells peter.a.etche...@gmail.com wrote: prints:

[web2py:23689] Re: rev 877 breaks app

2009-06-09 Thread mdipierro
Uploading another version to trunk. Please give it another try On Jun 9, 1:49 am, Fran francisb...@googlemail.com wrote: On Jun 9, 1:53 am, mdipierro mdipie...@cs.depaul.edu wrote: please try revision 892 Seems to fix that problem, but creates a new one: I have a table which has a

[web2py:23690] Re: how to get main web2py directory?

2009-06-09 Thread mdipierro
Does this mean the fix is wrong but we still have a problem to fix? or does it mean it works as it is? On Jun 9, 2:27 am, SergeyPo ser...@zarealye.com wrote: When it runs as windows service it shows, well, not python, I was wrong, it shows the path to that utility that is used to run as

[web2py:23691] Re: Login_next

2009-06-09 Thread mdipierro
Right now there are two possibilities: - if web2py redirects you to login, after login, login redirects you to the referencing page - if you go to the login page without redirection, after login, you go to login_next I think what you see is consistent with this behavior. Am I wrong? Massimo

[web2py:23692] Re: retrieve_username and retrieve_password

2009-06-09 Thread mdipierro
I think you are mssing auth.settings.mailer=mail On Jun 9, 2:43 am, annet annet.verm...@gmail.com wrote: In version 1.61.4 these settings sufficed to retrieve the username and password: ## mailer mail=Mail() ## specify your SMPT server mail.settings.server='smtp.gmail.com:587' ##

[web2py:23693] Re: What happened to db.py when creating a new app???

2009-06-09 Thread cesmiga
Massimo, The latest trunk (rev 1014) works as designed. Christopher mdipierro wrote: This I cannot reproduce. Please try the latest trunk anyway. On Jun 9, 12:16 am, cesmiga cesm...@gmail.com wrote: Just another note on this issue.  While running... # ./web2py.py -S testapp after

[web2py:23694] Re: slides again

2009-06-09 Thread mdipierro
I will post keynote and ppt versions tonight. Massimo On Jun 9, 4:05 am, LordMax lord...@gmail.com wrote: Hi On 7 Giu, 23:13, mdipierro mdipie...@cs.depaul.edu wrote: I did not realize one had to login. I will post it somewehere else too, together with source (ppt and keynote) asap.

[web2py:23695] Re: build automation

2009-06-09 Thread mdipierro
No you have to run the tests one by one cd gluon/tests python test_html.py ... On Jun 9, 5:09 am, Sebastian E. Ovide sebastianov...@gmail.com wrote: ok... from the Makefile I could use: python -c 'import compileall; compileall.compile_dir(applications/myapplication)' to build it. will

[web2py:23696] Re: Show only users Project

2009-06-09 Thread mdipierro
There is a reference to project.pname that I do not underastand so I can only give you a partial answer. You want to specify a filter as first argument of IS_IN_DB db.projectfile.projectname.requires=IS_IN_DB(db (db.project.userid==auth.user.id), 'project.pname', '%(pname)s') On

[web2py:23697] Re: response.flash upgrade

2009-06-09 Thread mdipierro
I would prefer to minimize the amount of JS that ships with the scafolding app. It makes it easier to customize it. I do not object to making admin more sophisticate and flashier. Massimo On Jun 9, 7:28 am, mr.freeze nfre...@gmail.com wrote: Ooooh...That's nice too.  Massimo, should one of

[web2py:23698] Re: web2py perfomance

2009-06-09 Thread mdipierro
This confirms the 2.5x speedup of trunk vs stable. It will take me some time to go over the other patches but I will. Thanks Alexey. Massimo On Jun 9, 6:10 am, Alexey Nezhdanov snak...@gmail.com wrote: Results of second set of test runs: r875            45.523ms r882            20.614ms

[web2py:23699] Re: response.flash upgrade

2009-06-09 Thread annet
Massimo, I think it is a good idea to substitute the current calendar with a more straightforward one. I had a look at the dynarch site, the calender we use in web2py has been moved to the 'old stuff' section ... I would prefer a calendar like the one demonstrated here:

[web2py:23700] Re: Show only users Project

2009-06-09 Thread pk
thanks but i get a now an error: Traceback (most recent call last): File gluon/restricted.py, line 98, in restricted File /Applications/web2py1.62/web2py.app/Contents/Resources/ applications/2busy/models/db.py, line 104, in module AttributeError: 'NoneType' object has no attribute 'id'

[web2py:23702] Re: problem with selfreference left outer join

2009-06-09 Thread DenesL
Using latest trunk 1014 and starting from empty app the table definition fails: db = SQLDB('sqlite://storage.sqlite') db.define_table('dog', SQLField('name'), SQLField('father_id','reference dog'), SQLField('mother_id','reference dog')) Traceback (most recent call last): File

[web2py:23701] Re: global logging to file

2009-06-09 Thread mdipierro
I agree about 1 and 2. I do not thing logging belongs to cache either. i think we want something like request.log(message) which does something like. open(os.path.join(request.folder,'app.log'),'w').write(message +'\n') Am I wrong? The problem is that this naive approach would bypass

[web2py:23703] Re: response.flash upgrade

2009-06-09 Thread mdipierro
yes but the one we have does date and datetime. The other one does not do datetime. Am I wrong? On Jun 9, 9:32 am, annet annet.verm...@gmail.com wrote: Massimo, I think it is a good idea to substitute the current calendar with a more straightforward one. I had a look at the dynarch site, the

[web2py:23704] Re: retrieve_username and retrieve_password

2009-06-09 Thread annet
Massimo, Uncommenting auth.settings.mailer=mail solved the problem. Annet. --~--~-~--~~~---~--~~ 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@googlegroups.com

[web2py:23705] Re: Show only users Project

2009-06-09 Thread mdipierro
if auth.is_logged_id(): db.projectfile.projectname.requires=IS_IN_DB(db (db.project.userid==auth.user.id),'project.pname','%(pname)s') else you do not have a user id. why are you still on 1.62? ;-) On Jun 9, 9:34 am, pk peter.kirch...@youngdesigners.de wrote: thanks but i get a now an

[web2py:23706] Re: problem with selfreference left outer join

2009-06-09 Thread mdipierro
Try 1015. It seems the previous commit failed. Works for me. Massimo On Jun 9, 9:35 am, DenesL denes1...@yahoo.ca wrote: Using latest trunk 1014 and starting from empty app the table definition fails: db = SQLDB('sqlite://storage.sqlite') db.define_table('dog',     SQLField('name'),    

[web2py:23707] Re: Show only users Project

2009-06-09 Thread pk
now i get the next error :( Traceback (most recent call last): File gluon/restricted.py, line 98, in restricted File /Applications/web2py1.62/web2py.app/Contents/Resources/ applications/2busy/models/db.py, line 103, in module AttributeError: 'Auth' object has no attribute 'is_logged_id' i

[web2py:23708] Re: problem with selfreference left outer join

2009-06-09 Thread DenesL
Same error with 1015. Did you start from new app? Steps: Create new app in admin Edit db.py to add define_table as above Click database administration in appadmin Internal error ticket --~--~-~--~~~---~--~~ You received this message because you are subscribed to

[web2py:23709] Re: response.flash upgrade

2009-06-09 Thread annet
Massimo, No, you're right, however, I prefer a more straightforward date-picker to the awkward date- and date-time-picker. Kind regards, Annet --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups web2py Web Framework

[web2py:23710] Re: Login_next

2009-06-09 Thread annet
Massimo, Right now there are two possibilities: - if web2py redirects you to login, after login, login redirects you to the referencing page - if you go to the login page without redirection, after login, you go to login_next I think what you see is consistent with this behavior. Am I

[web2py:23711] Re: response.flash upgrade

2009-06-09 Thread DenesL
I feel this is a matter of taste. The current one looks more cluttered but that is because it offers more info and options to the user. Try selecting June 2010 with the jqueryui one. I prefer the current one. --~--~-~--~~~---~--~~ You received this message because

[web2py:23712] Re: Show only users Project

2009-06-09 Thread pk
ok i`ve solved my problem with if auth.is_logged_in(): db.projectfile.projectname.requires=IS_IN_DB(db (db.project.userid==auth.user.id),'project.pname','%(pname)s') thanks On 9 Jun., 16:44, pk peter.kirch...@youngdesigners.de wrote: now i get the next error :( Traceback (most recent

[web2py:23713] Problem in 1.63.5

2009-06-09 Thread pk
Hi Massimo, I´ve problems when i login in the new version, i get the default page of web2py not my requested page. In 1.62 i haven`t got this problem. Here my code: @auth.requires_login() def index(): redirect(URL(r=request,c='menu',f='index')) ## #

[web2py:23714] Re: problem with selfreference left outer join

2009-06-09 Thread DenesL
This is very easy to reproduce. Could someone else test and confirm either way?. Thanks. --~--~-~--~~~---~--~~ 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:23715] Texteditor

2009-06-09 Thread pk
Hi, is there a possibilty to use a texteditor in the html-page (bold-font, newline ...) for the user and after submit it will save it in the table. i need it for an cms for example. thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed

[web2py:23716] Re: problem with selfreference left outer join

2009-06-09 Thread DenesL
Created a new repository and exported from svn again. Now it works (!?) Strange, old gluon repository has all green svn check marks. Oh well, main thing is it works. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[web2py:23717] Re: Auth

2009-06-09 Thread Trollkarlen
Fran wrote: On Jun 9, 11:42 am, Robert Marklund robbelibob...@gmail.com wrote: Cant auth be changed somhow to it will be easier to extend like this: db.define_table('auth_user2',                 db.auth_user,                 SQLField('nickname'),                

[web2py:23718] Re: Problem in 1.63.5

2009-06-09 Thread mdipierro
Can you explain better? Is this is a prblem with the stable or the tunk version? On Jun 9, 10:17 am, pk peter.kirch...@youngdesigners.de wrote: Hi Massimo, I´ve problems when i login in the new version, i get the default page of web2py not my requested page. In 1.62 i haven`t got this

[web2py:23719] Re: Auth

2009-06-09 Thread mdipierro
The best way is to customize the auth_user table as shown in the slides, insdead of subclassing it. Else it is much more complex than just setting auth.settings.table_user, since references from other built-in tables will break Massimo On Jun 9, 10:42 am, Trollkarlen robbelibob...@gmail.com

[web2py:23720] Should we be tracking bugs and enhancement requests at Launchpad?

2009-06-09 Thread cesmiga
All: I'm not sure if this has been discussed in the past and would like to hear more if we should be tracking bugs and enhancement requests at Launchpad? https://launchpad.net/web2py Wouldn't it make code management and processes more manageable and more folks could aid with QA. Thank

[web2py:23721] Re: Problem in 1.63.5

2009-06-09 Thread pk
i load the version: Current Version 1.63.5 (2009-06-03 23:35:00) for osx. and i use the auth-object. on my index page i`ve a form to login, register a user. when the login is correct i receive the follow link: http://localhost:8000/admin/default/site but i will receive:

[web2py:23722] Re: response.flash upgrade

2009-06-09 Thread annet
Denes, Indeed, it is a matter of taste. But cognitive ergonomically the current calendar is a disaster. The arrows to increase the months and years are next to today, my test user did not see the month change when he clicked the arrow nor did he see the year change when he clicked the double

[web2py:23723] Custom Display Values

2009-06-09 Thread Gary
I'm using crud to interact with a custom view. form.custom.inpval.fieldname and form.custom.dspval.fieldname display the proper value for most field types, but not files, select boxes and checkboxes. The download easily fixes the file display, but I've been unable to find a similar solution to

[web2py:23724] Re: response.flash upgrade

2009-06-09 Thread mr.freeze
There are many more options in the jQueryUI calendar. For this you could use: $('.selector').datepicker({ changeYear: true }); On Jun 9, 10:11 am, DenesL denes1...@yahoo.ca wrote: I feel this is a matter of taste. The current one looks more cluttered but that is because it offers more info

[web2py:23725] Re: Problem in 1.63.5

2009-06-09 Thread annet
Peter, Aren't you facing the same problem as I am: http://groups.google.com/group/web2py/browse_thread/thread/d5083ed08c685e34 Annet. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups web2py Web Framework

[web2py:23726] Re: check out my newly built web2py app if you want

2009-06-09 Thread Iceberg
I promise Matt is surely right about the font issue. :-) And one more defect, trying to not completing necessary field results in a function error_message at 0x8c1c41c appearing at the usual response.flash area. Everything else seems ok. I like your two level menu especially. Hope to see your

[web2py:23727] Re: Problem in 1.63.5

2009-06-09 Thread pk
Hi Annet, it seems to be the same problem. Peter On 9 Jun., 18:09, annet annet.verm...@gmail.com wrote: Peter, Aren't you facing the same problem as I am: http://groups.google.com/group/web2py/browse_thread/thread/d5083ed08c... Annet.

[web2py:23728] Re: Texteditor

2009-06-09 Thread annet
I am using NicEdit: http://nicedit.com/ Annet. --~--~-~--~~~---~--~~ 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@googlegroups.com To unsubscribe from this

[web2py:23729] Re: Should we be tracking bugs and enhancement requests at Launchpad?

2009-06-09 Thread Jason Brower
Sadly, I agree, but 1 month ago, the choice was made to stick to what we have now. I REALLY want that to happen. Regards, Jason Brower On Tue, 2009-06-09 at 08:56 -0700, cesmiga wrote: All: I'm not sure if this has been discussed in the past and would like to hear more if we should be

[web2py:23730] Re: web2py perfomance

2009-06-09 Thread AchipA
Any particular reason not doing is_integer via a 'try: int(i) except: return False' statement ? It should be faster than regexes. On Jun 7, 1:49 pm, Iceberg iceb...@21cn.com wrote: On Jun7, 6:35pm, Alexey Nezhdanov snak...@gmail.com wrote: 2) is_integer is a fast call, but with 1.1k (!)

[web2py:23731] Re: Custom Display Values

2009-06-09 Thread mdipierro
with the new trunk you can do {{=form.custom.widget.fieldname}} On Jun 9, 11:06 am, Gary gary.k.ma...@gmail.com wrote: I'm using crud to interact with a custom view. form.custom.inpval.fieldname and form.custom.dspval.fieldname display the proper value for most field types, but not files,

[web2py:23732] Re: Login_next

2009-06-09 Thread mdipierro
I have an idea that may fix this. I will work on it tonight. On Jun 9, 10:05 am, annet annet.verm...@gmail.com wrote: Massimo, Right now there are two possibilities: - if web2py redirects you to login, after login, login redirects you to the referencing page - if you go to the login

[web2py:23733] Re: Texteditor

2009-06-09 Thread mdipierro
Using nicedit you can change the textareas for the field you need into wysiwyg fields. To then display the field properly you much prevent escaping with {{=XML(fieldvalue)}} On Jun 9, 11:16 am, annet annet.verm...@gmail.com wrote: I am using NicEdit: http://nicedit.com/ Annet.

[web2py:23734] Subset of records in SQLFORM dropbox

2009-06-09 Thread Gutch
Hello, Sorry if this question is a repeat, but I'm new here and couldn't find anything on point in the archive. I'm trying to create a form for data insertion, which will include a dropbox representing a foreign key. Trouble is, the foreign table has another key representing the row's 'school',

[web2py:23735] Re: Should we be tracking bugs and enhancement requests at Launchpad?

2009-06-09 Thread Yarko Tymciurak
just a reminder - there was a plan afoot to move from launchpad to mercurial hosting (likely on google code)... On Tue, Jun 9, 2009 at 11:16 AM, Jason Brower encomp...@gmail.com wrote: Sadly, I agree, but 1 month ago, the choice was made to stick to what we have now. I REALLY want that to

[web2py:23736] Re: Texteditor

2009-06-09 Thread pk
oh thanks, it`s a cool tool. peter On 9 Jun., 18:16, annet annet.verm...@gmail.com wrote: I am using NicEdit: http://nicedit.com/ Annet. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups web2py Web Framework

[web2py:23737] Re: Should we be tracking bugs and enhancement requests at Launchpad?

2009-06-09 Thread mdipierro
Yes and no. We are moving to mercurial very very soon and move away from launchpad so I would prefer we use google code for bug tracking. It is also faster for me to access. Anyway, I never said that we should use bug tracking. I only asked to first email the list to make sure you indeed found

[web2py:23738] Re: web2py perfomance

2009-06-09 Thread mdipierro
good point. Anyway, the function is no longer called as often as Alexey originally pointed out, so it would make a negligible difference. I will change it though. Massimo On Jun 9, 11:24 am, AchipA attila.cs...@gmail.com wrote: Any particular reason not doing is_integer via a 'try: int(i)

[web2py:23739] table/sqltable helper post-production

2009-06-09 Thread AchipA
Just been through some TABLE() and SQLTABLE() work and could not find a way (I was satisfied with) to change output results of particular columns. For example, I have an sql column that is a color code and I'd like to put in a css element with that color. The hard way is obviously foregoing the

[web2py:23740] Re: Subset of records in SQLFORM dropbox

2009-06-09 Thread mdipierro
I do not fully understand. You want a create incident form but that does not have a school field. I guess what you want is display only students for the same school as the logged in staff. In this case you can do school_id=db.staff[userid()].school if userdi() else None

[web2py:23741] Re: table/sqltable helper post-production

2009-06-09 Thread mdipierro
There is no may to make a SQLTABLE taht fits everybody's taste and needs. I think you should 1) define your own SQLTABLE2, or 2) loop over rows explicitly Massimo On Jun 9, 11:50 am, AchipA attila.cs...@gmail.com wrote: Just been through some TABLE() and SQLTABLE() work and could not find a

[web2py:23742] redirect

2009-06-09 Thread Jose
Hello At the end of the load of information on the part of the user there is a link to the following function: def terminar(): if session.documento is None: redirect(URL(r=request, c='default', f='index')) ... if solicitud[0].id 0:

[web2py:23743] Re: global logging to file

2009-06-09 Thread Iceberg
request.log(message) would be nice, but all the advantages of standard logging are too good to let go. So I came up with this little trick. Add following codes inside model/log.py: def _init_log(): import logging logger=logging.getLogger(request.application)

[web2py:23744] Re: Should we be tracking bugs and enhancement requests at Launchpad?

2009-06-09 Thread cesmiga
Massimo, Thank you for the update. My apologies since this was discussed earlier. Christopher mdipierro wrote: Yes and no. We are moving to mercurial very very soon and move away from launchpad so I would prefer we use google code for bug tracking. It is also faster for me to access.

[web2py:23745] Re: check out my newly built web2py app if you want

2009-06-09 Thread mikech
It seems I created two new decks without hitting the submit button by just navigating away from the page. Also would be nice to be able to delete them. Mike On Jun 9, 9:12 am, Iceberg iceb...@21cn.com wrote: I promise Matt is surely right about the font issue. :-) And one more defect,

[web2py:23746] Re: rev 877 breaks app

2009-06-09 Thread Fran
On Jun 9, 3:13 pm, mdipierro mdipie...@cs.depaul.edu wrote: Uploading another version to trunk. Please give it another try r896 works fine - many thanks :) F --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups web2py

[web2py:23747] Re: Custom Display Values

2009-06-09 Thread Gary
I tried {{=form.custom.widget.town_id}} in 1.63.5 and got an error AttributeError: 'NoneType' object has no attribute 'town_id'. Using {{=form.custom.inpval.town_id}} returns a '1', the value of the id in the 'Location' file pointing to the 'Town' file. For clarification, does 'new trunk' mean

[web2py:23748] Re: Custom Display Values

2009-06-09 Thread Fran
On Jun 9, 6:41 pm, Gary gary.k.ma...@gmail.com wrote: For clarification, does 'new trunk' mean something other than the current release? It means the live code downloaded via Bzr: https://code.launchpad.net/~mdipierro/web2py/devel So more current than the latest release. F

  1   2   >