[web2py:19438] Re: not unicode

2009-04-07 Thread jmvermeer
Denes, > same here, IS_LENGTH is invalid with integers (numbers don't have a > length property in Python). I didn't know that, however, removing the IS_LENGTH() validator solved the problem )after finishing the first version of the application I am working on I'll definitely have to dive into P

[web2py:19437] Re: Table already exists, yes I know so SKIP it.

2009-04-07 Thread mdipierro
If the table already exists db.define_table(, migrate=False) Massimo On Apr 7, 11:18 pm, TheDude wrote: > OperationalError: (1050, "Table 'users' already exists") > > I know it already exists, but I want you to just know about it rather > than try to create it all the time. I tried clearin

[web2py:19436] Table already exists, yes I know so SKIP it.

2009-04-07 Thread TheDude
OperationalError: (1050, "Table 'users' already exists") I know it already exists, but I want you to just know about it rather than try to create it all the time. I tried clearing out my /databases folder as well. Any other ideas? --~--~-~--~~~---~--~~ You received

[web2py:19435] Re: How to use tags {{}} in javascript

2009-04-07 Thread mdipierro
Assuming the JS is in a view (not a .js file) if ( {{=xxx}}=='True'){ should work but probably does not do what you want. My guess is that you want if ( "{{=xxx}}"=='True'){ or {{import gluon.contrib.simplejson as sj}} if ( {{=js.dumps(xxx)}}==true){ check the source if the genera

[web2py:19434] Re: The official Web2py Book by Massimo....for free?

2009-04-07 Thread mdipierro
When I called one year ago they would not publish the book at all. Now we have 10 times more users so it may me worth calling them again. I will give it a try. Massimo On Apr 7, 7:33 pm, Baron wrote: > > stop blaming him for that silly 'problem' you can solve for $10. > > FYI I have already bou

[web2py:19433] How to use tags {{}} in javascript

2009-04-07 Thread Monty808
Hi, I tried to use {{=xxx}} in javascript tags but it did not work. e.g. if ( {{=xxx}}=='True'){ } What do I do? Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to

[web2py:19432] Little Bug Report on Auth API - (Register function) Tools.py

2009-04-07 Thread Yannick
Hello mate, We are able to register a user with empty password when using Auth API for registration. So basically if you have a controller like this : # controller (with "auth" already define in model) def register(): return dict(registerform = auth.register(next="blabla")) # A view {{=regist

[web2py:19431] Re: The official Web2py Book by Massimo....for free?

2009-04-07 Thread Baron
> stop blaming him for that silly 'problem' you can solve for $10. FYI I have already bought the book. You are right that it is a trivial amount for someone who is already convinced of the benefits of web2py. However it is an obstacle for beginners who are evaluating web2py while the free documen

[web2py:19430] Re: IS_PASS_MATCH or IS_MATCH validator

2009-04-07 Thread waTR
That's definetly better than what I was going to do :) Thanks for the quick response! On Apr 7, 4:56 pm, mdipierro wrote: > I just do > > FORM(INPUT(_name='pass1'),INPUT(_name='pass2', requires=IS_EXPR > ('value==%s' % repr(request.vars.pass1)),INPUT(_type='submit')) > > On Apr 7, 6:37 pm, waT

[web2py:19429] Re: IS_PASS_MATCH or IS_MATCH validator

2009-04-07 Thread mdipierro
I just do FORM(INPUT(_name='pass1'),INPUT(_name='pass2', requires=IS_EXPR ('value==%s' % repr(request.vars.pass1)),INPUT(_type='submit')) On Apr 7, 6:37 pm, waTR wrote: > I am looking to write a validator that takes as its arguments a > request.post_vars.pass1 and request.post_vars.pass2. This

[web2py:19428] Re: BUG or I just don't understand how it works

2009-04-07 Thread mdipierro
This is not in a view therefore you should do form=FORM(, _action=URL(r=request, c='comm', f='esend'), _method="post") Massimo On Apr 7, 5:58 pm, waTR wrote: > CODE: > form=FORM(TABLE(TR("Your name:",INPUT > (_type="text",_name="name",requires=IS_NOT_EMPTY(), > _class="frm_field")), >

[web2py:19427] IS_PASS_MATCH or IS_MATCH validator

2009-04-07 Thread waTR
I am looking to write a validator that takes as its arguments a request.post_vars.pass1 and request.post_vars.pass2. This is to check if when the use enters a password in 2 fields that they are the same. It then checks if they match, and if they don't it flashes an error saying passwords do not m

[web2py:19426] BUG or I just don't understand how it works

2009-04-07 Thread waTR
CODE: form=FORM(TABLE(TR("Your name:",INPUT (_type="text",_name="name",requires=IS_NOT_EMPTY(), _class="frm_field")), TR("Your email:",INPUT (_type="text",_name="email",requires=IS_EMAIL(), _class="frm_field")), TR("Subject",INPUT (_name="subject",requires=I

[web2py:19425] Re: Apache config.

2009-04-07 Thread mdipierro
That is the setup I use. On Apr 7, 4:19 pm, bsnipes wrote: > Just came across this nice post and am going to try it tonight: > > http://groups.google.com/group/web2py/browse_thread/thread/8bab53777c... > > Brian --~--~-~--~~~---~--~~ You received this message beca

[web2py:19424] Re: Idea for class / system?

2009-04-07 Thread mdipierro
Did you look into the eStore app on http://www.web2py.com/appliances ? It needs some more work but it is decent. Massimo On Apr 7, 4:32 pm, Michael wrote: > I read in a thread a while back about possible inclusion of ready-made > app classes and modules in web2py - I couldn't locate it so I fig

[web2py:19423] Idea for class / system?

2009-04-07 Thread Michael
I read in a thread a while back about possible inclusion of ready-made app classes and modules in web2py - I couldn't locate it so I figured I would add it here. A shopping cart class would be fantastic! Something that would allow developers to build either cart-enabled websites, or shopping car

[web2py:19422] Re: T2 + storing user session info

2009-04-07 Thread waTR
my model has the following for T2: from applications.plugin_t2.modules.t2 import T2 t2=T2(request,response,session,cache,T,db) session.t2_person_id prints "NONE" am I missing something? Here is my code logic: check if username & password are correct. if they are, then set t2.logged_in = True a

[web2py:19421] Re: Apache config.

2009-04-07 Thread bsnipes
Just came across this nice post and am going to try it tonight: http://groups.google.com/group/web2py/browse_thread/thread/8bab53777c1b1587/ddf09d126685fd7f?lnk=gst&q=apache#ddf09d126685fd7f Brian --~--~-~--~~~---~--~~ You received this message because you are sub

[web2py:19420] Re: T2 + storing user session info

2009-04-07 Thread mdipierro
try {{=session}} to see what is going on Is it possible you create the t2 object in the controller and not in the model? I think there is also a variable session.t2_person_id that you can use for the check. Massimo On Apr 7, 3:50 pm, waTR wrote: > I am using the t2.logged_in variable to stor

[web2py:19419] Re: global controller?

2009-04-07 Thread mdipierro
You can do: index_url=URL(r=request,f=index') def login(): return dict(form = auth.login(next=index_url)) def register(): return dict(form = auth.register(next=index_url)) ... etc. Massimo On Apr 7, 2:44 pm, g-man wrote: > I am learning all the new auth, crud, and mail tools now, and I have

[web2py:19418] T2 + storing user session info

2009-04-07 Thread waTR
I am using the t2.logged_in variable to store the status of my user. When the user logs in, the function changes the t2.logged_in = True. However, when I then check t2.logged_in in another controller and another page, t2.logged_in = False. Whats going on? It seems t2.logged_in is not keeping tra

[web2py:19417] Re: Web2py doesn't work with embedded jQuery windows

2009-04-07 Thread waTR
Awaiting approval. Called "How to use shadowbox with web2py". Cheers. On Apr 7, 12:32 pm, mdipierro wrote: > Please post t on AlterEgo and I'll approve it > > On Apr 7, 1:59 pm, waTR wrote: > > > The problem was web2py was not serving files ending in .html to the > > browser. All I needed to

[web2py:19416] Re: global controller?

2009-04-07 Thread waTR
You can do what you are talking about via routes.py. I believe this will do it: routes_in=( ('/yourapp/default/$f.html','/yourapp/$f'), ) On Apr 7, 12:44 pm, g-man wrote: > I am learning all the new auth, crud, and mail tools now, and I have > one question: > > Does web

[web2py:19415] global controller?

2009-04-07 Thread g-man
I am learning all the new auth, crud, and mail tools now, and I have one question: Does web2py use the 'default' controller as an implicit global controller across a single application, or is that even possible? Here is my situation. When I create my: ## default.py controller def user(): re

[web2py:19403] Re: WARNING:root:unable to import dbhash (only from external cron)

2009-04-07 Thread seth
Just a couple more data points in case they are useful. The -R was indeed unnecessary in the crontab, but it doesn't seem to be the cause of the problem, as db.commit() is still required in order to successfully insert into the database. Also, running the web2py shell (-M -S appname) also require

[web2py:19408] Re: The official Web2py Book by Massimo....for free?

2009-04-07 Thread Keith Edmunds
On Sun, 5 Apr 2009 17:08:31 -0700 (PDT), richar...@gmail.com said: > And my version is > fast becoming out of date with all the new features. This is not a complaint - I do not expect the book to be free - but the above point is valid. I too have the printed book, but a lot has changed since it

[web2py:19404] Re: unable to parse csv file

2009-04-07 Thread fredg
> What error do you get? I don' t have any ticket just the red warning. Is there a log file where I can find something useful for you ? > Here are some other possible causes of errors: > - There are column names that do have a corresponding field in the > table > - field types do not match > - yo

[web2py:19414] Re: unable to parse csv file

2009-04-07 Thread mdipierro
Because if appadmin were to give a ticket people would interpret this as a web2py (appamdin) bug. If you call db.youtable.import_from_csv_file(open(,'rb')) and it fails, this will give you a ticket. Massimo On Apr 7, 1:19 pm, fredg wrote: > > What error do you get? > > I don' t have a

[web2py:19413] Re: Web2py doesn't work with embedded jQuery windows

2009-04-07 Thread mdipierro
Please post t on AlterEgo and I'll approve it On Apr 7, 1:59 pm, waTR wrote: > The problem was web2py was not serving files ending in .html to the > browser. All I needed to do to get shadowbox running with web2py was > create a routes.py that added .html to all web2py URLs. > > Here is the rout

[web2py:19412] Re: Apache config.

2009-04-07 Thread bsnipes
On Apr 7, 1:59 pm, zxynax wrote: > That begs the question - what deployment method are you using? > It will be on Apache. Right now I am creating my first actual site. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[web2py:19411] Re: The official Web2py Book by Massimo....for free?

2009-04-07 Thread desfrenes
and another one: http://www.jjude.com/2009/04/07/why-i-chose-web2py-for-developing-yatsy/ On 6 avr, 22:16, desfrenes wrote: > On 6 avr, 22:01, g-man wrote: > > > Where are all the web2py blogs and articles, people? > > here's > one:http://www.desfrenes.com/blog/post/quel-framework-web-python-

[web2py:19410] Re: Apache config.

2009-04-07 Thread zxynax
That begs the question - what deployment method are you using? On Apr 7, 1:39 pm, bsnipes wrote: > On Apr 7, 1:32 pm, zxynax wrote: > > > So I found a workaround. > > Great! > > > > > The problem I have with this is I'd like to manipulate the xml > > contained within the .svg with web2py. > > >

[web2py:19409] Re: Web2py doesn't work with embedded jQuery windows

2009-04-07 Thread waTR
The problem was web2py was not serving files ending in .html to the browser. All I needed to do to get shadowbox running with web2py was create a routes.py that added .html to all web2py URLs. Here is the routes.py file contents that fixed the problem. My routes.py file now creates a URL followed

[web2py:19407] Re: Apache config.

2009-04-07 Thread bsnipes
On Apr 7, 1:32 pm, zxynax wrote: > So I found a workaround. Great! > > The problem I have with this is I'd like to manipulate the xml > contained within the .svg with web2py. > > Is an email to the author in order? Not a clue. I've never touched WSGI before last night :) Brian --~--~-

[web2py:19406] Re: Apache config.

2009-04-07 Thread zxynax
So I found a workaround. The alias directive should be as follows: "Alias / //applications//static/" This allows the web2py code to run properly and still allow .svg images to be correctly given to the client with the proper image/svg +xml header. The problem I have with this is I'd like to man

[web2py:19405] Re: Apache config.

2009-04-07 Thread zxynax
I uncommented the alias line and it now serves SVG. Problem is that none of the web2py code runs. On Apr 7, 10:31 am, bsnipes wrote: > On Apr 7, 9:52 am, zxynax wrote: > > > I thought that's what you intended.  But as I'm the one who's > > obviously not understanding something very simple - lik

[web2py:19402] Re: web2py on windows

2009-04-07 Thread Iceberg
Suggest David to paste his command line to start web2py and the console output, to make sure no simple typo inside. By the way, can web2py provide useful information now, when port not available? We mentioned that. http://groups.google.com/group/web2py/browse_frm/thread/76c1751a01bf8d5d On Apr8

[web2py:19401] Re: unable to parse csv file

2009-04-07 Thread mdipierro
What error do you get? Here are some other possible causes of errors: - There are column names that do have a corresponding field in the table - field types do not match - you have dates NOT in ISO format - you have special characters in the strings (I see you have a "ê"). Strings must be UTF8 to

[web2py:19400] Re: Web2py doesn't work with embedded jQuery windows

2009-04-07 Thread mdipierro
I think your problem is the +".html" below {{=URL(r=request, c='mycontroller',f='myfunction')}}.html It should not be there. On Apr 7, 12:30 pm, waTR wrote: > I noticed that if I enter an href="{{=URL(r=request, c='mycontroller', > f='myfunction')}}.html", the embedded window pops-up, however,

[web2py:19399] Re: Web2py doesn't work with embedded jQuery windows

2009-04-07 Thread waTR
FIXED!! That was the problem! the embedded window needed an address ending in .html. However, web2py doesn't provide that out of the box (which I think it should, btw, just provide an example routes.py populated with what is needed to take all .html links to the function preceding it). I crea

[web2py:19398] Re: web2py on windows

2009-04-07 Thread mdipierro
There could be a firewall or there could be another process running on the same port. Try changing the port. On Apr 7, 12:21 pm, davidjensen wrote: > I trying to get web2py running on vista ultimate which has IIS > installed. I can get helloworld.html running on localhost and also > from the web

[web2py:19397] Re: Web2py doesn't work with embedded jQuery windows

2009-04-07 Thread waTR
I noticed that if I enter an href="{{=URL(r=request, c='mycontroller', f='myfunction')}}.html", the embedded window pops-up, however, it is blank because if I manually enter that address, I get invalid function. I wonder if simply setting up a rout that will re-direct the above to just URL(r=reque

[web2py:19396] web2py on windows

2009-04-07 Thread davidjensen
I trying to get web2py running on vista ultimate which has IIS installed. I can get helloworld.html running on localhost and also from the web using a static ip and port forwarding on my router. However, I cannot get it on another computer on the lan or on the web. My ip address on the lan is 192

[web2py:19395] Web2py doesn't work with embedded jQuery windows

2009-04-07 Thread waTR
I could be wrong though, so if someone can get shadowbox javascript library to work with web2py, especially the iframe embedded windows, that would be awesome. http://www.mjijackson.com/shadowbox/index.html I have the embedded window working. I.e. I can give it an href of www.google.com, and an e

[web2py:19394] Re: unable to parse csv file

2009-04-07 Thread fredg
> You should be able ti just delete the "id" column and if there are no > dates it should work. Trying with that CSV file (with and without the 1st line) : packages.nom,packages.description,packages.url,packages.packager,packages.categorie "AfterStep","Gestionnaire de fenêtres","http:// www.afte

[web2py:19393] Re: unable to parse csv file

2009-04-07 Thread mdipierro
You should be able ti just delete the "id" column and if there are no dates it should work. On Apr 7, 11:16 am, fredg wrote: > Hi, > > I'm using the last web2py release on localhost with python-2.5.4 on a > LFS based system. > I'm trying to import a CSV file through the web2py interface, I have

[web2py:19392] Re: web2py team & Geo/GIS project created at Launchpad

2009-04-07 Thread mdipierro
Thank you. On Apr 7, 10:52 am, Timmie wrote: > Hello, > yesterday I created a web2py team at launchpad.https://launchpad.net/~web2py > > Please feel free to add yourself to the team. > It doesn't mean something special so far. But maybe this can > facilitate common development at later stage! >

[web2py:19391] unable to parse csv file

2009-04-07 Thread fredg
Hi, I'm using the last web2py release on localhost with python-2.5.4 on a LFS based system. I'm trying to import a CSV file through the web2py interface, I have tried several CVS output,but everytime,I've got the same error which is "unable to parse csv file" Here is the sqlite database created

[web2py:19390] web2py team & Geo/GIS project created at Launchpad

2009-04-07 Thread Timmie
Hello, yesterday I created a web2py team at launchpad. https://launchpad.net/~web2py Please feel free to add yourself to the team. It doesn't mean something special so far. But maybe this can facilitate common development at later stage! Also, I started a project for Geo stuff: web2py Geo & GIS

[web2py:19389] Re: Apache config.

2009-04-07 Thread bsnipes
On Apr 7, 9:52 am, zxynax wrote: > I thought that's what you intended.  But as I'm the one who's > obviously not understanding something very simple - like the example > in the deployment recipe section - I'm the one waving the idiot banner > and as such have had all powers of assumption revoked.

[web2py:19388] Re: Newbie trying to get the auth role

2009-04-07 Thread mdipierro
A user may have membership in groups with multiple roles: for row in db(db.auth_group.id==db.auth_membership.group_id) (db.auth_membership.user_id==auth.user.id).select(db.auth_group.ALL): print row.role On Apr 7, 9:10 am, Monty808 wrote: > Hi, > > I can get the first_name of a user loged i

[web2py:19387] Re: not unicode

2009-04-07 Thread mdipierro
the bottom line is you should use regex to validate postal codes since they may start with 0. On Apr 7, 9:15 am, DenesL wrote: > On Apr 6, 11:01 am, annet wrote: > > > I have got the following model: > > > db.define_table('postcoderegio', > > SQLField('regio', type='integer', length=2, defa

[web2py:19386] Re: Oracle: long text inserting

2009-04-07 Thread mdipierro
Yes. Thanks for all your work. Could you email me a summary of your patches? On Apr 7, 8:50 am, SergeyPo wrote: > I hope my today's activity with Oracle testing helps to improve > web2py! > > Model: > > db.define_table('settings', > SQLField('created_at', 'datetime', default=datetime.datetim

[web2py:19385] response.flash problem

2009-04-07 Thread DenesL
Thank you. On Apr 7, 10:43 am, Michal Jursa wrote: > Whops, sorry, didn't know that, won't do it any more. > > Michal > > AchipA wrote: > > > Discussion subject changed to "make validator ignore empty string" by > > Michal Jursa > > > You probably sent your message as a reply to an existing, ins

[web2py:19384] Re: Is there a way to store session in memory?

2009-04-07 Thread Iceberg
Massimo, thanks for the hint about placing sqlite database in different folder. However I found it not fully work as expect, because those "abcdef123456_blah.table" are still created inside app/databases folder. Could you adjust the code so that all relevant *.table files are in the same folder as

[web2py:19383] Re: Apache config.

2009-04-07 Thread zxynax
I thought that's what you intended. But as I'm the one who's obviously not understanding something very simple - like the example in the deployment recipe section - I'm the one waving the idiot banner and as such have had all powers of assumption revoked. Anyway, I have enabled the site that uti

[web2py:19382] Re: make validator ignore empty string

2009-04-07 Thread Michal Jursa
Whops, sorry, didn't know that, won't do it any more. Michal AchipA wrote: > > Discussion subject changed to "make validator ignore empty string" by > Michal Jursa > > You probably sent your message as a reply to an existing, instead of a > typing a 'new' message. When you reply, the thread-id

[web2py:19381] Re: make validator ignore empty string

2009-04-07 Thread AchipA
Discussion subject changed to "make validator ignore empty string" by Michal Jursa You probably sent your message as a reply to an existing, instead of a typing a 'new' message. When you reply, the thread-id remains, so it will look funny (=harder to track) for people using threaded mail readers

[web2py:19380] Re: make validator ignore empty string

2009-04-07 Thread Michal Jursa
What? What have i done wrong? Michal DenesL wrote: > @Michal, > tsk... tsk... bad etiquette... hijacking other people's posts. > You can always open a new post with your issue. > > > On Apr 7, 9:47 am, Michal Jursa wrote: >> Hi, >> i need to make a validation like 'nothing or email', but IS_E

[web2py:19379] Re: Apache config.

2009-04-07 Thread bsnipes
On Apr 7, 9:20 am, zxynax wrote: > a2enmod web2py returns "ERROR: Module web2py does not exist!" > oops... I guess that should be a2ensite web2py... I'll power on my laptop that I was testing with and paste them shortly. Brian --~--~-~--~~~---~--~~ You received

[web2py:19378] Re: make validator ignore empty string

2009-04-07 Thread DenesL
@Michal, tsk... tsk... bad etiquette... hijacking other people's posts. You can always open a new post with your issue. On Apr 7, 9:47 am, Michal Jursa wrote: > Hi, > i need to make a validation like 'nothing or email', but IS_EMAIL is > always complaining even on empty string. How to combine r

[web2py:19376] Re: Newbie trying to get the auth role

2009-04-07 Thread bsnipes
On Apr 7, 9:10 am, Monty808 wrote: > I assigned roles to the user.  How can I get the role using something > like role=auth.role? I don't know if this is the 'proper' way to do it but you could try: https://mdp.cti.depaul.edu/wiki/default/page/4ebc7198-eac5-4227-894f-b267879eb64b Brian --~--~-

[web2py:19377] Re: Apache config.

2009-04-07 Thread zxynax
a2enmod web2py returns "ERROR: Module web2py does not exist!" So am I missing a module?!? I've not read anything that indicates that a web2py module should exist. Maybe my eyes are not working?!? mime.conf and mime.load are indeed under /etc/apache/mods-enabled/ mime.conf contains the line: Ty

[web2py:19375] Re: not unicode

2009-04-07 Thread DenesL
On Apr 6, 11:01 am, annet wrote: > I have got the following model: > > db.define_table('postcoderegio', > SQLField('regio', type='integer', length=2, default='', > notnull=True), length is not valid with integer fields > SQLField('min', type='integer', length=4, default='', > notnull=Tr

[web2py:19373] Re: make validator ignore empty string

2009-04-07 Thread Michal Jursa
ahh, thanks massimo i somehow missed this... Michal alias Plysak mdipierro wrote: > IS_NULL_OR(IS_EMAIL()) > > On Apr 7, 8:47 am, Michal Jursa wrote: >> Hi, >> i need to make a validation like 'nothing or email', but IS_EMAIL is >> always complaining even on empty string. How to combine requir

[web2py:19372] Newbie trying to get the auth role

2009-04-07 Thread Monty808
Hi, I can get the first_name of a user loged in using first_name=auth.user.first_name. I assigned roles to the user. How can I get the role using something like role=auth.role? Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to

[web2py:19371] Re: using web2py for Geo / GIS stuff

2009-04-07 Thread dbb
Thank you Massimo, I will inform you everything by email once I finish the preparation of my side. best regards: dbb On Apr 6, 10:01 pm, mdipierro wrote: > I am more than OK with this. I am happy you are doing it. What is your > timeline? > > Massimo > > On Apr 6, 8:32 pm, dbb wrote: > > > >

[web2py:19370] Oracle: long text inserting

2009-04-07 Thread SergeyPo
I hope my today's activity with Oracle testing helps to improve web2py! Model: db.define_table('settings', SQLField('created_at', 'datetime', default=datetime.datetime.now ()), SQLField('meta', 'text'), ) Controller action: outp = 'Long text longer than 4000 symbols' db.settings.insert

[web2py:19369] Re: make validator ignore empty string

2009-04-07 Thread mdipierro
IS_NULL_OR(IS_EMAIL()) On Apr 7, 8:47 am, Michal Jursa wrote: > Hi, > i need to make a validation like 'nothing or email', but IS_EMAIL is > always complaining even on empty string. How to combine required > validators to do this EMPTY or EMAIL ? > > Michal alias Plysak --~--~-~--~~-

[web2py:19368] make validator ignore empty string

2009-04-07 Thread Michal Jursa
Hi, i need to make a validation like 'nothing or email', but IS_EMAIL is always complaining even on empty string. How to combine required validators to do this EMPTY or EMAIL ? Michal alias Plysak --~--~-~--~~~---~--~~ You received this message because you are s

[web2py:19367] Re: response.flash problem

2009-04-07 Thread DenesL
On Apr 7, 3:36 am, jmverm...@xs4all.nl wrote: > After fixing this problem I found out something else. I made a static > layout; plain xhtml and a css. When I use this layout in web 2py the > header and footer display alright, however the > and everything within in fall apart, i.e. aren't styled p

[web2py:19366] Raw filesystem instead DB

2009-04-07 Thread sherdim
Hello, Massimo and all! Could you explain whether would web2py work with dispersed datafiles in some folder structure? Such kind of data storage provides separated data objects in XML or JSON format with not-limited security (any of NTFS features). Also the easy merge of local and remote (web) da

[web2py:19365] Re: sample of application routes.py

2009-04-07 Thread mdipierro
I guess I lost it. On Apr 7, 4:12 am, AchipA wrote: > Apropos, there was a patch to support per domain routes a week ago (or > two), can you tell what's the status on that one ? > > On Apr 6, 9:40 pm, mdipierro wrote: > > > OK. email me the patch. > > > Massimo > > > On Apr 6, 2:09 pm, Robin B

[web2py:19364] Re: not unicode

2009-04-07 Thread mdipierro
\d{4} means 4 digits On Apr 7, 3:03 am, jmverm...@xs4all.nl wrote: > I don't know, in the function I want to use the following code > > if form.accepts(request.vars,session): >     code=db(db.postcoderegio.regio==request.vars.regio).select > (db.postcoderegio.min,db.postcoderegio.max) >     clubs

[web2py:19363] Re: Form validators are being executed upon deleting a record

2009-04-07 Thread mdipierro
Good catch but this this is fixed in trunk already. ;-) Will repost 1.60 soon. Massimo On Apr 7, 2:09 am, Guido Kollerie wrote: > Hi, > > Accidentally came across the following scenario which I suspect to have > exposed a bug in Web2py. > > While working on an application I noticed I had ident

[web2py:19362] Oracle: date field type

2009-04-07 Thread SergeyPo
Oracle handles DATE type similarly to DATETIME so it outputs date with timestamp 00:00:00. If you print out SQLRow you will see that it contains datetime.datetime(2009, 4, 6, 0, 0) But for portablility it should be datetime.date(2009, 4, 6, 0, 0) I could not identify correct place to patch in gluo

[web2py:19361] Oracle: limitby

2009-04-07 Thread SergeyPo
If you try to limitby complex query in oracle you get an error (duplicate records). Gluon currently works well for queries like db().select(db.details.ca_date, orderby=~db.details.ca_date, limitby= (0,1)) but does not work for joint tables e.g.: db(db.headers.id==db.details.header) \ .se

[web2py:19360] Oracle: GROUP BY

2009-04-07 Thread SergeyPo
This code works in MySQL, SQLite: db(cond).select(db.carts.ALL, db.c_h.cart_id.count(), left=db.c_h.on(many_to_many), groupby=db.carts.id, orderby=carts_orderby,

[web2py:19359] how to do autoindex for directories & serve static html files

2009-04-07 Thread Timmie
Hello, can I use web2py to to something like autoindex for directories? In Apache it is called mod_autoindex (http://httpd.apache.org/docs/2.0/ mod/mod_autoindex.html). What is the best way to serve static pages like a Sphinx documentation built? Shall I just put the files into the "view" folder

[web2py:19358] Re: Coooooool!

2009-04-07 Thread notabene
Very nice and cool! Because of the static height (style="height: 35px;" in views/default/ index.html) it only works for me when moving the div/window away from the left column. is jDiv and the new web2py_ajax.html finding its to web2py or a svn repository? Niels On 6 Apr., 08:09, mdipierro w

[web2py:19357] Re: Is there a way to store session in memory?

2009-04-07 Thread Kuba Kucharski
Yes, thank you, Achipa. I forgot to warn about it, I will add this to an AlterEgo entry as soon as I can edit it. -- Kuba --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to thi

[web2py:19356] Re: sample of application routes.py

2009-04-07 Thread AchipA
Apropos, there was a patch to support per domain routes a week ago (or two), can you tell what's the status on that one ? On Apr 6, 9:40 pm, mdipierro wrote: > OK. email me the patch. > > Massimo > > On Apr 6, 2:09 pm, Robin B wrote: > > > I thought it would be cool to have a routes.py for each

[web2py:19355] Re: Is there a way to store session in memory?

2009-04-07 Thread AchipA
A note, often the OS's disk caching (esp with linux style cache) is enough speedwise, it is worth going for memory only if you're 100% sure that the disk is a bottleneck. Otherwise, by dedicating memory to cache or tmpfs you can actually slow yourself down in a low mem situation (by forcing apache

[web2py:19354] Re: not unicode

2009-04-07 Thread jmvermeer
I don't know, in the function I want to use the following code if form.accepts(request.vars,session): code=db(db.postcoderegio.regio==request.vars.regio).select (db.postcoderegio.min,db.postcoderegio.max) clubs=db().select(db.company.ALL,db.address.ALL,left=db.address.on ( (db.addres

[web2py:19353] Re: response.flash problem

2009-04-07 Thread jmvermeer
Denes, Thanks for pointing me in the right direction, the {{pass}} was missing here: {{pass}} After fixing this problem I found out something else. I made a static layout; plain xhtml and a css. When I use this layout in web 2py the header and footer display alright, however th

[web2py:19352] Form validators are being executed upon deleting a record

2009-04-07 Thread Guido Kollerie
Hi, Accidentally came across the following scenario which I suspect to have exposed a bug in Web2py. While working on an application I noticed I had identical values occurring in a particular column. E.g. given: db = SQLDB('sqlite://storage.db') db.define_table('person',SQLField('name