[web2py:22649] Re: flatpage application

2009-05-25 Thread mdipierro
There may be an easier to implement Django flatpages in web2py but if you need to trap error codes, look into web2py/routes.examples.py Massimo On May 26, 12:51 am, desfrenes wrote: > Hello, > > I'm trying to build something similar to the flatpage application in > django, that is an app that

[web2py:22648] Re: DECIMAL or NUMERIC type for database fields

2009-05-25 Thread Francois (Jersey)
Agree with Joe, on the need to store decimal in the database. I may be biaised because I have used Sqlalchemy before. I suppose we should be able to find inspiration from Sqlalchemy code for decimal... Please let me know how I can help. --~--~-~--~~~---~--~~ You r

[web2py:22647] flatpage application

2009-05-25 Thread desfrenes
Hello, I'm trying to build something similar to the flatpage application in django, that is an app that maps a simple content to an arbitrary url. To do so I have to trap 400 and 404 errors and then see if a content is attached to this url. If so, display it, if not, raise the error again. How c

[web2py:22646] Re: shouldn't tickets return HTTP(500)?

2009-05-25 Thread Alexey Nezhdanov
No, merely that IE doesn't display them unless they are longer than some number of bytes. On Tuesday 26 May 2009 07:52:21 mdipierro wrote: > When you say bug. Do you mean that the ticket with erro 500 still does > not display, even if longer than 512 bytes? > > Massimo > > On May 25, 10:08 pm, A

[web2py:22645] Re: shouldn't tickets return HTTP(500)?

2009-05-25 Thread mdipierro
When you say bug. Do you mean that the ticket with erro 500 still does not display, even if longer than 512 bytes? Massimo On May 25, 10:08 pm, Alexey Nezhdanov wrote: > IE6 is irrelevant. IE7 have this bug too and IE8 probably. > So this link is of no help. > > On Monday 25 May 2009 20:26:54 B

[web2py:22644] Re: Multiple Form Best Practise

2009-05-25 Thread mdipierro
please email me your code although I cannot promise I will have time within the next 2 days. Massimo On May 25, 9:10 pm, Yannick wrote: > Hello Massimo, > Thanks for your note but unfortunately I still have the same error > message even after making the change you proposed > Here is the cha

[web2py:22643] Re: shouldn't tickets return HTTP(500)?

2009-05-25 Thread Alexey Nezhdanov
IE6 is irrelevant. IE7 have this bug too and IE8 probably. So this link is of no help. On Monday 25 May 2009 20:26:54 Boris Manojlovic wrote: > people let IE6 die! > > http://ie6update.com/ > > it is its time RIP... > > On Mon, May 25, 2009 at 4:49 PM, mdipierro wrote: > > I found the reference

[web2py:22642] Re: Multiple Form Best Practise

2009-05-25 Thread Yannick
Hello Massimo, Thanks for your note but unfortunately I still have the same error message even after making the change you proposed Here is the change i made: settingform = form_factory(SQLField('firstname',label='First Name', requires=IS_NOT_EMPTY(),default=default_firstname),

[web2py:22641] Re: How to customize authorisation

2009-05-25 Thread mdipierro
I think you need to tell us more about the current process and whether you want to keep the process, the data, and/or the current implementation of the process. Massimo On May 25, 6:20 pm, captainy wrote: > After "playing" a while with web2py, i think i've found a very > interesting platform fo

[web2py:22640] Re: auth example

2009-05-25 Thread mdipierro
auth.settings.actions_disabled.append('register') On May 25, 6:29 pm, virhilo wrote: > Hello > Can anyone show me a custom auth example with users registration > turned off or only for admin user? Thanks a lot:) --~--~-~--~~~---~--~~ You received this message beca

[web2py:22639] Re: experimental: decimal and pickable and custom columns

2009-05-25 Thread Iceberg
This is not identical to your request, but if you can accept "app developer (you) create your own function, user submit data", you can try the accepts(...,onvalidation=callback) By the way, what is your circumstance which need user to create a function to manipulate data in db? Sounds vulnerable.

[web2py:22638] Re: How to customize authorisation

2009-05-25 Thread Yannick
Hello Captainy, I believe you don't have to rewrite the gluon.tools module, it depends also of your design, you can re-use the Auth class inside the tools module, import it and call the Login() method if you are only interested to the login process... Does it help ? If not please provide more in

[web2py:22637] How to customize authorisation

2009-05-25 Thread captainy
After "playing" a while with web2py, i think i've found a very interesting platform for solid and rapid web applications. But i have to port existing applications to web2py. I want to keep the authorisation process for the users of these applications, wich is done by: Login: XX Password: Y

[web2py:22636] Re: experimental: decimal and pickable and custom columns

2009-05-25 Thread BearXu
can we design a custom column that can save a function in it? Thus the customer can create or modify their own function to manipulate other data in the database. So such kind of field saves the code instead of the value. 2009/5/25 mdipierro > > formula? > > On May 25, 1:16 pm, BearXu wrote: >

[web2py:22635] auth example

2009-05-25 Thread virhilo
Hello Can anyone show me a custom auth example with users registration turned off or only for admin user? Thanks a lot:) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this gr

[web2py:22634] Re: migrate suggestion for tools.py

2009-05-25 Thread mdipierro
instead of migrate=True, use migrate="myjunktablefile.table" and rename the [UUID].table as "myjunktablefile.table". This way you will not have migration issues. Massimo On May 25, 11:05 am, Hans wrote: > I'm facing issues when a 'next version' of an application is moved > from one system (like

[web2py:22633] Re: experimental: decimal and pickable and custom columns

2009-05-25 Thread mdipierro
formula? On May 25, 1:16 pm, BearXu wrote: > Can I save a formula in it? > > 2009/5/25 mdipierro > > > > > you are right. it was just an example > > > On May 25, 12:45 am, Alexey Nezhdanov wrote: > > > I think that's handy. Dropping cross-db compartibility is bad indeed, > > > but you just nee

[web2py:22632] Re: shouldn't tickets return HTTP(500)?

2009-05-25 Thread mdipierro
The ID6 docs say the error is not shown only if the size if less than 512 bytes. I think the latest trunk is fine. we just need to test it. On May 25, 12:08 pm, Francisco Gama wrote: > I believe this is where configuration could help us. The user knows > what browser uses, and it's very likely n

[web2py:22631] Re: pre-populated forms

2009-05-25 Thread mdipierro
It is not in the manual. give this: db.mytest.person.requires=[IS_ALPHANUMERIC(),IS_NULL_OR(IS_IN_DB (db,'dogs.dog_name', (dog_name)s'))] you can do class OptionsWidget: @staticmethod def has_options(field): return hasattr(field.requires, 'options')\ or isinstance

[web2py:22629] Re: proxy issues

2009-05-25 Thread Yarko Tymciurak
On Mon, May 25, 2009 at 4:04 PM, Tim Michelsen wrote: > > > I know I don't want web2py going outside my intranet unless I > > intentionally enable it. > See your point. > But how do you enable it? It will get overwritten each time an upgrade > is performed. > > There is no security issue with retr

[web2py:22628] Re: proxy issues

2009-05-25 Thread Tim Michelsen
> I know I don't want web2py going outside my intranet unless I > intentionally enable it. See your point. But how do you enable it? It will get overwritten each time an upgrade is performed. There is no security issue with retrieving a RSS feed... --~--~-~--~~~---

[web2py:22627] Re: Non-relational databases

2009-05-25 Thread Cory Preus
Great, thanks for this. I'm interested in seeing how you mimic ListProperty in a relational database, Massimo. My gut says it doesn't belong, because it breaks down normalization and/or it just seems like a proxied data type in a relational database. Not sure how I feel about it since it seems li

[web2py:22626] Re: proxy issues

2009-05-25 Thread Yarko Tymciurak
yes... that's a "security feature" ;-) I know I don't want web2py going outside my intranet unless I intentionally enable it. For example, I might enable tweets to use a proxy, but not updates... if it were available... On Mon, May 25, 2009 at 11:28 AM, Timmie wrote: > > The following admin fu

[web2py:22625] Re: migrate suggestion for tools.py

2009-05-25 Thread Yarko Tymciurak
FYI - you can attach small files and images if you _mail_ to web2py@googlegroups.com with the subject being the thread topic... or reply to a mailed thread. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web

[web2py:22624] Re: experimental: decimal and pickable and custom columns

2009-05-25 Thread BearXu
Can I save a formula in it? 2009/5/25 mdipierro > > you are right. it was just an example > > On May 25, 12:45 am, Alexey Nezhdanov wrote: > > I think that's handy. Dropping cross-db compartibility is bad indeed, > > but you just need to have a big warning in the place where user have > > to ma

[web2py:22623] 411 Error from Google App Engine resulting from jDivLoad on Firefox

2009-05-25 Thread Ted G
An FYI for anyone experimenting with jDivLoad ... If you deploy a web2py app using jDivLoad to Google App Engine (this does not happen in the SDK), you may receive 411 errors when those jDiv's attempt to load while using Firefox (this issue is not necessarily isolated to just GAE). The jDivLoad

[web2py:22622] Re: shouldn't tickets return HTTP(500)?

2009-05-25 Thread Francisco Gama
I believe this is where configuration could help us. The user knows what browser uses, and it's very likely not to be IE6, specially if he is on Linux or Mac OS. Set the less intrusive convention but give option to the user to decide how it should behave. On May 25, 5:26 pm, Boris Manojlovic wro

[web2py:22621] proxy issues

2009-05-25 Thread Timmie
The following admin functions do not work behind a proxy working on a local machine: * read tweets * check updates --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this grou

[web2py:22620] Re: shouldn't tickets return HTTP(500)?

2009-05-25 Thread Boris Manojlovic
people let IE6 die! http://ie6update.com/ it is its time RIP... On Mon, May 25, 2009 at 4:49 PM, mdipierro wrote: > > I found the reference so the fix is in trunk. > Can a windows user please check if tickets still work and return 500 > properly? > > Massimo > > On May 25, 9:40 am, mdipierro

[web2py:22619] Re: pre-populated forms

2009-05-25 Thread Timmie
First, thanks for you both to follow up! > db.mytest.person.requires=[IS_ALPHANUMERIC(),IS_NULL_OR(IS_IN_DB > (db,'dogs.dog_name', (dog_name)s'))] > > and I believe this is equivalent to what you want, except that it will > not display the dropbox without creating a custom widget to handle it. Wel

[web2py:22618] migrate suggestion for tools.py

2009-05-25 Thread Hans
I'm facing issues when a 'next version' of an application is moved from one system (like development system) to another one. The unique string in the begin of the .table files of the auth tables is making troubles. I think what happens is that on the new system the app gets a new unique string, fi

[web2py:22617] Re: pre-populated forms

2009-05-25 Thread mdipierro
> > Any chance that I can do > > > db.mytest.person.requires=IS_NULL_OR(IS_ALPHANUMERIC(), IS_IN_DB(db, > > 'dogs.dog_name', > >                                                                 '% > > (dog_name)s')) > > > where IS_IN_DB could also be IS_IN_SET. > > Not currently, IS_NULL_OR has two

[web2py:22616] Re: shouldn't tickets return HTTP(500)?

2009-05-25 Thread mdipierro
I found the reference so the fix is in trunk. Can a windows user please check if tickets still work and return 500 properly? Massimo On May 25, 9:40 am, mdipierro wrote: > Alexey, > > this break web2py ability to redirect tickets to custom pages via > routes. > > in principle one just need to c

[web2py:22615] Re: pre-populated forms

2009-05-25 Thread DenesL
Hi Timmie, the IS_IN_SET_OR validator code could be used in your situation but it would limit the range of possible values, i.e. it is not as open ended as you want: But what do I do if I want to give the users the option to 1) select from previous entries OR 2) add new data like: > > > > V

[web2py:22614] Re: shouldn't tickets return HTTP(500)?

2009-05-25 Thread mdipierro
Alexey, this break web2py ability to redirect tickets to custom pages via routes. in principle one just need to change 200 into 500 ino check_error_route Can you point me to any documentation that talks about the size of text in the error page and IE, because I do not have a windows machine han

[web2py:22613] Re: Version reports a 1.62.3 (2009-05-19 23:25:03) as newest version

2009-05-25 Thread mdipierro
I posted 1.63. This problem should go away. On May 25, 5:14 am, salbefe wrote: > Massimo, It happens on the mac version too. > > Regards > > On 25 mayo, 04:54, mdipierro wrote: > > > Yes, this is a known problem with the windows version. I will fix it > > asap. > > > Massimo > > > On May 24, 9:

[web2py:22612] Re: pre-populated forms

2009-05-25 Thread mdipierro
Let me think about adding this: db.mytest.person.requires=IS_NULL_OR(IS_ALPHANUMERIC(), IS_IN_DB (db,'dogs.dog_name', '% (dog_name)s')) In general I am against a proliferation of validators. This is because everybody has flightly di

[web2py:22611] Re: DECIMAL or NUMERIC type for database fields

2009-05-25 Thread mdipierro
http://groups.google.com/group/web2py/browse_thread/thread/13d9e9fd7334b679 On May 25, 4:35 am, Joe Barnhart wrote: > About a million years ago, when I did DB2 programming, we used DECIMAL > a lot.  Anything that handled money was a DECIMAL value.  We also did > calculations on columns, like SU

[web2py:22610] Re: experimental: decimal and pickable and custom columns

2009-05-25 Thread mdipierro
you are right. it was just an example On May 25, 12:45 am, Alexey Nezhdanov wrote: > I think that's handy. Dropping cross-db compartibility is bad indeed, > but you just need to have a big warning in the place where user have > to make that choice. > > Also - I don't think that you can safely re

[web2py:22609] Re: IS_IN_DB - multiple-level reference ?

2009-05-25 Thread mdipierro
Not yet. I have 3 major patches to process. I expect they will take me a week. I also thing more and more we need to refactor DAL to accommodate some of the recent requests. Probably this problem will be easier to tackle with a new DAL. Massimo On May 25, 8:29 am, mika wrote: > So, Massimo do

[web2py:22608] Re: IS_IN_DB - multiple-level reference ?

2009-05-25 Thread mika
So, Massimo do you have any idea how to solve that problem? ;) --~--~-~--~~~---~--~~ 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

[web2py:22607] Re: shouldn't tickets return HTTP(500)?

2009-05-25 Thread MJokinn
On May 25, 2:21 am, mdipierro wrote: > send. thanks Alexey, sorry if I am slow to keep up with your patches. > > On May 24, 10:41 am, Alexey Nezhdanov wrote: > > > Please see the patch attached. Tested with IE6, I don't have any others > > under > > the hand, but deciding on what I've found o

[web2py:22606] Re: doctest error when using trunk code

2009-05-25 Thread posh
Thanks you all, I download trunk again, and it's OK now. :) On 5月23日, 下午8時59分, mdipierro wrote: > I know what the problem is. I think I fixed it. Please download trunk > again. > > On May 23, 2:11 am, Yarko Tymciurak wrote: > > > It appears right there in the svn > > sources:http://code.google

[web2py:22605] Re: Version reports a 1.62.3 (2009-05-19 23:25:03) as newest version

2009-05-25 Thread salbefe
Massimo, It happens on the mac version too. Regards On 25 mayo, 04:54, mdipierro wrote: > Yes, this is a known problem with the windows version. I will fix it > asap. > > Massimo > > On May 24, 9:40 pm, Yannick wrote: > > > > > Sorry maybe I don't understand but did you downloaded it from > >

[web2py:22604] Re: pre-populated forms

2009-05-25 Thread Timmie
Hello! > You must create your own widget do to this. If I have time I will post > an example. I have just seen that DenesL was faced with the same problem: http://groups.google.com/group/web2py/msg/089cee9b4fdf11b3 What happened to his patch in: http://groups.google.com/group/web2py/msg/44cc5a605

[web2py:22603] Re: DECIMAL or NUMERIC type for database fields

2009-05-25 Thread Joe Barnhart
About a million years ago, when I did DB2 programming, we used DECIMAL a lot. Anything that handled money was a DECIMAL value. We also did calculations on columns, like SUM(). I think it is worthwhile pursuing a solution for the DAL in web2py, as we used it a lot for anything financial. In fact