[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 128

[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 wrote: > > new testing: > > SERVER KERNEL > --prints > r8750.04898

[web2py:23657] Re: jython again

2009-06-09 Thread Fran
On Jun 9, 7:42 am, mdipierro 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 wrote: > I am not convinc

[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 1.

[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 for

[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 t

[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 Tymciurak wrote: > it might help to have tests

[web2py:23663] Re: slides again

2009-06-09 Thread LordMax
Hi On 7 Giu, 23:13, mdipierro 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 F

[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 r

[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, readab

[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 wrote: > > What Han

[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, mdipierro 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 tried to ver

[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, '%s.e

[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 (16:1

[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 wrote: > Results of second set of test runs: > > r87545.523ms > r88220.614ms > init

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

2009-06-09 Thread Fran
On Jun 9, 10:30 am, pk 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: http://trac.sahanapy.org/browser/views/sahana_scripts_min.html URL2() is defined here:

[web2py:23674] Re: Reference in another table

2009-06-09 Thread Fran
On Jun 9, 10:56 am, pk 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', default=project.id, > writable=False, rea

[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 wrote: > On Jun 9, 10:56 am, pk 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', >

[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 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 to day is the: > t

[web2py:23678] Show only users Project

2009-06-09 Thread pk
Hi, I've another question: Every user should upload files and i create a table called projectfile. db.define_table('projectfile', SQLField('userid', default=auth.user.id if auth.user else 0, writable=False, readable=False), SQLField('procreator', default=auth.user

[web2py:23679] Re: web2py perfomance

2009-06-09 Thread Alexey Nezhdanov
Finally, I started migration (before I was just slapping sql.py, checked out of the trunk over my ancient 1.61.4 install). Migration is not easy, I've been bending source for my needs so now I have to port all this to 1.63.5. Massimo, do you have any objections to this patch? I proposed it some tim

[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 wrote: > Finally, I started migration (before I was just slapping sql.py, checked > out of the trunk over my ancient

[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 the

[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 signal-to

[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 wrote: > only mode='uid' is implemented. I could use help debugging/ > implementing the other modes > > Massimo > > On Jun 8, 10:38 pm, "mr.freeze" wrote: > > > > > Sorry, I saw 'raise SyntaxError, "No

[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' - li

[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 wrote: > Marco, > > Did you test this in Sqlite: > > db.define_table('table', >     db.Field('field',...,ondel

[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 wrote: > prints: > SELECT dog.name, dog.name, d

[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 wrote: > On Jun 9, 1:53 am, mdipierro 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

[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 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 > service... I think if

[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 On

[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 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' > > ## specify your email

[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 wrote: > > Just another note on this issue.  While running... > > > > #> ./web2py.py -S testapp > > > > after the

[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 wrote: > Hi > > On 7 Giu, 23:13, mdipierro 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?

[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" wrote: > ok... from the Makefile I could use: > > python -c 'import compileall; > compileall.compile_dir("applications/myapplication")' > > to build it. > > will it run the un

[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 J

[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" wrote: > Ooooh...That's nice too.  Massimo, should one of these (probably a

[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 wrote: > Results of second set of test runs: > > r875            45.523ms > r882            20.614ms > inits v.1      

[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: http://jqueryui.com/demo

[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 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 "D:\w

[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 OS

[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 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 > calender we use i

[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 wrote: > thanks but i get a now an error: > Traceback (most recent ca

[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 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'), >     SQLField('fa

[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 AttributeError: 'Auth' object has no attribute 'is_logged_id' i will

[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 t

[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.

[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 wrote: > now i get the next error :( > Traceback (most recent call last): >   File "gluon/restr

[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@googl

[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 "w

[web2py:23717] Re: Auth

2009-06-09 Thread Trollkarlen
Fran wrote: > On Jun 9, 11:42 am, Robert Marklund 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')) > > Th

[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 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 problem. > > Here my code: > @auth.

[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 wrote: > Fran wrote: > > On

[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 you,

[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: http://localhost:8000/2bu

[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 arr

[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 di

[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 wrote: > 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 t

[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" grou

[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 wrote: > Peter, > > Aren't you facing the same problem as I am: > > http://groups.google.com/group/web2py/browse_thread/thread/d5083ed08c... > > Annet. --~--~-~--~~~---~--~~ You received th

[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 gro

[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 wrote: > On Jun7, 6:35pm, Alexey Nezhdanov wrote: > > > > > > 2) is_integer is a fast call, but with 1.1k (!) calls ... > > > Replaced it

[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 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, select boxes and > che

[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 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 page without r

[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 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 wrote: > > 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,

[web2py:23736] Re: Texteditor

2009-06-09 Thread pk
oh thanks, it`s a cool tool. peter On 9 Jun., 18:16, annet wrote: > 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 th

[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 a

[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 wrote: > Any particular reason not doing is_integer via a 'try: int(i) except: > return False' s

[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 db.incident.student.requir

[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 wrote: > Just been through some TABLE() and SQLTABLE() work and could not find > a way (I was satisfied

[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: response.headers['Content-Type']=

[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) logger.setLevel(logging

[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 acces

[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 wrote: > I promise Matt is surely right about the font issue. :-) > > And one more defect, trying to not compl

[web2py:23746] Re: rev 877 breaks app

2009-06-09 Thread Fran
On Jun 9, 3:13 pm, mdipierro 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 Web Framework" group.

[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 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 --~--~-~--~~~--

[web2py:23749] Re: rev 877 breaks app

2009-06-09 Thread Fran
On Jun 9, 6:27 pm, Fran wrote: > On Jun 9, 3:13 pm, mdipierro wrote: > > Uploading another version to trunk. Please give it another try > r896 works fine - many thanks :) Solves that issue but seems to break updates: This is a ticket from Tools' register() (but it also happens on other DB upda

[web2py:23750] Re: web2py perfomance

2009-06-09 Thread Iceberg
I don't know but you'd better do some profiling if you really want to find out. IMHO, try...except might be fast, but wrapping it inside a user-defined function could be another story, because defining a function is expensive in python, so we shall call native function (implemented by C) whenever

[web2py:23751] Re: redirect

2009-06-09 Thread mdipierro
I am not familiar with the function reportes.impresion_tramite(...) what does it return? If your intention is to return the PDF to the user (http 200 ok) you cannot redirect (http 303 redirect). The two statements are not compatible. Massimo On Jun 9, 12:11 pm, Jose wrote: > Hello > > At th

[web2py:23752] Re: global logging to file

2009-06-09 Thread mdipierro
I think you nailed it! I would change the file name so that it resides inside the applicaitons folder: handler=logging.FileHandler(os.path.join(request.folder,"system.log")) we could also add a line in the admin to peek the log (like with sql.log). On Jun 9, 12:18 pm, Iceberg wrote: > request.

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

2009-06-09 Thread mdipierro
No problem at all. this is an important issue and if we are not doing it right, I want to know. On Jun 9, 12:19 pm, cesmiga wrote: > Massimo, > > Thank you for the update. My apologies since this was discussed > earlier. > > Christopher > > mdipierro wrote: > > Yes and no. > > > We are moving t

[web2py:23754] html.py failed doctest

2009-06-09 Thread Hans Donner
Got: ** File "html.py", line 841, in __main__.FORM Failed example: form.xml() Expected: '' Got: '' ** 1 items had failures: 1 of 2 in __main__.F

  1   2   >