[web2py:28478] Re: converting the query dictionary to a list

2009-08-12 Thread Fran
On Aug 13, 2:18 am, tititi wrote: > I'm new to w2p and would like to incorporate tag cloud function into > my site but can't seem to convert a dictionary to a list from a > database query result. Can anyone help me with this? > def gen_tags(): >     #tags = ['java','php','python','python'] >    

[web2py:28477] Re: current link indication with MENU() helper

2009-08-12 Thread Richard
Maybe add it to the issue tracker: http://code.google.com/p/web2py/issues/list On Aug 13, 11:57 am, ionel wrote: > Massimo, > > When will we have this feature added into menu helper? I really need > this... > > Thanks. > > On Jun 17, 12:13 pm, mdipierro wrote: > > > Sorry, this needs to be add

[web2py:28476] Re: Left Join Failures

2009-08-12 Thread Richard
hi Christian, I also just got this error message when testing a migration from sqlite to postgres. Thanks for the diagnosis of the problem. Have you found a work around yet using the DAL? Richard On Aug 10, 4:56 pm, howesc wrote: > This is in Postgres. > > I did a little digging, and apparently

[web2py:28475] Re: sqlite cascade support?

2009-08-12 Thread Richard
hmm OK, I guess that work around would do it. > I supposed in the longer run, we could add the equivalent code to the DAL > specifically for sqlite perhaps that is the best longer term option. +1 I am tied to sqlite because the site is live and users are editing right now. But maybe it wil

[web2py:28474] Re: current link indication with MENU() helper

2009-08-12 Thread ionel
Massimo, When will we have this feature added into menu helper? I really need this... Thanks. On Jun 17, 12:13 pm, mdipierro wrote: > Sorry, this needs to be added to the menu helper. Not there yet > > Massimo > > On Jun 17, 10:29 am, blackthorne wrote: > > > since the MENU() helper has been

[web2py:28473] converting the query dictionary to a list

2009-08-12 Thread tititi
Hi, I'm new to w2p and would like to incorporate tag cloud function into my site but can't seem to convert a dictionary to a list from a database query result. Can anyone help me with this? def gen_tags(): #tags = ['java','php','python','python'] query=db.tags.id>0 tags = db(query).

[web2py:28472] Re: Web2py.com down

2009-08-12 Thread emaynard
Same here in Ohio. Neither Domain name nor IP appear to be working. -Eric On Aug 12, 9:06 pm, Yannick wrote: > Same here in Canada... > > On Aug 12, 8:30 pm, Richard wrote: > > > I can't accesswww.web2py.comatthe moment and have experienced > > intermittent downtime. > > > On Aug 8, 2:33 pm,

[web2py:28471] Re: Web2py.com down

2009-08-12 Thread Brian M
Down here too. http://downforeveryoneorjustme.com/web2py.com also confirms it isn't just me. On Aug 12, 8:31 pm, Bottiger wrote: > Same here in the US using OpenDNS. I even tried the IP address when it > popped up occasionally and it gave a 503 Service Temporarily > Unavailable error. > > On Au

[web2py:28470] Re: Difficulty with mysql migration

2009-08-12 Thread Richard
>db.import_from_csv_file(open('somefile.csv','rb')) don't forget you need a db.commit() after importing. On Jun 22, 2:02 am, mdipierro wrote: > yes you can migrate an entire database from the shell with one > command: > > 1) have a model that connects to the sqliite db > 2) python web2py -S

[web2py:28469] Re: Web2py.com down

2009-08-12 Thread Yarko Tymciurak
I am with you - I cannot get a response either, not from www.web2py.com nor from the ip address that nslookup returns. curl www.web2py.com intermittently returns: Service Temporarily Unavailable The server is temporarily unable to service your request due to maintenance downtime or capacity probl

[web2py:28468] Re: Web2py.com down

2009-08-12 Thread Bottiger
Same here in the US using OpenDNS. I even tried the IP address when it popped up occasionally and it gave a 503 Service Temporarily Unavailable error. On Aug 12, 6:06 pm, Yannick wrote: > Same here in Canada... > > On Aug 12, 8:30 pm, Richard wrote: > > > I can't accesswww.web2py.comatthe momen

[web2py:28467] Re: Web2py.com down

2009-08-12 Thread Yannick
Same here in Canada... On Aug 12, 8:30 pm, Richard wrote: > I can't accesswww.web2py.comat the moment and have experienced > intermittent downtime. > > On Aug 8, 2:33 pm, b00m_chef wrote: > > > Just tried to accessweb2py.com and was not up. > > > Tried using a proxy (guardster), same result. --

[web2py:28466] Re: sqlite cascade support?

2009-08-12 Thread Yarko Tymciurak
if you're tied to sqlite, then why don't you use the conversion tools to take the SQL for the table creation (you can find it in your app/databases files when the tables were created) to set up the sqlite triggers to do the equivalent; then you can add that to an execsql call to setup once (ideal

[web2py:28465] Re: Web2py.com down

2009-08-12 Thread Richard
I can't access www.web2py.com at the moment and have experienced intermittent downtime. On Aug 8, 2:33 pm, b00m_chef wrote: > Just tried to accessweb2py.com and was not up. > > Tried using a proxy (guardster), same result. --~--~-~--~~~---~--~~ You received this

[web2py:28464] Re: def download(): slow

2009-08-12 Thread Richard
hmm that's interesting. I should probably be doing that too. What is the recommended way to serve static binary data in web2py? Like the above example? Or perhaps directly through Apache? Richard On Aug 13, 5:53 am, hcvst wrote: > FIXED > > Hi, > > I've now changed the download function to use

[web2py:28463] Re: sqlite cascade support?

2009-08-12 Thread Richard
unfortunately upgrading sqlite is not an option in my situation. And we are locked into sqlite at the moment. So I'm going to need to solve this through the DAL. Is there a single query that could delete all my A's and B's? Or do I need to iterate through the A's and remove them all manually? Ri

[web2py:28462] Re: where for art thou, oh session attribute?

2009-08-12 Thread desfrenes
>2) should we provide a cookie aware xmlrpc cllient with web2py? > >3) should we allow other mechanisms to id sessions? For example a uuid >in the URL? These are very application-specific. Other services may require a token in the method's parameters, other may require http auth, some may need co

[web2py:28461] Re: Ajax problem

2009-08-12 Thread __Kyo__
Thank you very much ¡ On Aug 12, 11:34 am, mdipierro wrote: > literally you can replace "$" with "jQuery" everywhere. Sometimes with > some plugins it makes a difference. > > On Aug 12, 9:58 am, __Kyo__ wrote: > > > > > it works !! thank you. I'm new at this, and what is the way to replace > >

[web2py:28460] Cron @reboot can't call script?

2009-08-12 Thread Fran
Should cron's @reboot be able to call a script or can it just call a controller function? The docs just show a controller function for this mode: http://www.web2py.com/examples/default/cron I'd like to be able to call an external script instead...this isn't working even for very simple scripts t

[web2py:28459] Re: test on IBM AS/400 iSeries System i

2009-08-12 Thread DenesL
IT WORKS! I missread the traceback, the problem was that port 8000 was in use. Denes. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web2py@googlegroups.co

[web2py:28458] Newbie Locale Question

2009-08-12 Thread Francisco
Hello everyone. I have just started learning web2py. It's really great! Now the question I have is about the locale. I'm from Mexico so my applications must be in Spanish. In some part of the application I want to get a date doing something like this from within a view: {{=consulta.fecha_consult

[web2py:28457] Re: def download(): slow

2009-08-12 Thread hcvst
FIXED Hi, I've now changed the download function to use response.stream in order for the Http Header 'Content-Disposition: attachment; filename=myimg.JPG' not to be added. That didn't make a difference except that one can now enter the image URL into the browser without being prompted to save th

[web2py:28456] Re: sqlite cascade support?

2009-08-12 Thread Yarko Tymciurak
If you must use sqlite, then google for sqlite cascade - there are C program files that will convert your SQL to sqlite triggers which will accomplish this (according to all that I saw - I have no experience); there is even a website where you can paste your table definition, and it will generate

[web2py:28455] Re: Why import is not that easy?

2009-08-12 Thread Ahmed Soliman
Another problem is that I cannot *easily* import other modules from my modules in modules/ :) this means that if I have module X in modules/ and module Y I cannot do this while in X import Y because the cwd is web2py/ so, I have to import by the application name again, and as "request" is not de

[web2py:28454] Re: sqlite cascade support?

2009-08-12 Thread Richard
hmm, that's a pity. Thanks for the link. Is there a single query that could delete all my A's and B's? Or do I need to iterate through the A's and remove them all manually? Richard On Aug 12, 5:52 pm, Yarko Tymciurak wrote: > It apprears that sqlite does not support this - > seehttp://www.sql

[web2py:28453] Re: Single application with multiple groups of controllers

2009-08-12 Thread Pamela Maldeis
Thanks - This suggestion is working out well thus far! On Wed, Aug 12, 2009 at 12:55 PM, Kacper Krupa wrote: > > i think you should create dirs in modules and add __init__.py to each > one. Then: > > def load(): >if session.project_a == True: >from applications.your_app.a.upload imp

[web2py:28452] Re: test on IBM AS/400 iSeries System i

2009-08-12 Thread Yarko Tymciurak
the gui is, I believe, just for the default admin password prompting, and stoping / restarting web2py; you can safely ignore this, and you can avoid the gui trying to start by using the "-a" command line option. On Wed, Aug 12, 2009 at 8:48 AM, DenesL wrote: > > Finally I was able to install 2.

[web2py:28451] Re: Why import is not that easy?

2009-08-12 Thread Ahmed Soliman
On Aug 12, 5:14 pm, DenesL wrote: > To avoid restarting web2py after making changes use: > > exec('from applications.%s.modules.yourmodule import X' > %request.application) > reload(X) # remove for production > > Denes. This doesn't work, did you try that? the reason is that X is probably a clas

[web2py:28450] Re: feature request: activate the feature request template

2009-08-12 Thread Yarko Tymciurak
... be sure to read thru the comments, and note those that do it locally (that's a fairly harmless excercise before doing an 'hg push' of the converted repository); actually, I may try this excercise after lunch On Wed, Aug 12, 2009 at 1:13 PM, Yarko Tymciurak wrote: > Ok - let me play aro

[web2py:28449] Re: feature request: activate the feature request template

2009-08-12 Thread Yarko Tymciurak
Ok - let me play around w/ the web2conf a bit tomorrow; I'll take notes and share w/ you. This is looks to be in FAR better shape than it was at the start of June. As for history: Massimo, just follow this page to prepare: http://code.google.com/p/support/wiki/ConvertingSvnToHg On Wed, Aug 12

[web2py:28448] DataTables 1.5 released

2009-08-12 Thread mr.freeze
Just in case you hadn't seen it... http://datatables.net/index --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from th

[web2py:28447] Re: Menu and "active" CSS class

2009-08-12 Thread Sebastian E. Ovide
Is it a bug or a feature not implemented yet ? On Fri, Jul 3, 2009 at 12:08 PM, Álvaro Justen [Turicas] < alvarojus...@gmail.com> wrote: > > On Fri, Jul 3, 2009 at 06:44, Vidul Petrov wrote: > > > > Hi, > > > > Given that I have a menu like: > > > > response.menu = [ > >['Home', request.funct

[web2py:28446] Re: Single application with multiple groups of controllers

2009-08-12 Thread Kacper Krupa
i think you should create dirs in modules and add __init__.py to each one. Then: def load(): if session.project_a == True: from applications.your_app.a.upload import Upload elif session.project_b == True: from applications.your_app.b.upload import Upload u = Upload()

[web2py:28445] Re: Single application with multiple groups of controllers

2009-08-12 Thread mdipierro
At this time we do not support subdirectory in controllers/ Massimo On Aug 12, 11:15 am, pam wrote: > I was wondering if anyone has tried to have a single application with > a directory structure within the main controllers folder such that > depending on a login option the application searches

[web2py:28444] Single application with multiple groups of controllers

2009-08-12 Thread pam
I was wondering if anyone has tried to have a single application with a directory structure within the main controllers folder such that depending on a login option the application searches for controllers out of the corresponding options controller folder. For example: Imagine you have 2 very s

[web2py:28443] Re: dropdown list from model references doesn't work

2009-08-12 Thread mdipierro
good. Thanks for letting us know it is solved. On Aug 12, 10:58 am, Carlos Aboim wrote: > Hi folks > For the start I want to really thanks your support. > I solved the problem already. > > As matter of fact I was connecting to other table which is not what I > wanted. > I really wanted access ju

[web2py:28442] Re: Ajax problem

2009-08-12 Thread mdipierro
literally you can replace "$" with "jQuery" everywhere. Sometimes with some plugins it makes a difference. On Aug 12, 9:58 am, __Kyo__ wrote: > it works !! thank you. I'm new at this, and what is the way to replace > $ with jQuery. > > On Aug 11, 4:45 pm, mdipierro wrote: > > > Try this. > > >

[web2py:28441] Re: dropdown list from model references doesn't work

2009-08-12 Thread Carlos Aboim
Hi folks For the start I want to really thanks your support. I solved the problem already. As matter of fact I was connecting to other table which is not what I wanted. I really wanted access just the names as properties of one field of the main table. So I changed the table 'fornecedores' to ins

[web2py:28440] cron issue

2009-08-12 Thread npye
Hello, I'm having a problem with cron ... I have a cron task ( runs a script to update the DB ) defined in the applications crontab. The script has been tested and works ... external from web2py on the command line. I get this error on the web2py console. WARNING:root:WEB2PY CRON Call returned

[web2py:28439] Re: Ajax problem

2009-08-12 Thread __Kyo__
it works !! thank you. I'm new at this, and what is the way to replace $ with jQuery. On Aug 11, 4:45 pm, mdipierro wrote: > Try this. > > $(document).ready(function(){ >     $('#taxpayer_spouse_name__row').hide(); >     $('#taxpayer_married').change(function(){ >         if($('#taxpayer_married

[web2py:28438] Re: Why import is not that easy?

2009-08-12 Thread DenesL
To avoid restarting web2py after making changes use: exec('from applications.%s.modules.yourmodule import X' %request.application) reload(X) # remove for production Denes. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Gro

[web2py:28437] Re: test on IBM AS/400 iSeries System i

2009-08-12 Thread DenesL
Finally I was able to install 2.5.4.4 by unpacking and rezipping on a PC. Anyways, this is what is happening after I start web2py: web2py.py WARNING:root:GUI not available because Tk library is not installed unpacking apps; this may take a few seconds... default applications are now installed web

[web2py:28436] Re: dropdown list from model references doesn't work

2009-08-12 Thread Carlos Aboim
I have copied and pasted you reply code but it seems not working! I cant tell what it is! Do you know any exemples online that a could study? Same reference or tutorial. I've searched but didn't find any! thanks CAboim 2009/8/12 mdipierro > > yes. It does for me. > > Try cut and paste the co

[web2py:28435] Re: dropdown list from model references doesn't work

2009-08-12 Thread Carlos Aboim
It's funny.. Know a noted the it as to be something with the comunication with the database I think. Because the 'cliente' field also doesn't work as expected! I have one entry already in the database for the cliente table and whem I try access it througth the 'client' field it doesn't show up. A

[web2py:28434] Re: dropdown list from model references doesn't work

2009-08-12 Thread mdipierro
yes. It does for me. Try cut and paste the code I posted into your admin. On Aug 12, 8:25 am, Carlos Aboim wrote: > Thank you for your breafly replies, > It is well seen, but I am affraid it is not that yet!! > > How I wish it whould...! > > the form to fill in a 'obra' in the admin page show

[web2py:28433] Re: dropdown list from model references doesn't work

2009-08-12 Thread Carlos Aboim
Thank you for your breafly replies, It is well seen, but I am affraid it is not that yet!! How I wish it whould...! the form to fill in a 'obra' in the admin page shows up perfectlly when I 'click' inside the input box of the field 'vendedor' it is supposed to appear a dropdown list with the IS_I

[web2py:28432] Re: dropdown list from model references doesn't work

2009-08-12 Thread mdipierro
I think I know why it did not work before. you have requires = IS_IN_SET(..),IS_NOT_EMPTY() the second validator is not necessary but the presence of "," makes python interpret this as requires = (IS_IN_SET(..),IS_NOT_EMPTY()) I remover the braces and the second validator. Massimo On Aug 1

[web2py:28431] Re: dropdown list from model references doesn't work

2009-08-12 Thread mdipierro
removed the [...] in this line: registos.vendedor.nome.requires = IS_IN_SET(['João Luís', 'Luís Bilro', 'Luis Pereira', 'Paulo Gonçalves', 'Vitor Silva', 'Rujoca', 'Dacor']) On Aug 12, 7:55 am, Carlos Aboim wrote: > less: >     now = request.now > > what were the changes you made. > > It seems

[web2py:28430] Re: dropdown list from model references doesn't work

2009-08-12 Thread Carlos Aboim
less: now = request.now what were the changes you made. It seems to me that is the same code? Have you changed something else? thanks Carlos Aboim 2009/8/12 mdipierro > > This workd for me: > > import datetime > > now = request.now > > registos=SQLDB("sqlite://registos.db") > > registos.d

[web2py:28429] Re: Chceking the url

2009-08-12 Thread max
thanks massimo On 12 Aug., 12:02, mdipierro wrote: > Should be > > > > > you can do > > {{import os}} > {{if os.path.exists(os.path.join(request.folder,'static/my_pics/%s' % > myrows.id)):}} > > {{else:}} > No image > {{pass}} > > On Aug 12, 4:15 am, max wrote: > > > I am using > > > > to

[web2py:28428] Re: dropdown list from model references doesn't work

2009-08-12 Thread mdipierro
This workd for me: import datetime now = request.now registos=SQLDB("sqlite://registos.db") registos.define_table('cliente', SQLField('nome', 'string'), SQLField('contacto', 'string'), SQLField('email'), SQLField('morada', 'string', length=100)) registos.define_table('vendedor

[web2py:28427] Re: Why import is not that easy?

2009-08-12 Thread mdipierro
There are two ways to import modules. 1) The standard Python way: If you install modules in a place where pyhon can find them (in sys.path) then you just import them as you would normally do in Python form youmodule import something 2) The "additional" web2py. If a module is in a place that is

[web2py:28426] Why import is not that easy?

2009-08-12 Thread Ahmed Soliman
Hello everybody, After reading about importing modules in web2py I feel not satisfied regarding the way I import modules from the modules directory because I have to specify the application name in the import statement, the other ways are hackish and are painful if you are doing lots of imports.

[web2py:28425] Re: dropdown list from model references doesn't work

2009-08-12 Thread Carlos Aboim
Ok, I've send it earlier but no problem here it is :-) http://dpaste.com/hold/78289/ Hope it helps! Thanks in advanced Carlos Aboim 2009/8/12 mdipierro > > Just send me the model then. > > Massimo > > On Aug 12, 5:41 am, Carlos Aboim wrote: > > Tell me what files you whould need. Because thi

[web2py:28424] Re: dropdown list from model references doesn't work

2009-08-12 Thread mdipierro
Just send me the model then. Massimo On Aug 12, 5:41 am, Carlos Aboim wrote: > Tell me what files you whould need. Because this is just the model of a > future app. > I am populating the database througth the admin page... > > I am not a very well experienced user! > > Sorry for some lack of un

[web2py:28423] Re: images in css

2009-08-12 Thread mdipierro
Thanks for letting us know. This is working as expected. The way this handled cannot be changed because it is determined by the browser. wrote: > You are right Massimo. The CSS works fine. So we can close the bug as "not a > bug" or "cannot reproduce" etc... > > The images missing were not part

[web2py:28422] Re: dropdown list from model references doesn't work

2009-08-12 Thread Carlos Aboim
Tell me what files you whould need. Because this is just the model of a future app. I am populating the database througth the admin page... I am not a very well experienced user! Sorry for some lack of understanding :-) Carlos Aboim 2009/8/12 mdipierro > > Please email me the relevant parts

[web2py:28421] Re: images in css

2009-08-12 Thread Sebastian E. Ovide
You are right Massimo. The CSS works fine. So we can close the bug as "not a bug" or "cannot reproduce" etc... The images missing were not part of the CSS Template... they are in the HTMLs...They include images using relative paths everywhere http://local/images/pic_1.jpg most Templates do i

[web2py:28420] Re: feature request: activate the feature request template

2009-08-12 Thread mdipierro
Vacation? what is vacation? We can migrate as soon as I figure out what to do. Yarko, if you know, let me know. There is no need to port the entire revision history. Massimo On Aug 12, 2:26 am, Yarko Tymciurak wrote: > We were going to migrate when mercurial support kicked in;  this started in

[web2py:28419] Re: dropdown list from model references doesn't work

2009-08-12 Thread Yarko Tymciurak
the idea of changing the name was for you to re-read your code, looking for where the problem may be hidden... On Wed, Aug 12, 2009 at 4:58 AM, Carlos Aboim wrote: > I changed the fields name as suggested but no sucess!! > Any further clues? > > Thanks > Carlos Aboim > > 2009/8/12 Yarko Tymciura

[web2py:28418] Re: dropdown list from model references doesn't work

2009-08-12 Thread mdipierro
Please email me the relevant parts of your app. This works for sure but I cannot tell what is wrong without looking at the code. Massimo On Aug 12, 4:58 am, Carlos Aboim wrote: > I changed the fields name as suggested but no sucess!! > Any further clues? > > Thanks > Carlos Aboim > > 2009/8/12

[web2py:28417] Re: images in css

2009-08-12 Thread mdipierro
This is not a bug. This works form me. Either you have a typo in the css or it is an issue with your browser. Can you email me an app to reproduce it? Massimo On Aug 12, 4:51 am, "Sebastian E. Ovide" wrote: > following inhttp://code.google.com/p/web2py/issues/detail?id=48 > > On Wed, Aug 12,

[web2py:28416] Re: Chceking the url

2009-08-12 Thread mdipierro
Should be you can do {{import os}} {{if os.path.exists(os.path.join(request.folder,'static/my_pics/%s' % myrows.id)):}} {{else:}} No image {{pass}} On Aug 12, 4:15 am, max wrote: > I am using >     > to dynamically load  the pictures. > Sometimes the pictures are not for some ids. Is there

[web2py:28415] Re: dropdown list from model references doesn't work

2009-08-12 Thread Carlos Aboim
I changed the fields name as suggested but no sucess!! Any further clues? Thanks Carlos Aboim 2009/8/12 Yarko Tymciurak > Since you are having troubles, can I suggest you rename the following: > > registos.obra.cliente > and > registos.obra.vendedor > > to > > registos.obra.cliente_id > registo

[web2py:28414] Re: images in css

2009-08-12 Thread Sebastian E. Ovide
following in http://code.google.com/p/web2py/issues/detail?id=48 On Wed, Aug 12, 2009 at 12:09 AM, mdipierro wrote: > I never had this problem. > If the css is in : /init/static/filename.css, then url(images/ > myimage.jpg) should translate in /init/static/images/myimage.jpg > > which browser ar

[web2py:28413] Re: dropdown list from model references doesn't work

2009-08-12 Thread Yarko Tymciurak
Since you are having troubles, can I suggest you rename the following: registos.obra.cliente and registos.obra.vendedor to registos.obra.cliente_id registos.obra.vendedor_id This is because this field IS a foreign key, which holds the cliente.id Now you have TWO fields, "cliente" - one a

[web2py:28412] Chceking the url

2009-08-12 Thread max
I am using to dynamically load the pictures. Sometimes the pictures are not for some ids. Is there any way to chcke if the picture is available using the request? Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google G

[web2py:28411] Re: dropdown list from model references doesn't work

2009-08-12 Thread Carlos Aboim
I've you seen my dpaste?? My models are like this http://dpaste.com/hold/78289/ Is the field 'vendedor' in the table 'obras' that I am having trouble! May I use *required* parameter in the 'vendedor' field instead? It seams so linear but I cant make it work! thank you C Aboim 2009/8/12 mdipie

[web2py:28410] Re: where for art thou, oh session attribute?

2009-08-12 Thread rb
Well the problem that I am having with all of this is the notion of the svr *reconstituting* the state upon each request. Sure, the svr must always have to identify the client and shuttle the request to the desired functionality, but I didn't know the operating paradigm here was that the "session

[web2py:28409] Re: where for art thou, oh session attribute?

2009-08-12 Thread rb
A very good explanation. I think I get it now. In the bad ol' static webpage days, a webserver's job was to figure out the mapping from the requested url to the static file and then send that file back. Later, dynamic webpages were created "on the fly" by processes which were fed request parameter

[web2py:28408] Re: dropdown list from model references doesn't work

2009-08-12 Thread mdipierro
The only things I can think of are: 1) requires is mispelled 2) requires is overwritten somewhere else Can you post the code? On Aug 12, 3:23 am, Carlos Aboim wrote: > Hi, > In fact I was using requires=[IS_IN_SET(…)] > > Changed to requires=IS_IN_SET(), but still doesn't work!! > > help!!

[web2py:28407] Re: dropdown list from model references doesn't work

2009-08-12 Thread Carlos Aboim
Hi, In fact I was using requires=[IS_IN_SET(…)] Changed to requires=IS_IN_SET(), but still doesn't work!! help!! Thanks Carlos Aboim 2009/8/11 mdipierro > > requires=IS_IN_SET() > > validation+dropdown > > requires=[IS_IN_SET()] > > validation but not dropdown. ;-) > > > > On Aug

[web2py:28406] Re: sqlite cascade support?

2009-08-12 Thread Yarko Tymciurak
It apprears that sqlite does not support this - see http://www.sqlite.org/omitted.html On Wed, Aug 12, 2009 at 2:41 AM, Richard wrote: > > hello, > > Does sqlite support cascade or am I doing something wrong? > > I have these tables: > db.define_table('A', >db.Field('B', db.B, ondelete='CAS

[web2py:28405] sqlite cascade support?

2009-08-12 Thread Richard
hello, Does sqlite support cascade or am I doing something wrong? I have these tables: db.define_table('A', db.Field('B', db.B, ondelete='CASCADE'), ) db.define_table('B', db.Field('name'), ) And when I run db(db.A.id > 0).delete(), the B's are still there. Richard --~--~-~--~-

[web2py:28404] Re: where for art thou, oh session attribute?

2009-08-12 Thread mdipierro
anyway, the poit raised by rb has some consequences we may want to think about. 1) because clients ignore cookies this means there is a proliferation of session files that are lost unless the xmlrpc server is told explicitly to forget sessions. This means if one does not need sessions one should

[web2py:28403] Re: feature request: activate the feature request template

2009-08-12 Thread Yarko Tymciurak
We were going to migrate when mercurial support kicked in; this started in June, but was still getting the kinks worked out. While Massimo is off on Holiday before the semester starts, I was going to try to migrate web2conf to google code / mercurial and determine it's readiness; We should know

[web2py:28402] Re: feature request: activate the feature request template

2009-08-12 Thread mdipierro
On Aug 12, 2:09 am, Richard wrote: > On Aug 12, 2:46 pm, mdipierro wrote: > > > This one? > > >http://w2popenid.appspot.com/init/default/wiki/main > > I guess that's the one you referred to before. > In a previous thread you said "We will soon have an API like stack > overflow does." Is this sti

[web2py:28401] Re: where for art thou, oh session attribute?

2009-08-12 Thread Yarko Tymciurak
Ahem "Knock, knock!" --- says the browser... "Whose there?" --- says the server... If the request (browser) identifies itself with information given it by the server as a continuation from a recent identification, then the normally stateless nature of the web get's state, established by t

[web2py:28400] Re: where for art thou, oh session attribute?

2009-08-12 Thread mdipierro
Normally when you visit a web page web2py creates a session, stores the session in a file and associates the file to a session id. It sends the session id back to the client in a cookie. When the client makes other requests, the clients sends the cookie back and the server can retrieve the proper

[web2py:28399] Re: Mobile success story

2009-08-12 Thread Yarko Tymciurak
Can you describe the app in a sentence or two? Is it blackberry native (jython?)? Is it a mobile client, but connected to a remote server? On Tue, Aug 11, 2009 at 8:49 PM, mr.freeze wrote: > > I just replaced an asp.net mileage tracker app targeting our > Blackberry users with a web2py equivale

[web2py:28398] Re: feature request: activate the feature request template

2009-08-12 Thread Richard
On Aug 12, 2:46 pm, mdipierro wrote: > This one? > > http://w2popenid.appspot.com/init/default/wiki/main I guess that's the one you referred to before. In a previous thread you said "We will soon have an API like stack overflow does." Is this still going to happen? Also if you were waiting on