[web2py] markmin with nested ul

2011-07-04 Thread Martin Weissenboeck
Does MARKMIN create something like ul li abc /li li def ul li12/li li34/li /ul /li /ul Regards, Martin

[web2py] Re: Error on LOAD() in trunk

2011-07-04 Thread LightOfMooN
+1 to that. I have 1.97.1 and it has the problem with request.vars in LOAD(ajax=False) Then I install d4c2d8d15bb1 rev. from trunk. checking request.vars in LOAD(ajax=False) doesn't rises an error anymore, but there was no vars in all LOAD(ajax=False) functions. So, I think, current request

Re: [web2py] customizing instant press layout

2011-07-04 Thread Martín Mulone
For some kind of reason google project delete all the info in the wiki, all about this was in the wiki. But take a look to views/styles/default is the default style, you have folder view/ (when you are watching a post), index/ (main index page) ... Inside of this folder you have footer.html,

[web2py] Call functions periodically from WEB2PY at short time basis (like 0.05 ... 5 seconds)

2011-07-04 Thread Valter Foresto
It is possible to call from inside WEB2PY a 'short user function' based on time tick periodically (like any 0.05 ... 5 seconds) ? This functionality can be very usefull to collect data from the field (for example from equipments on the Ethernet LAN or on the Internet or simply attached to the

[web2py] Re: Call functions periodically from WEB2PY at short time basis (like 0.05 ... 5 seconds)

2011-07-04 Thread Massimo Di Pierro
You should run a background process that does it white True: sleep(5) On Jul 4, 7:47 am, Valter Foresto valter.fore...@gmail.com wrote: It is possible to call from inside WEB2PY a 'short user function' based on time tick periodically (like any 0.05 ... 5 seconds) ? This

[web2py] R: Re: Call functions periodically from WEB2PY at short time basis (like 0.05 ... 5 seconds)

2011-07-04 Thread Valter Foresto
I searched the WEB2PY group before and I already tryed this method that you suggested on a previous thread. I used: web2py -a yourpassword -i 127.0.0.1 -p 8000 -S yourapp -M -R applications/yourapp/private/yourscript.py with applications/yourapp/private/yourscript.py that do:

[web2py] R: Re: Call functions periodically from WEB2PY at short time basis (like 0.05 ... 5 seconds)

2011-07-04 Thread Valter Foresto
The section 'Background Processes and Task Queueshttp://www.web2py.com/book/default/chapter/04?search=background+process#Background-Processes-and-Task-Queues' in the Core chapter of the Book report exacly what you mean and suggest. I'm trying ... thanks Massimo.

Re: [web2py] talks

2011-07-04 Thread Jonathan Lundell
On Jul 3, 2011, at 10:44 PM, Massimo Di Pierro wrote: I am giving two talks in California next week (July 7 at LBL) and the week after (July 13 at Python Users Group). Let me know if some of you will be there. I can send more details as they tell me. Please do. Where is the PUG meeting?

[web2py] R: Re: Call functions periodically from WEB2PY at short time basis (like 0.05 ... 5 seconds)

2011-07-04 Thread Valter Foresto
I follow the section 'Background Processes and Task Queueshttp://www.web2py.com/book/default/chapter/04?search=background+process#Background-Processes-and-Task-Queues' in the Core chapter of the Book, and launch using: python web2py.py -a commsec -i 127.0.0.1 -p 8000 -S ALTECH -M -N -R

[web2py] Re: R: Re: Call functions periodically from WEB2PY at short time basis (like 0.05 ... 5 seconds)

2011-07-04 Thread Massimo Di Pierro
You need two start web2py twice The backgroud process: python web2py.py -S ALTECH -M -N -R applications/ALTECH/private/ my_loop.py Normal we2py: python web2py.py -a commsec -i 127.0.0.1 -p 8000 You want to be two separate processes so they do not interfere with each other. On Jul 4, 9:07 am,

[web2py] Re: talks

2011-07-04 Thread Massimo Di Pierro
It is somewhere in San Francisco. I only have 20minutes and I am told to expect a tough crowd (mostly Django people). I will be driving to SF from Lake Tahoe just for that. What should I cover? Massimo On Jul 4, 9:03 am, Jonathan Lundell jlund...@pobox.com wrote: On Jul 3, 2011, at 10:44 PM,

[web2py] Re: Error on LOAD() in trunk

2011-07-04 Thread Massimo Di Pierro
I just made some changes in trunk. Can you give it a try? On Jul 4, 3:45 am, LightOfMooN vladsale...@yandex.ru wrote: +1 to that. I have 1.97.1 and it has the problem with request.vars in LOAD(ajax=False) Then I install d4c2d8d15bb1 rev. from trunk. checking request.vars in LOAD(ajax=False)

[web2py] Field type

2011-07-04 Thread mart
Can dal guess field type even if not explicit? I.e. if I have a Field like Field('myString') but a script ends up inserting something that looks like a list, how can I have a default check? something like:

[web2py] Re: Field type

2011-07-04 Thread mart
woops, sorry so something like: if isinstance(Field,list): blala elif isinstance(Field,str): blala else:blabla thanks, Mart :) On Jul 4, 11:15 am, mart msenecal...@gmail.com wrote: Can dal guess field type even if not explicit? I.e. if I have a Field like Field('myString') but a script

Re: [web2py] how to implement database tables with one level of indirection?

2011-07-04 Thread Richard Vézina
I think you need inheritance : http://web2py.com/book/default/chapter/06#Table-Inheritance Richard On Sun, Jul 3, 2011 at 1:15 AM, Luis Goncalves lgoncal...@gmail.com wrote: Hello! How do I make a database table where the fields are defined by another table? For example, suppose some

[web2py] Re: Field type

2011-07-04 Thread Massimo Di Pierro
f = Field('myString') print f.type if isinstance(f.type,str) and f.type=='string': .. if isinstance(f.type,str) and f.type=='text': .. if isinstance(f.type,str) and f.type=='upload': .. if isinstance(f.type,str) and f.type=='blob': .. .. if not isinstance(f.type,str): # custom field probably

[web2py] Re: Error on LOAD() in trunk

2011-07-04 Thread pbreit
That works for me but my usage is pretty simple...just one arg, an int.

[web2py] Re: Field type

2011-07-04 Thread mart
ah ha! thank you very much! :) On Jul 4, 11:46 am, Massimo Di Pierro massimo.dipie...@gmail.com wrote: f = Field('myString') print f.type if isinstance(f.type,str) and f.type=='string': .. if isinstance(f.type,str) and f.type=='text': .. if isinstance(f.type,str) and f.type=='upload':

[web2py] Re: talks

2011-07-04 Thread pbreit
I should be able to make it but I can't find any info about the meeting. What user group is it?

[web2py] Re: plupload and web2py

2011-07-04 Thread mr.freeze
I just changed all references to the 'flash' class in those files and base.css to 'web2py_flash' to make it unique. Wasn't sure if you wanted a patch since the change was so small. On Jul 3, 9:12 pm, Massimo Di Pierro massimo.dipie...@gmail.com wrote: Notice that flash is only used in

[web2py] Re: Error on LOAD() in trunk

2011-07-04 Thread LightOfMooN
No more copy error, but also no vars of current request passing to LOAD(ajax=False) =\ On 4 июл, 20:14, Massimo Di Pierro massimo.dipie...@gmail.com wrote: I just made some changes in trunk. Can you give it a try? On Jul 4, 3:45 am, LightOfMooN vladsale...@yandex.ru wrote: +1 to that.

[web2py] R: Re: R: Re: Call functions periodically from WEB2PY at short time basis (like 0.05 ... 5 seconds)

2011-07-04 Thread Valter Foresto
Many thanks Massimo, now I understand and positively checked your suggestion. All works fine and I can confirm that : *WEB2PY can be used to do acquisition, processing, storage and presentation of field data over the web and the Internet * *WEB2PY is a great Python based Web Framework

[web2py] POS/Sales with hybrid interfaces

2011-07-04 Thread Alfonso de la Guarda
Hello, I recently released version 1.5 of SISVENTI, adding a web-based interface web2py. SISVENTI is a sales and warehouse operation very simple but very powerful and extensible with hybrid interface with web2py (web) and curses (text). You can review the project which was launched in 2001 and

[web2py] Added filtering in autocomplete

2011-07-04 Thread Alfonso de la Guarda
Hi, Because SISVENTI, i have made some minor changes to the autocomplete widget adding filtering, is possible add to the main branch? https://bitbucket.org/alfonsodg/sisventi/ Thanks, Saludos, Alfonso de la Guarda Centro Open Source(COS) http://www.cos-la.net

[web2py] Re: Call functions periodically from WEB2PY at short time basis (like 0.05 ... 5 seconds)

2011-07-04 Thread Mengu
go ahead and use celery. On Jul 4, 3:47 pm, Valter Foresto valter.fore...@gmail.com wrote: It is possible to call from inside WEB2PY a 'short user function' based on time tick periodically (like any 0.05 ... 5 seconds) ? This functionality can be very usefull to collect data from the field

Re: [web2py] Re: Cannot operate on a closed database

2011-07-04 Thread Pierre Thibault
2011/6/26 Massimo Di Pierro massimo.dipie...@gmail.com I found the problem http://groups.google.com/group/web2py/msg/aaa803e14404fc62 This is not a problem with web2py. @ Pierre, I did found a non-related problem with web2py. models/meteo.py uses custom_import to import modules/meteo.py.

[web2py] Re: Cannot operate on a closed database

2011-07-04 Thread Pierre Thibault
2011/7/4 Massimo Di Pierro massimo.dipie...@gmail.com yes. Not sure what the error should be I created a ticket. Can you assign it to me? I think this is low priority. I take a look later. http://code.google.com/p/web2py/issues/detail?id=325 A+ - Pierre My blog and profile

Re: [web2py] Re: talks

2011-07-04 Thread Nick Arnett
On Mon, Jul 4, 2011 at 7:13 AM, Massimo Di Pierro massimo.dipie...@gmail.com wrote: It is somewhere in San Francisco. I only have 20minutes and I am told to expect a tough crowd (mostly Django people). I will be driving to SF from Lake Tahoe just for that. What should I cover? I should be

[web2py] Re: talks

2011-07-04 Thread Massimo Di Pierro
Thanks. WIll send more info when I know. On Jul 4, 2:31 pm, Nick Arnett nick.arn...@gmail.com wrote: On Mon, Jul 4, 2011 at 7:13 AM, Massimo Di Pierro massimo.dipie...@gmail.com wrote: It is somewhere in San Francisco. I only have 20minutes and I am told to expect a tough crowd (mostly

[web2py] Re: Cannot operate on a closed database

2011-07-04 Thread Pierre Thibault
2011/7/4 Massimo Di Pierro massimo.dipie...@gmail.com I do not see an option to assign a ticket. You should be able to write, comment and close it anyway. Massimo I can only comment. I cannot change the status or the priority. I don't why. I have these options for my own Google projects

[web2py] Re: Cannot operate on a closed database

2011-07-04 Thread Massimo Di Pierro
email me when you want to change the status and I will. Not bit trouble. On Jul 4, 2011, at 2:50 PM, Pierre Thibault wrote: 2011/7/4 Massimo Di Pierro massimo.dipie...@gmail.com I do not see an option to assign a ticket. You should be able to write, comment and close it anyway. Massimo

[web2py] trailling space on crud.update form for field string type that is part of sql standard seems not logic

2011-07-04 Thread Richard Vézina
Hello, Is Web2py suppose to follow SQL standard on trailling space for string type field on crud.update?? If I update a record containing field with string type, I got trailling space restored from the database in my field form... On submit it cause problem since I transform to int() for

[web2py] Re: Error on LOAD() in trunk

2011-07-04 Thread LightOfMooN
I made little app to test it: http://ifolder.ru/24534498 there should be test string, if to click on test button On 4 июл, 22:19, LightOfMooN vladsale...@yandex.ru wrote: No more copy error, but also no vars of current request passing to LOAD(ajax=False) =\ On 4 июл, 20:14, Massimo Di Pierro

[web2py] Re: Call functions periodically from WEB2PY at short time basis (like 0.05 ... 5 seconds)

2011-07-04 Thread Francisco Costa
Is Celery compatible or easy to use with web2py? On Jul 4, 6:35 pm, Mengu whalb...@gmail.com wrote: go ahead and use celery. On Jul 4, 3:47 pm, Valter Foresto valter.fore...@gmail.com wrote: It is possible to call from inside WEB2PY a 'short user function' based on time tick

[web2py] Re: Error on LOAD() in trunk

2011-07-04 Thread Anthony
Previously, there was a bug in LOAD -- it takes an argument called 'vars', which it passes to the component as request.vars. However, the 'vars' argument was getting ignored, and instead, the request.vars of the parent page was getting passed to the component. That has been fixed, but now you

[web2py] Re: Error on LOAD() in trunk

2011-07-04 Thread Anthony
On Monday, July 4, 2011 5:51:04 PM UTC-4, Anthony wrote: The same goes for request.args -- if you want the args for the component to be the same as those for the parent page, you have to add args=request.args to the LOAD call. I should point out, this has always been the behavior for

[web2py] why doesn't INPUT _type='checkbox' return values of True or False, instead of 'on' or None?

2011-07-04 Thread Luis Goncalves
Hello! It seems to me that the behavior of checkboxes is different and non-standard from the rest of input types, causing one to handle it as a special case (when trying to automate input field processing). In my application, an admin can create profile forms through a friendly interface.

Re: [web2py] how to implement database tables with one level of indirection?

2011-07-04 Thread Luis Goncalves
Hello Richard! I looked at this, but wasn't sure how it could help -- what I need is a way for a (non-technical) admin to create profile forms with arbitrary fields (through a friendly web interface), and then users to be able to view and edit their (run-time reconfigurable) profiles. At any

Re: [web2py] how to implement database tables with one level of indirection?

2011-07-04 Thread Richard Vézina
Maybe you could find some inspiration from this project for Django : http://code.google.com/p/django-dynamic-formset/ You need to install Django to test it... What you seems to do is adding an arbitrary number of input for a given field... Following good database design pratice you will

Re: [web2py] how to implement database tables with one level of indirection?

2011-07-04 Thread Luis Goncalves
Thanks for the links!! Django dynamic formsets seems powerful! When I first started off, I investigated using django, but found it very difficult. Web2py is so much easier to use (especially with the clear manual, and one click install with working apps ('Welcome'))!!! Maybe I'll end up

[web2py] How to call user/register with pre-defined fields (name, email)?

2011-07-04 Thread Luis Goncalves
Hello! The website I am developing will be invitation only: - a user gets an email invitation to register with a link to the site (with an identifying token in the link) - the link takes the user to the website, where he can register - to register, he need only define the password, since the

Re: [web2py] how to implement database tables with one level of indirection?

2011-07-04 Thread Richard Vézina
It surely a missing feature... Richard On Mon, Jul 4, 2011 at 8:30 PM, Luis Goncalves l...@vision.caltech.eduwrote: Thanks for the links!! Django dynamic formsets seems powerful! When I first started off, I investigated using django, but found it very difficult. Web2py is so much easier

Re: [web2py] How to call user/register with pre-defined fields (name, email)?

2011-07-04 Thread Richard Vézina
This section of the book could help : http://www.web2py.com/book/default/chapter/08?search=setting#Settings-and-Messages Richard On Mon, Jul 4, 2011 at 8:37 PM, Luis Goncalves lgoncal...@gmail.com wrote: Hello! The website I am developing will be invitation only: - a user gets an email

Re: [web2py] How to call user/register with pre-defined fields (name, email)?

2011-07-04 Thread David J
You can easily do this. Just think its the reset password function with a twist. On Jul 4, 2011 8:38 PM, Luis Goncalves lgoncal...@gmail.com wrote: Hello! The website I am developing will be invitation only: - a user gets an email invitation to register with a link to the site (with an

Re: [web2py] How to call user/register with pre-defined fields (name, email)?

2011-07-04 Thread pbreit
Check this recent thread: https://groups.google.com/d/topic/web2py/QZ11R6eYQdM/discussion

Re: [web2py] how to implement database tables with one level of indirection?

2011-07-04 Thread Bruno Rocha
The web2py app wizard has a Dynamic model creator, may be you can take a look in to the wizard code. And fork as a plugin. On Mon, Jul 4, 2011 at 9:38 PM, Richard Vézina ml.richard.vez...@gmail.comwrote: It surely a missing feature... Richard On Mon, Jul 4, 2011 at 8:30 PM, Luis Goncalves

Re: [web2py] How to call user/register with pre-defined fields (name, email)?

2011-07-04 Thread Luis Goncalves
Thanks, pbreit, for the link! Long thread!!! I read it all, but am still unclear how to force registration with a pre-defined name and email (I'll have DB entries such that each unique invite token is associated with a pre-defined name and email). I was hoping to do something like this: def

Re: [web2py] How to call user/register with pre-defined fields (name, email)?

2011-07-04 Thread Luis Goncalves
That's a great idea, David! I think I need to know, then: - how to programmatically create registered users - how to programmatically send them the 'reset password' link. Ideally, the person that can invite users will have a simple webpage form where they can input names and email addresses,

[web2py] Re: Error on LOAD() in trunk

2011-07-04 Thread LightOfMooN
Thank you! Now it works fine. On 5 июл, 03:53, Anthony abasta...@gmail.com wrote: On Monday, July 4, 2011 5:51:04 PM UTC-4, Anthony wrote: The same goes for request.args -- if you want the args for the component to be the same as those for the parent page, you have to add args=request.args

[web2py] Change base directory

2011-07-04 Thread Junaid P V
Hi, I think I have made web2py working on my hosting account, see: http://junaidpv.in/w2p/welcome But web2py is assuming it is working on document root, actually I installed it on /w2p sub directory. web2py presents every anchors and files (.js, images, etc) in page based to document root