[web2py:23876] Re: Login_next

2009-06-11 Thread annet
Fran, No, the version in trunk that fixed my problem was r1016. > I have pages which have a List at the top of the page (created by > crud.select) & underneath a create form (created by crud.create). > With r896 & earlier, submitting a new record would refresh the List. > r897 & later need a ma

[web2py:23877] Static files

2009-06-11 Thread annet
In web2py I have 5 applications which make use of the same static files, at the moment each application has its own static files folder containing these files. I wonder whether it is possible to remove the static files the applications have in common from all applications but one and reference the

[web2py:23878] Static files

2009-06-11 Thread annet
In web2py I have 5 applications which make use of the same static files, at the moment each application has its own static files folder containing these files. I wonder whether it is possible to remove the static files the applications have in common from all applications but one and reference the

[web2py:23879] MIME type

2009-06-11 Thread annet
Massimo, In Safari, the web inspector displays warning messages like these: Resource interpreted as stylesheet but transferred with MIME type text/ html Resource interpreted as script but transferred with MIME type text/ html Resource interpreted as image but transferred with MIME type text/html

[web2py:23880] Re: global logging to file

2009-06-11 Thread Iceberg
Not at all. The cache.ram in log.py is to make sure the logger is inited only once, otherwise we will see more and more duplicate log appearing in the log file as Hans mentioned in his earlier posts. The only downside is that you need to restart web2py if you change (but usually you don't need to

[web2py:23881] Re: MIME type

2009-06-11 Thread dlypka
I have a similar problem: I cannot get to work on IE 8 or Opera. IT DOES WORK on Chrome 2.0 I spent the last 3 days on this problem. Finally I had to cut and paste all of my .js files to be in place in the .html file which needs them. Now I finally have my web2py app working on 3 browsers. O

[web2py:23882] Re: Controlling lazy T

2009-06-11 Thread Carl
subject=str(T('Lazy subjects')) did it. what's useful is that I can use subject=str(T(subject)) and bury this statement inside my email() wrapper so that different calling code can use (or not use) T appropriately. This was an awkward gotcha for me. Any place that this could be documented? Happy

[web2py:23883] Re: MIME type

2009-06-11 Thread annet
I do not know if it is a copy and paste error, but did not you forget the closing tag. Kind regards, Annet. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group,

[web2py:23884] Status of Appliance patches to work on GAE?

2009-06-11 Thread dlypka
There was thread a few weeks ago where a developer said he was working to update the Appliances to work on GAE. For example, I know that TonyBlog needs a few lines changed to handle the blob on GAE. What is the status of the GAE patches? Are the Appliances here http://mdp.cti.depaul.edu/applian

[web2py:23885] Firefox

2009-06-11 Thread annet
While testing my application in Firefox I encountered the following problem: I have a master-detail view: the master displays a table, when the user clicks the following link: {{=A(club.bedrijf.bedrijfsnaam,_href="javascript:clublocatordetails ('%s')"\%URL(r=request,f='details',args= [club.bed

[web2py:23886] Re: Login_next

2009-06-11 Thread Fran
On Jun 11, 8:00 am, annet wrote: > No, the version in trunk that fixed my problem was r1016. I suspect this is an SVN revno? Bzr is currently on 909 Since Bzr is the master repo, I think it's best to quote those revno's. > I have something similar, just the other way around first the form > th

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

2009-06-11 Thread Fran
On Jun 11, 7:41 am, Joe Barnhart wrote: > I don't think it is something you need to add to web2py.  This is > really a workaround for sqlite because it doesn't respect the normal > keywords of ON DELETE RESTRICT or CASCADE.  It's a simple enough work- > around that is added to the model file for

[web2py:23888] Re: slides again

2009-06-11 Thread LordMax
Hi On 9 Giu, 16:19, mdipierro wrote: > I will post keynote and ppt versions tonight. > Great. Where? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email

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

2009-06-11 Thread mr.freeze
Almost perfect. Line 705 in tools.py should be: if not self in self.settings.login_methods: instead of if not self in login_methods: All of the combinations work as advertised with the change above. Thanks!!! I will have a much easier time pushing web2py at work if we can use our existing AD us

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

2009-06-11 Thread Fran
On Jun 11, 7:49 am, annet wrote: > notnull=True, unique=True I see that these provide DB-level protection of fields so always take effect, but trigger tickets if violated Validators provide nice user-friendly warnings instead of tickets, but are only used if the application calls them (i.e. cust

[web2py:23891] Re: Login_next

2009-06-11 Thread annet
Fran, > I suspect this is an SVN revno? > Bzr is currently on 909 > > Since Bzr is the master repo, I think it's best to quote those > revno's. You are right, but ... At this page: http://bazaar.launchpad.net/%7Emdipierro/web2py/devel/revision/897 How do I download the modified files and updat

[web2py:23893] Re: Custom Display Values

2009-06-11 Thread mdipierro
I am changing "form.begin" ot just "begin" as below: {{=form.custom.begin}} {{=form.custom.widget.field1}} {{=form.custom.widget.field2}} {{=form.custom.widget.field3}} {{=form.custom.submit}} {{=form.custom.end}} On Jun 11, 12:29 am, Hans Donner wrote: > Nice, > > > > > can be done with > {{=

[web2py:23895] Re: Static files

2009-06-11 Thread mdipierro
this is fine On Jun 11, 2:37 am, annet wrote: > In web2py I have 5 applications which make use of the same static > files, at the moment each application has its own static files folder > containing these files. I wonder whether it is possible to remove the > static files the applications have i

[web2py:23894] Re: sqllite web2py gen question

2009-06-11 Thread mdipierro
I strongly suggest postgresql over mysql. They both work file mysql has lots of quirks: max size of text fields, migrations need to be in their own transaction, ... once in a while I find a new one. Postgresql always does what one expect. Massimo On Jun 11, 1:30 am, Fran wrote: > On Jun 11, 6:4

[web2py:23892] Re: Custom Display Values

2009-06-11 Thread Gary
Correction. {{=form.custom.labels[fieldname]}} did work in the trunk, but the proper syntax is "label", not "labels". Sorry for the misinformation. On Jun 10, 9:58 pm, Gary wrote: > Massimo, > > Thank you.  You mentioned before that widget worked in the trunk - you > are, of course correct, but

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

2009-06-11 Thread mdipierro
fixing! On Jun 11, 6:58 am, "mr.freeze" wrote: > Almost perfect.  Line 705 in tools.py should be: > if not self in self.settings.login_methods: > instead of > if not self in login_methods: > > All of the combinations work as advertised with the change above. > Thanks!!!  I will have a much easie

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

2009-06-11 Thread annet
Fran, > > notnull=True, unique=True > > I see that these provide DB-level protection of fields so always take > effect, but trigger tickets if violated That is what I thought, furthermore, I thought that by adding the following validators: db.provincie.provincie.requires=[IS_NOT_EMPTY(),IS_NOT_

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

2009-06-11 Thread mr.freeze
LDAP could be used to verify group membership too. It would be cool if we could do something similar to login_methods: auth.settings.membership_providers = [ldap_membership(...), auth] Not sure how tricky the implementation would be though... On Jun 11, 7:37 am, mdipierro wrote: > fixing! > >

[web2py:23899] YACI, or how to speed up model loading

2009-06-11 Thread AchipA
I was wondering of a possibility of speeding up models (especially if you have several different datasources), while keeping backward compatibility and also a convention over configuration approach. We do everything as before, however, if there IS a model with the same base name as a controller, u

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

2009-06-11 Thread Fran
On Jun 11, 1:47 pm, annet wrote: > I thought that by adding the > following validators: > db.provincie.provincie.requires=[IS_NOT_EMPTY(),IS_NOT_IN_DB > (db,'provincie.provincie',error_message=T('provincie already in > database'))] > ... the notnull=True would be covered at web2py form level by t

[web2py:23901] Re: Firefox

2009-06-11 Thread JohnMc
change clubdetailswindow -> var clubdetailswindow unless you really are looking for a global clubdetailswindow. in order -- try your caller without the _target="_blank". have you tried using _onclick=" " rather than _href to trigger clublocatordetails()? last you might put a alert(url); as th

[web2py:23902] not authorized is 401, not 400

2009-06-11 Thread Alexey Nezhdanov
Hello. It is more proper to use 401 status code than 400 for 'not authorized' case. http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.2 -- Sincerely yours Alexey Nezhdanov --~--~-~--~~~---~--~~ You received this message because you are subscribed to

[web2py:23903] Re: not authorized is 401, not 400

2009-06-11 Thread Alexey Nezhdanov
:( I had to read code closer. There are actually three different keys so three different codes required. Modified patch attached. On Thursday 11 June 2009 17:15:23 Alexey Nezhdanov wrote: > Hello. > > It is more proper to use 401 status code than 400 for 'not authorized' > case. > > http://www.w3

[web2py:23904] Re: slides in keynote and ppt

2009-06-11 Thread A. C. Censi
keynote is available ppt returns 'invalid request' ACC On Wed, Jun 10, 2009 at 5:57 PM, Fran wrote: > > On Jun 10, 8:12 pm, mdipierro wrote: >> I posted the slides in Keynote format >> http://www.web2py.com/examples/static/cookbook2.key.zip > > Works, but I don't have a Mac > >> and PowerPoint

[web2py:23905] Re: slides in keynote and ppt

2009-06-11 Thread mdipierro
please try again On Jun 11, 8:20 am, "A. C. Censi" wrote: > keynote is available > > ppt returns 'invalid request' > > ACC > > > > On Wed, Jun 10, 2009 at 5:57 PM, Fran wrote: > > > On Jun 10, 8:12 pm, mdipierro wrote: > >> I posted the slides in Keynote format > >>http://www.web2py.com/example

[web2py:23906] Re: YACI, or how to speed up model loading

2009-06-11 Thread mdipierro
You can add "if" statememts in models On Jun 11, 8:03 am, AchipA wrote: > I was wondering of a possibility of speeding up models (especially if > you have several different datasources), while keeping backward > compatibility and also a convention over configuration approach. We do > everything

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

2009-06-11 Thread mdipierro
Not sure the web2py groups should be the same as the ldap groups. On Jun 11, 7:50 am, "mr.freeze" wrote: > LDAP could be used to verify group membership too.  It would be cool > if we could do something similar to login_methods: > auth.settings.membership_providers = [ldap_membership(...), auth]

[web2py:23908] Re: Firefox

2009-06-11 Thread annet
Thanks for your reply. I changed the view to read like: {{=A (club.bedrijf.bedrijfsnaam,_href="javascript:clublocatordetails('%s')" %URL(r=request,f='details',args=[club.bedrijf.id]))}} ... so, the caller without _target='blank'. I changed the function in _ajax.html to read like:

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

2009-06-11 Thread annet
Fran, You are right, I had a look at my code, in a custom form I have: form=form_factory(SQLField('plaats',requires=IS_NOT_EMPTY(),\ widget=lambda self, value:INPUT (_type='text',_id='clubbyplace',_class='ac_input',_name='plaats',requires=self.requires))) This prevents the field from bein

[web2py:23910] Re: slides in keynote and ppt

2009-06-11 Thread A. C. Censi
Downloading now! Thanks ACC On Thu, Jun 11, 2009 at 10:25 AM, mdipierro wrote: > > please try again > > On Jun 11, 8:20 am, "A. C. Censi" wrote: >> keynote is available >> >> ppt returns 'invalid request' >> >> ACC >> >> >> >> On Wed, Jun 10, 2009 at 5:57 PM, Fran wrote: >> >> > On Jun 10, 8:1

[web2py:23911] Re: Login_next

2009-06-11 Thread annet
Fran, > I suspect this is an SVN revno? > Bzr is currently on 909 > Since Bzr is the master repo, I think it's best to quote those > revno's. You are right, but ... At this page: http://bazaar.launchpad.net/%7Emdipierro/web2py/devel/revision/897 How do I download the modified files and update

[web2py:23912] Re: Firefox

2009-06-11 Thread JohnMc
Annet, Don't discount the need for the 'return false;' If you ever get a complaint from an IE6 customer, that !...@##$!@ browser does not handle javascript closures as it should. That statement was the work around. question is, does it work now? On Jun 11, 8:29 am, annet wrote: > Thanks for yo

[web2py:23913] Re: slides in keynote and ppt

2009-06-11 Thread LordMax
Hi > >> > On Jun 10, 8:12 pm, mdipierro wrote: > >> >> I posted the slides in Keynote format > >> >>http://www.web2py.com/examples/static/cookbook2.key.zip > Great. Really thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[web2py:23914] Re: Firefox

2009-06-11 Thread annet
John, It does work in Safari 4 and Firefox, I have not yet been able to test it in IE or Opera. > Don't discount the need for the 'return false;' If you ever get a > complaint from an IE6 customer, that !...@##$!@ browser does not handle > javascript closures as it should. That statement was th

[web2py:23915] Re: YACI, or how to speed up model loading

2009-06-11 Thread AchipA
I could say the same for views (why are we bothering to define views by filename/convention then ?). Littering the models with if-s won't make them pretty, newbie friendly nor as quick as they could be. On Jun 11, 3:28 pm, mdipierro wrote: > You can add "if" statememts in models > > On Jun 11, 8

[web2py:23916] Re: sqllite web2py gen question

2009-06-11 Thread JohnMc
Might want to keep our eyes on this DB -- http://askmonty.org/wiki/index.php/MariaDB. They have not provided a stable release yet. But with the merger of Oracle and Sun you never know what might happen to the MySQL DB. On Jun 11, 7:33 am, mdipierro wrote: > I strongly suggest postgresql over my

[web2py:23917] Re: sqllite web2py gen question

2009-06-11 Thread AchipA
It would be surprising if mysql would manage to keep it's position - from what most blogs/news said, it seems most of the core mysql developers have jumped ship. On Jun 11, 4:23 pm, JohnMc wrote: > Might want to keep our eyes on this DB > --http://askmonty.org/wiki/index.php/MariaDB. > They hav

[web2py:23918] editing static files from user pages?

2009-06-11 Thread Tim Michelsen
Hello, is there any app or controller out there that lets me edit text files saved in the static direcory? I am looking for a functionality just like we have in admin. I want to achieve: 1) user logs in 2) sees a list of files in a pre-defined directory from static 3) user selects the file and

[web2py:23919] Global persisten service in web2py core

2009-06-11 Thread YangHong
Hi, Mdipierro and all I have a application run as a daemon, which provides remote controll function via socket, I use web2py as web app frame work, and I want to define a Session/Request/Respose like global object in web2py, call it MyManager, then I can access it's method to controll my real app

[web2py:23920] Re: not authorized is 401, not 400

2009-06-11 Thread mdipierro
Thanks Alexey, in trunk! On Jun 11, 8:18 am, Alexey Nezhdanov wrote: > :( I had to read code closer. There are actually three different keys so three > different codes required. Modified patch attached. > > On Thursday 11 June 2009 17:15:23 Alexey Nezhdanov wrote: > > > Hello. > > > It is more p

[web2py:23921] Re: Global persisten service in web2py core

2009-06-11 Thread YangHong
On 6月11日, 下午10时58分, YangHong wrote: > Hi, Mdipierro and all > > I have a application run as a daemon, which provides remote controll > function via socket, I use web2py as web app frame work, and I want to > define a Session/Request/Respose like global object in web2py, call it > MyManager, the

[web2py:23922] Re: YACI, or how to speed up model loading

2009-06-11 Thread mdipierro
If you need code that is only executed for a specific controller, why not put it directly in the controller? Massimo On Jun 11, 9:19 am, AchipA wrote: > I could say the same for views (why are we bothering to define views > by filename/convention then ?). Littering the models with if-s won't >

[web2py:23923] Re: editing static files from user pages?

2009-06-11 Thread mdipierro
You can copy the controller from admin/controllers/edit On Jun 11, 9:44 am, Tim Michelsen wrote: > Hello, > is there any app or controller out there that lets me edit text files > saved in the static direcory? > > I am looking for a functionality just like we have in admin. > > I want to achieve

[web2py:23924] Re: Global persisten service in web2py core

2009-06-11 Thread mdipierro
Yes but how very much depends on what you want to do. You deamon can have an xmlrpc server (general way) or you can implement a database based queue of tasks. You should also look into cron. Massimo On Jun 11, 10:06 am, YangHong wrote: > On 6月11日, 下午10时58分, YangHong wrote: > > > Hi, Mdipierro

[web2py:23925] web2py 1.64.0 posted

2009-06-11 Thread mdipierro
Please check it out! - Models are much faster ~ 2.5x times (thanks Alexey) - fully works on Jython without tweaks (sqlite and postgresql with zxjdbc) - custom forms and better error codes (thanks Hans) - better LDAP support (thanks Fran and Mr. Freeze) Massimo --~--~-~--~~---

[web2py:23926] Re: web2py 1.64.0 posted

2009-06-11 Thread Jason Brower
+1 on the Jython support! That will open a lot of doors at my work. Thanks! Regards, Jason Brower On Thu, 2009-06-11 at 08:27 -0700, mdipierro wrote: > Please check it out! > > - Models are much faster ~ 2.5x times (thanks Alexey) > - fully works on Jython without tweaks (sqlite and postgresql

[web2py:23927] Re: web2py 1.64.0 posted

2009-06-11 Thread mdipierro
jason, I made a war file. Can you run some tests? Massimo On Jun 11, 10:32 am, Jason Brower wrote: > +1 on the Jython support! That will open a lot of doors at my work. > Thanks! > Regards, > Jason Brower > > On Thu, 2009-06-11 at 08:27 -0700, mdipierro wrote: > > Please check it out! > > > -

[web2py:23928] Re: web2py 1.64.0 posted

2009-06-11 Thread Hans Donner
Error codes are from our performance man! On Thu, Jun 11, 2009 at 5:27 PM, mdipierro wrote: > > Please check it out! > > - Models are much faster ~ 2.5x times (thanks Alexey) > - fully works on Jython without tweaks (sqlite and postgresql with > zxjdbc) > - custom forms and better error codes (th

[web2py:23929] auth email verification in trunk

2009-06-11 Thread mr.freeze
Even after a user's email is verified and they get the 'Email Verified' in response.flash, I get 'Registration needs verification' when trying to log in as that user. What am I doing wrong? Here's my auth settings in db.py: from gluon.tools import * auth=Auth(globals(),db)# authenti

[web2py:23930] error on GAE deployment

2009-06-11 Thread Tim Michelsen
Hello, wanted to try GAE deployment as shown in http://www.screencast.com/users/mdipierro/folders/Jing/media/b3de44de-814b-48fa-ba91-edd283597d8b I found a number of glitches: 1) not really documented how to do this quickly! 2) I found out that I need to have appcfg.py. Unfortunately, it's absol

[web2py:23931] Re: web2py 1.64.0 posted

2009-06-11 Thread mdipierro
Ouch! I apologize to Alexey. On Jun 11, 10:48 am, Hans Donner wrote: > Error codes are from our performance man! > > On Thu, Jun 11, 2009 at 5:27 PM, mdipierro wrote: > > > Please check it out! > > > - Models are much faster ~ 2.5x times (thanks Alexey) > > - fully works on Jython without tweaks

[web2py:23932] Re: auth email verification in trunk

2009-06-11 Thread mdipierro
Could you try uncommenting. auth.settings.registration_requires_approval = False On Jun 11, 11:07 am, "mr.freeze" wrote: > Even after a user's email is verified and they get the 'Email > Verified' in response.flash, I get 'Registration needs verification' > when trying to log in as that user.

[web2py:23933] Re: error on GAE deployment

2009-06-11 Thread mdipierro
admin is an app. apps can have configuration. It is possible there is a bug, that is an experimentail feature. I will check it. On Jun 11, 11:10 am, Tim Michelsen wrote: > Hello, > wanted to try GAE deployment as shown > inhttp://www.screencast.com/users/mdipierro/folders/Jing/media/b3de44de...

[web2py:23934] Re: error on GAE deployment

2009-06-11 Thread Tim Michelsen
> admin is an app. apps can have configuration. OK. > It is possible there is > a bug, that is an experimentail feature. I will check it. Thanks for the fast response. Please drop a mail when finished I am thinking of creating a online editor for the docstrings... --~--~-~--~~-

[web2py:23935] Re: auth email verification in trunk

2009-06-11 Thread mr.freeze
Same result. What is supposed to happen in the auth_user table when email is verified? On Jun 11, 11:18 am, mdipierro wrote: > Could you try uncommenting. > > auth.settings.registration_requires_approval = False > > On Jun 11, 11:07 am, "mr.freeze" wrote: > > > Even after a user's email is ver

[web2py:23936] DB cursor mgt?

2009-06-11 Thread JohnMc
I have been approached to develop a program to manage .BIN files for network routers. The table would be simple. But the one requirement they want is the data set has to be portable. I am considering using SQLite for the storage. From a high level a master DB/table would be used for the system an

[web2py:23937] Re: web2py 1.64.0 posted

2009-06-11 Thread Alexey Nezhdanov
On Thursday 11 June 2009 20:16:54 mdipierro wrote: > Ouch! I apologize to Alexey. NP. I saw that mistake but decided to be modest :) > On Jun 11, 10:48 am, Hans Donner wrote: > > Error codes are from our performance man! > > > > On Thu, Jun 11, 2009 at 5:27 PM, mdipierro wrote: > > > Please chec

[web2py:23938] Re: Using count in a where clause

2009-06-11 Thread Marcos (Ottawa)
Finally I solved it with HAVING which I didn't know was supported Thank you all anyways Marcos On Jun 10, 6:05 pm, mdipierro wrote: > I do not think that is possible but I may be wrong. If you teach how > to do it in SQL I will tell you how to translate in web2pyese. > > Massimo > > On Jun 10,

[web2py:23939] Re: auth email verification in trunk

2009-06-11 Thread mdipierro
It is supposed to delete everything in registration_key On Jun 11, 11:38 am, "mr.freeze" wrote: > Same result. What is supposed to happen in the auth_user table when > email is verified? > > On Jun 11, 11:18 am, mdipierro wrote: > > > Could you try uncommenting. > > > auth.settings.registratio

[web2py:23940] Re: DB cursor mgt?

2009-06-11 Thread mdipierro
If I understand you want something like this import os files=os.listdir(os.path.join(request.folder,'databases')) # choose a file, for example file=files[1] db=SQLDB('sqlite://%s'+file) db.define_table() It should go in the model, but nothing prevents you from putting this code somewhere els

[web2py:23941] Re: web2py 1.64.0 posted

2009-06-11 Thread mdipierro
There does not seem a way to edit the commit string. I will be more careful next time. Anyway, the who.html page is what counts. Massimo On Jun 11, 1:03 pm, Alexey Nezhdanov wrote: > On Thursday 11 June 2009 20:16:54 mdipierro wrote:> Ouch! I apologize to > Alexey. > > NP. I saw that mistake b

[web2py:23942] Web2Py Informix Support

2009-06-11 Thread cesmiga
Massimo, Did the information I sent via email about "More Web2Py InformixDb testing" help with the code corrections needed to better support Informix with Web2Py? Please let me know how I can help in this area to make Informix a success with Web2Py. Thank you, Christopher --~--~-~--~---

[web2py:23943] Re: auth email verification in trunk

2009-06-11 Thread mr.freeze
Then I think it is a bug in tools.py/verify_email line 864. The registration_key is not updated when registration_requires_approval is false: def verify_email( self, next=DEFAULT, onaccept=DEFAULT, log=DEFAULT, ): """ action user to verify t

[web2py:23944] Re: YACI, or how to speed up model loading

2009-06-11 Thread DenesL
Using the common code in the controller as a model substitute? There goes the MVC separation. And the other models still get executed. I think AchipA means execute one model only. The problem is that models are executed before controllers (aren't they?), but then this points back to using ifs in

[web2py:23945] Re: Web2Py Informix Support

2009-06-11 Thread mdipierro
Thanks for the info. I still cannot figure out what the problem is. there seem to be a problem with starting a transaction. Working on it. Massimo On Jun 11, 2:44 pm, cesmiga wrote: > Massimo, > > Did the information I sent via email about "More Web2Py InformixDb > testing" help with the code c

[web2py:23946] Re: auth email verification in trunk

2009-06-11 Thread mdipierro
oops. You are right. Somehow I deleted that line. Massimo On Jun 11, 2:59 pm, "mr.freeze" wrote: > Then I think it is a bug in tools.py/verify_email line 864. The > registration_key is not updated when registration_requires_approval is > false: > > def verify_email( > self, > ne

[web2py:23947] Re: auth email verification in trunk

2009-06-11 Thread mdipierro
Uploading fix to trunk 1031. please let me know if this works for you. On Jun 11, 3:22 pm, mdipierro wrote: > oops. You are right. Somehow I deleted that line. > > Massimo > > On Jun 11, 2:59 pm, "mr.freeze" wrote: > > > Then I think it is a bug in tools.py/verify_email line 864. The > > regist

[web2py:23948] Re: sqllite web2py gen question

2009-06-11 Thread DenesL
Looks like MySQL users need not to worry: "The MariaDB project is the brainchild of Michael "Monty" Widenius, the founder of MySQL..." "MariaDB 5.1 is based on MySQL 5.1." "MariaDB will be kept up to date with the latest MySQL release from the same branch." And if: "In most respects MariaDB wil

[web2py:23949] Re: YACI, or how to speed up model loading

2009-06-11 Thread mdipierro
there is one convention in web2py that I am not happy with. The fact that models are executed alphabetically. Originally I thought each model would correspond to one database connection and so they would independent and thus the order of execution would not matter. I was wrong, most people write d

[web2py:23950] Re: DB cursor mgt?

2009-06-11 Thread JohnMc
Massimo, Very good. Concise too. But it is what I am looking for. I would keep the code in models and develop some error checking for file existence, etc. Thanks this saved me a great deal of time. I'll post it back once I have added error checking. On Jun 11, 2:34 pm, mdipierro wrote: > If

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

2009-06-11 Thread DenesL
Annet, that does not prove Frank's statement. IS_NOT_EMPTY does not prevent duplicates. Frank, what do you mean by: > However they won't work for some custom forms/functions. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[web2py:23952] Re: YACI, or how to speed up model loading

2009-06-11 Thread JorgeR
On Jun 11, 3:42 pm, mdipierro wrote: > conditional execution fits in this discussion. Perhaps model files > could have names like if_controller_db.py so that it would be executed > only if the it_[controller] matches the current controller. > > ideas? comments? > I like this idea.. and it wou

[web2py:23953] Re: YACI, or how to speed up model loading

2009-06-11 Thread mdipierro
I do not understand. The order cannot change if there are dependencies and the it would not affect performance. On http://www.web2py.com/appliances there is a log analyser applicance that checks how other actions are executed. On Jun 11, 3:54 pm, JorgeR wrote: > On Jun 11, 3:42 pm, mdipierro wr

[web2py:23954] Re: YACI, or how to speed up model loading

2009-06-11 Thread JorgeR
hmm.. ok.. forget it. On Jun 11, 3:58 pm, mdipierro wrote: > I do not understand. The order cannot change if there are dependencies > and the it would not affect performance. > Onhttp://www.web2py.com/appliancesthere is a log analyser applicance > that checks how other actions are executed. > >

[web2py:23955] Re: YACI, or how to speed up model loading

2009-06-11 Thread DenesL
On Jun 11, 4:42 pm, mdipierro wrote: > there is one convention in web2py that I am not happy with. The fact > that models are executed alphabetically. Originally I thought each > model would correspond to one database connection and so they would > independent and thus the order of execution woul

[web2py:23956] Re: YACI, or how to speed up model loading

2009-06-11 Thread AchipA
On Jun 11, 10:08 pm, DenesL wrote: > Using the common code in the controller as a model substitute? > There goes the MVC separation. > And the other models still get executed. > > I think AchipA means execute one model only. > The problem is that models are executed before controllers (aren't > t

[web2py:23957] Re: error on GAE deployment

2009-06-11 Thread mdipierro
fixed in trunk. please give it a try. On Jun 11, 11:10 am, Tim Michelsen wrote: > Hello, > wanted to try GAE deployment as shown > inhttp://www.screencast.com/users/mdipierro/folders/Jing/media/b3de44de... > > I found a number of glitches: > 1) not really documented how to do this quickly! > 2)

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

2009-06-11 Thread Fran
On Jun 11, 9:50 pm, DenesL wrote: > Fran, what do you mean by: > > However they won't work for some custom forms/functions. If I define in my model: db.define_table('test', db.Field('test', requires=IS_NOT_EMPTY())) Then do: db.test.insert(test='') It works fine - record is ins

[web2py:23959] Re: auth email verification in trunk

2009-06-11 Thread mr.freeze
Works for me. Thanks! On Jun 11, 3:25 pm, mdipierro wrote: > Uploading fix to trunk 1031. please let me know if this works for you. > > On Jun 11, 3:22 pm, mdipierro wrote: > > > oops. You are right. Somehow I deleted that line. > > > Massimo > > > On Jun 11, 2:59 pm, "mr.freeze" wrote: > > >

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

2009-06-11 Thread Fran
On Jun 11, 9:50 pm, DenesL wrote: > Annet, that does not prove Frank's statement. > IS_NOT_EMPTY does not prevent duplicates. > Frank, what do you mean by: > > However they won't work for some custom forms/functions. NB This is discussed in the manual - pg 139. F --~--~-~--~~---

[web2py:23961] Re: YACI, or how to speed up model loading

2009-06-11 Thread mdipierro
What is we have folders like models/__init__.py models/default/__init__.py models/default/index.py and __init__ is executed for every action and controller and default/__init__ is executed for every action in controller default.py and default/index only for the index action, etc etc. if there i

[web2py:23962] Re: Form validation causes checkbox to get selected

2009-06-11 Thread DJ
Thanks Massimo. Quick question, how do I get this patch? (url address) Also, can I update this patch into my current version of web2py (1.56.4) or do I need to do a full upgrade? -Sebastian On Jun 10, 10:31 pm, mdipierro wrote: > You are correct. I fixed it and I am uploading to trunk now (lau

[web2py:23964] Re: YACI, or how to speed up model loading

2009-06-11 Thread Fran
On Jun 11, 10:39 pm, AchipA wrote: > Now, for the kicker - in the model we could do an equivalent of > {{extend 'layout.html'}} (=sort of import ?) to include any > dependencies. This would also pull in any 'common' models (just like > we do with layout.html).  Note the subtle difference - I don'

[web2py:23963] Re: Form validation causes checkbox to get selected

2009-06-11 Thread Fran
On Jun 11, 11:33 pm, DJ wrote: > Thanks Massimo. Quick question, how do I get this patch? (url address) http://bazaar.launchpad.net/~mdipierro/web2py/devel/revision/904 But also see: http://bazaar.launchpad.net/~mdipierro/web2py/devel/revision/905 http://bazaar.launchpad.net/~mdipierro/web2py/d

[web2py:23966] IS_PASSWORD validator?

2009-06-11 Thread mr.freeze
Does anyone already have a validator built that has options for enforcing various password complexity requirements? Just wondering before I make one. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framew

[web2py:23965] Re: error on GAE deployment

2009-06-11 Thread Tim Michelsen
> fixed in trunk. please give it a try. Massimo, I am very sad to say, but I will never ever fix a coding bug in web2py core by myself. The same applies as your refusal to use bugtrackers: By the time I have figured who the thing works you have already fixed the issue... ;-) Well, couldn't test

[web2py:23967] Re: Form validation causes checkbox to get selected

2009-06-11 Thread DJ
Thanks Francis. On Jun 11, 6:58 pm, Fran wrote: > On Jun 11, 11:33 pm, DJ wrote: > > > Thanks Massimo. Quick question, how do I get this patch? (url address) > > http://bazaar.launchpad.net/~mdipierro/web2py/devel/revision/904 > > But also > see:http://bazaar.launchpad.net/~mdipierro/web2py/de

[web2py:23968] Re: IS_PASSWORD validator?

2009-06-11 Thread mdipierro
do not make one. add the feature to crypt. client side there are jquery libraries that do what you need. On Jun 11, 6:29 pm, "mr.freeze" wrote: > Does anyone already have a validator built that has options for > enforcing various password complexity requirements? Just wondering > before I make

[web2py:23969] Re: error on GAE deployment

2009-06-11 Thread mdipierro
You still have the option of sending me the patch "before" reporting the bug. ;-) On Jun 11, 6:12 pm, Tim Michelsen wrote: > > fixed in trunk. please give it a try. > > Massimo, > I am very sad to say, but I will never ever fix a coding bug in web2py > core by myself. > The same applies as your

[web2py:23970] Re: web2py 1.62.1 is OUT (New Features List)

2009-06-11 Thread Ted G
Massimo, With respect to the new file upload remembering the file name. Are there accompanying methods to get and set the filename after upload of the file? In my example, my app is running on GAE, therefore uploaded files are being stored in the DB. I require the ability for the user to see a l

[web2py:23971] Re: YACI, or how to speed up model loading

2009-06-11 Thread DenesL
On Jun 11, 4:52 pm, mdipierro wrote: > What if we have folders like > > models/__init__.py > models/default/__init__.py > models/default/index.py > > and __init__ is executed for every action and controller > and default/__init__ is executed for every action in controller > default.py > and defau

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

2009-06-11 Thread DenesL
On Jun 11, 4:42 pm, Fran wrote: > On Jun 11, 9:50 pm, DenesL wrote: > > > Fran, what do you mean by: > > > However they won't work for some custom forms/functions. > > If I define in my model: > db.define_table('test', >                 db.Field('test', requires=IS_NOT_EMPTY())) > > Then do: > d

[web2py:23973] Re: YACI, or how to speed up model loading

2009-06-11 Thread Alexey Nezhdanov
Let me first comment on initial AchipA's proposal. Splitting models into different files targets same goals as my lazy_tables approach: it tries to speed up model load time by excluding the things that are _probably_ not needed in this browser request (read controller/function). The difference

[web2py:23974] Re: YACI, or how to speed up model loading

2009-06-11 Thread mdipierro
The more I think about this the more I agree with you and the lazy table approach seems better. Imagine a situation with three tables A,B,C and two controllers X, Y where X needs A,B and Y needs Y,Z. Where should Y be defined? Should it be imported? modules cannot be imported only executed. what

[web2py:23975] Re: web2py 1.62.1 is OUT (New Features List)

2009-06-11 Thread mdipierro
Currently when you upload a file, the actual file goes in the filesystem of "uploadfield" in the database. The filename is b16encoded and stored inside the new "internal" filename. It is extracted and used by the "download" action to set content disposition. There is no easy way to change this me

  1   2   >