[web2py] Re: customizing registration layout

2010-12-20 Thread mdipierro
yes. edit users.html and use custom form: {{=form.custom.begin}} ... {{=form.custom.widget.first_name}} ... {{=form.custom.end}} On Dec 21, 12:57 am, Plumo wrote: > I want to change the layout of the registration form. > > I saw a few threads about this topic from a half year back. The main prob

[web2py] Re: web2py 1.90.6 is OUT

2010-12-20 Thread mdipierro
The problem is this field: Field("publishers_details","string", length=1024) , The new dal thinks (incorrecly) this is too much. I have now fixed it in trunk and soon post a new stable version with the fix. Massimo On Dec 21, 12:57 am, Johann Spies wrote: > On 20 December 2010 19:35, mdipierr

[web2py] Re: csvstudio: for those who need to handle csv files

2010-12-20 Thread mdipierro
new version posted does type guessing and generate models with formats: $ python csvstudio.py -a -m 0 wrote: > +1

[web2py] Re: it case you missed it...

2010-12-20 Thread mdipierro
Because I do not want closed source commercial derivatives. I am against people stealing other people work. On Dec 21, 12:45 am, pbreit wrote: > I guess I still support considering a permissive license (ie, BSD or MIT). > I'm curious why folks prefer GPL? Does a non-GPL license make it more > dif

[web2py] Re: web2py 1.90.6 is OUT

2010-12-20 Thread mdipierro
which database are you using? On Dec 21, 12:57 am, Johann Spies wrote: > On 20 December 2010 19:35, mdipierro wrote: > > > web2py 1.90.6 is OUT > > > please check it out > > Upgrading from 1.90.4 broke something: > > Traceback (most recent call last): >   File "/home/js/web2py/gluon/restricted.p

[web2py] customizing registration layout

2010-12-20 Thread Plumo
I want to change the layout of the registration form. I saw a few threads about this topic from a half year back. The main problem was dealing with the password2 field. Is there a better way to do this now, rather than recreating auth.register?

Re: [web2py] web2py 1.90.6 is OUT

2010-12-20 Thread Johann Spies
On 20 December 2010 19:35, mdipierro wrote: > web2py 1.90.6 is OUT > > please check it out > > Upgrading from 1.90.4 broke something: Traceback (most recent call last): File "/home/js/web2py/gluon/restricted.py", line 188, in restricted exec ccode in environment File "/home/js/web2py/app

[web2py] Re: it case you missed it...

2010-12-20 Thread pbreit
I guess I still support considering a permissive license (ie, BSD or MIT). I'm curious why folks prefer GPL? Does a non-GPL license make it more difficult to incorporate GPL code into a project? Have there been situations where permissive licensing compromised a project? I realize many don't fee

Re: [web2py] Re: input time-interval in web2py

2010-12-20 Thread Sahil Arora
thanks On Tue, Dec 21, 2010 at 6:50 AM, mdipierro wrote: > The easyest way is this: > > class TimeInterval(object): >def __init__(self,error_message='not a valid time interval'): >self.error_message=error_message >def call(self,value): >try: > a,b=[int(x.strip

[web2py] Re: it case you missed it...

2010-12-20 Thread mdipierro
We have continued this discussion about the license on the web2py- developers list. It is a complex issue. There is one proposal on the table: http://groups.google.com/group/web2py-developers/msg/863ddc9be36b723b http://groups.google.com/group/web2py-developers/msg/b251cf4aa3ce4ba9 based o

[web2py] Re: help desk app

2010-12-20 Thread mdipierro
You are right... I will change the name as bugs are fixed, when I post it on appliances. On Dec 20, 11:24 pm, Phyo Arkar wrote: > Hello Massimo, > > Helpdesk App is something you usually  see on IT Support/ Hosting > /Callcenters . If you have a web hosting on a popular hosting sites , and if > y

Re: [web2py] Re: help desk app

2010-12-20 Thread Phyo Arkar
Hello Massimo, Helpdesk App is something you usually see on IT Support/ Hosting /Callcenters . If you have a web hosting on a popular hosting sites , and if you had requested support you will see it. Here is the most used (and popular) help desk system written in perl .. you can try it there ht

[web2py] Re: How to do this in web2py..?

2010-12-20 Thread pbreit
I wonder if a NoSQL DB like Mongo or Couch would work?

[web2py] Re: How to do this in web2py..?

2010-12-20 Thread Fabiano
Hi Villas, yes, I know this concept, I have a good background in computer science, but it doesn't fit here, as my data is not hierarchical. Anyway, thanks for the suggestion and the links, that Troels articles seems to be interesting, I will take a look on that sometime. My first e-mail was very

Re: [web2py] Re: Python Shell on Chrome

2010-12-20 Thread Bruno Rocha
I am testing the new shell, it is too much faster! I'll try to host an app on GAE to expose the shell to the public (safe?) -- Bruno Rocha http://about.me/rochacbruno/bio

[web2py] Re: country / state / city of the current visitor?

2010-12-20 Thread Plumo
Or you could use this service and cache the values: http://www.geobytes.com/IpLocator.htm?GetLocation&template=json.txt&ipaddress=203.30.195.10

[web2py] Re: Python Shell on Chrome

2010-12-20 Thread mdipierro
Actually it did not work but it does now. ;-) On Dec 20, 10:04 pm, Bruno Rocha wrote: > Nice! I'll try it now! > > Is it possible to expose the shell to the public on GAE? > > 2010/12/21 mdipierro > > > Anyway... I merged the google shell with web2py. > > We now have a new shell: > > >http://12

Re: [web2py] Re: Python Shell on Chrome

2010-12-20 Thread Bruno Rocha
Nice! I'll try it now! Is it possible to expose the shell to the public on GAE? 2010/12/21 mdipierro > Anyway... I merged the google shell with web2py. > We now have a new shell: > > http://127.0.0.1:8000/admin/shell/index/ > > should work better then before and should work on GAE too. Please g

[web2py] Re: Python Shell on Chrome

2010-12-20 Thread mdipierro
Anyway... I merged the google shell with web2py. We now have a new shell: http://127.0.0.1:8000/admin/shell/index/ should work better then before and should work on GAE too. Please give it a try.

[web2py] Re: party time

2010-12-20 Thread dlypka
I'm passing through Chicago airport tomorrow. So I will be thinking of how close I am to web2py HQ. I've been working on a treeview in web2py so that will have to do as my XMAS tree for this year. Happy Holidays! - Dave Lypka. On Dec 20, 10:17 pm, Andrew Thompson wrote: > On 12/20/2010 10:14 PM,

Re: [web2py] party time

2010-12-20 Thread Andrew Thompson
On 12/20/2010 10:14 PM, Andrew Thompson wrote: On 12/20/2010 3:21 PM, Richard Vézina wrote: We could set a web2py app with livestream with webcam then we could all drink beer together! A while back, a buddy of mine linked me a site that did live web conferences. Seems like it added a new vide

Re: [web2py] party time

2010-12-20 Thread Andrew Thompson
On 12/20/2010 3:21 PM, Richard Vézina wrote: We could set a web2py app with livestream with webcam then we could all drink beer together! A while back, a buddy of mine linked me a site that did live web conferences. Seems like it added a new video box for each participant right onto the exist

Re: [web2py] Re: Python Shell on Chrome

2010-12-20 Thread Richard Vézina
Hahaha! I didn't want to put #1 after my name... Really funny key mistake trying to TAB + Enter to email in gmail ;-) Richard On Mon, Dec 20, 2010 at 10:11 PM, Richard Vézina < ml.richard.vez...@gmail.com> wrote: > It works for me with chrome 8.0.552.215 beta > > Richard#1 > > > On Mon, Dec 20,

Re: [web2py] Re: Python Shell on Chrome

2010-12-20 Thread Richard Vézina
It works for me with chrome 8.0.552.215 beta Richard#1 On Mon, Dec 20, 2010 at 9:29 PM, mdipierro wrote: > Here is how it works > > each statement may result in the definition of a new object. > > a=3 > def b(x): return x > > a is pickalble, b in unpickable. So a is serialized as part of >

[web2py] Re: reset password

2010-12-20 Thread pk
or better to customize it. for example: user_name: email: (button: reset) On 21 Dez., 04:00, pk wrote: > hi together, > > i hope somebody can help me. > > can i reset the password without the default/user/ > request_reset_password ? > i will create an own controller for this for example reset/ >

[web2py] reset password

2010-12-20 Thread pk
hi together, i hope somebody can help me. can i reset the password without the default/user/ request_reset_password ? i will create an own controller for this for example reset/ request_reset_password is it possible? thanks peter

[web2py] Re: reload a div

2010-12-20 Thread mdipierro
{{=variable}} update the div On Dec 20, 8:25 pm, Rick wrote: > Hi, > > How to reload/update a div tag as that below with AJAX? > > {{=variable}} > update the div > > Thanks in advance for replies.

[web2py] Re: Python Shell on Chrome

2010-12-20 Thread mdipierro
Here is how it works each statement may result in the definition of a new object. a=3 def b(x): return x a is pickalble, b in unpickable. So a is serialized as part of globals(). Objects that are defined an not pickable are re-evaluated at every statement. That means every time you type one

[web2py] Error in web2py book

2010-12-20 Thread Martin H
Hi, I believe there is a mistake in the web2py book. The last line of the 'Using Replicated Databases Servers' section on http://web2py.com/book/default/chapter/11#One-Step-Production-Deployment currently reads: where 1,2,3 are replicated servers and 3,4,5 are slaves. It should be the other

[web2py] reload a div

2010-12-20 Thread Rick
Hi, How to reload/update a div tag as that below with AJAX? {{=variable}} update the div Thanks in advance for replies.

[web2py] Re: Python Shell on Chrome

2010-12-20 Thread mdipierro
This works and has source http://shell.appspot.com/ On Dec 20, 8:22 pm, mdipierro wrote: > It does not work for me. whatever I type the output is "...". > > I do not know how they maintain a state. Many things like classes and > function definitions are not serializable. > > On Dec 20, 6:21 pm,

[web2py] Re: Python Shell on Chrome

2010-12-20 Thread mdipierro
It does not work for me. whatever I type the output is "...". I do not know how they maintain a state. Many things like classes and function definitions are not serializable. On Dec 20, 6:21 pm, Bruno Rocha wrote: > This is running on GAE : languageshells.appspot.com > > I really want to know ho

[web2py] Re: input time-interval in web2py

2010-12-20 Thread mdipierro
The easyest way is this: class TimeInterval(object): def __init__(self,error_message='not a valid time interval'): self.error_message=error_message def call(self,value): try: a,b=[int(x.strip()) for x in value.split(',')] return (a*24+b,None)

Re: [web2py] Powertable remarks

2010-12-20 Thread Bruno Rocha
Hi Ivan, Thanks for testing the plugin. I am finishing some features that will be added this week Filtering by fields Edit button opens a default crud.update form in details Add button at the top opens a crud.create form Progressive scrolling Datatables updated to version 1.75 Internet Explorer b

[web2py] input time-interval in web2py

2010-12-20 Thread Sahil Arora
I want to take input time to complete a task in format no. of days,hours (time interval) in web2py. Is there any defined field,type for this in SQLField. time module in python allows only max 24 hours time.

Re: [web2py] Re: [tip] Python Shell on Chrome

2010-12-20 Thread Richard Vézina
So Cool! Richard On Mon, Dec 20, 2010 at 7:21 PM, Bruno Rocha wrote: > This is running on GAE : languageshells.appspot.com > > I really want to know how to do something like this to web2py API. > > 2010/12/20 Bruno Rocha > > >> Python Shell for Chrome >> >> >> https://chrome.google.com/webstor

[web2py] Re: [tip] Python Shell on Chrome

2010-12-20 Thread Bruno Rocha
This is running on GAE : languageshells.appspot.com I really want to know how to do something like this to web2py API. 2010/12/20 Bruno Rocha > > Python Shell for Chrome > > > https://chrome.google.com/webstore/detail/gdiimmpmdoofmahingpgabiikimjgcia?hl=en-US# > > > Useful to test small code bl

Re: [web2py] Powertable remarks

2010-12-20 Thread Ivan Matveev
Thank you Bruno for this beautiful SQLTABLES drop in replacement. Joined Rows, virtual fields on Rows work! You saved my week. Looks great and I love client side sorting and searching. On small(hundreds of rows) its faster than server side.

Re: [web2py] Re: Getting the focus of the tk gui

2010-12-20 Thread Manu
Many thx On Mon, Dec 20, 2010 at 11:58 PM, mdipierro wrote: > Since clicking not automatically starts the server, I changed > the order of the entry widgets. I hope this ok. > > On Dec 20, 5:57 pm, mdipierro wrote: >> Uploading to trunk, thanks >> >> On Dec 20, 5:38 pm, Manu wrote: >> >> > R

[web2py] Re: help desk app

2010-12-20 Thread Plumo
hi Massimo, if I understand correctly what you created is for managing web2py tickets, while a helpdesk app is for managing client inquiries. So perhaps rename it to avoid confusion. Noticed an error: File "/home/web2py/devel/applications/helpdesk/views/plugin_wiki/page_edit.html", line 99

[web2py] [tip] Python Shell on Chrome

2010-12-20 Thread Bruno Rocha
Python Shell for Chrome https://chrome.google.com/webstore/detail/gdiimmpmdoofmahingpgabiikimjgcia?hl=en-US# Useful to test small code blocks. (would be great to have an online web2py API for testing, I tried to host an exposed web shell to GAE, bur fails)

[web2py] Re: SSLError: The read operation timed out on file upload?

2010-12-20 Thread Dan
Yes. On Dec 21, 12:59 am, mdipierro wrote: > are you going over ssl and using the python ssl? > > On Dec 20, 5:35 pm, Dan wrote: > > > > > I have updated to the latest version but I'm still getting the error. > > I think the error has nothing to do with web2py but with the rocket > > webserver.

[web2py] Re: SSLError: The read operation timed out on file upload?

2010-12-20 Thread mdipierro
are you going over ssl and using the python ssl? On Dec 20, 5:35 pm, Dan wrote: > I have updated to the latest version but I'm still getting the error. > I think the error has nothing to do with web2py but with the rocket > webserver.  What do you think? > > web2py™       Version 1.90.6 (2010-12-

[web2py] Re: Getting the focus of the tk gui

2010-12-20 Thread mdipierro
Since clicking not automatically starts the server, I changed the order of the entry widgets. I hope this ok. On Dec 20, 5:57 pm, mdipierro wrote: > Uploading to trunk, thanks > > On Dec 20, 5:38 pm, Manu wrote: > > > Right after this line : > > self.password = Tkinter.Entry(self.root, show='*'

Re: [web2py] Re: help desk app

2010-12-20 Thread Richard Vézina
Does it work under 1.88.2? I will test with the last version... Richard On Mon, Dec 20, 2010 at 6:15 PM, mdipierro wrote: > I forgot to pass the settings parameters to the mail.settings > in db.py. > > 1 is to low. Try 60 seconds. > > > > On Dec 20, 3:45 pm, Richard Vézina > wrote: >

[web2py] Re: Getting the focus of the tk gui

2010-12-20 Thread mdipierro
Uploading to trunk, thanks On Dec 20, 5:38 pm, Manu wrote: > Right after this line : > self.password = Tkinter.Entry(self.root, show='*') > which is roughky after line 204 for my version (1.89.5). The the > section dealing with the password Entry widget. > > Cheers, > > On Mon, Dec 20, 2010 at 11

Re: [web2py] Re: Getting the focus of the tk gui

2010-12-20 Thread Manu
Right after this line : self.password = Tkinter.Entry(self.root, show='*') which is roughky after line 204 for my version (1.89.5). The the section dealing with the password Entry widget. Cheers, On Mon, Dec 20, 2010 at 11:16 PM, mdipierro wrote: > OK, where exactly do you insert them? > > On

[web2py] Re: SSLError: The read operation timed out on file upload?

2010-12-20 Thread Dan
I have updated to the latest version but I'm still getting the error. I think the error has nothing to do with web2py but with the rocket webserver. What do you think? web2py™ Version 1.90.6 (2010-12-20 17:36:54) Python Python 2.5.2: /usr/bin/python Traceback (most recent call last): File "/h

[web2py] Re: How to do this in web2py..?

2010-12-20 Thread villas
Hi Fabiano It seems that you have a hierarchical data model. Did you look into the idea of nested sets and use a single table which self-references using fields 'left' and 'right'. Did you already learn about that concept? I mean, perhaps you already considered and dismissed it. Some links here

[web2py] Re: Getting the focus of the tk gui

2010-12-20 Thread mdipierro
OK, where exactly do you insert them? On Dec 20, 4:26 pm, Manu wrote: > Hi , > Here is my 2cents tip to earn few seconds when i lauch web2py !!! >   I usually add these lines to the widget.py file to ensure that i get > the focus as soon as i start the application to enter my password and > have

[web2py] Re: help desk app

2010-12-20 Thread mdipierro
I forgot to pass the settings parameters to the mail.settings in db.py. 1 is to low. Try 60 seconds. On Dec 20, 3:45 pm, Richard Vézina wrote: > I try to make it work with gmail without success... > > ickets2db.py not finding the new ticket base on the 0.py delay set in > settings.slee

[web2py] Re: How to do this in web2py..?

2010-12-20 Thread Fabiano
> (...) The best solution depends on > whether you have a max/small number types of "stuff" or arbitrary. The number of "Stuff"s (or "classes of stuff") will be big and arbitrary. The two most common application use cases, its the purpose, and what will be happening all the time during entire appl

Re: [web2py] request for error log to default to "list by ticket"

2010-12-20 Thread Thadeus Burgess
I think it depends on what mode. In production, I want to view by exception In development, by ticket would be more appropriate. -- Thadeus On Sat, Dec 18, 2010 at 5:11 PM, Kuba Kucharski wrote: > +1 >

[web2py] Getting the focus of the tk gui

2010-12-20 Thread Manu
Hi , Here is my 2cents tip to earn few seconds when i lauch web2py !!! I usually add these lines to the widget.py file to ensure that i get the focus as soon as i start the application to enter my password and have also bound the RETURN key to the start method self.password = Tkinter.Ent

[web2py] Re: help desk app

2010-12-20 Thread mart
:) I should have see that one coming! ;) oh well... I still like the work flow idea On Dec 20, 4:05 pm, Richard Vézina wrote: > Hello Mart, > > You are talking about a helpdesk for all IT deparment... I was searching for > something tiny just for monitor app defect that I build with web2py since

Re: [web2py] Re: help desk app

2010-12-20 Thread Richard Vézina
Also, It stock to 3 tickets no matter that I change the parameter of my testing function I made just for the purpose... Richard On Mon, Dec 20, 2010 at 4:45 PM, Richard Vézina wrote: > I try to make it work with gmail without success... > > ickets2db.py not finding the new ticket base on the 0.

[web2py] Re: Run Web2py as a Service? on Ubuntu Lucid?

2010-12-20 Thread ghoulmann
Web2py isn't running as a service for me. I relied on the instructions here: http://web2py.com/book/default/chapter/11#Start-as-Linux-Daemon . The file, /etc/init.d/web2py is owned by root and executable. Python is at /bin/python, and web2py is at /usr/lib/web2py/web2py.py . No pid file is being cr

Re: [web2py] Re: help desk app

2010-12-20 Thread Richard Vézina
I try to make it work with gmail without success... ickets2db.py not finding the new ticket base on the 0.py delay set in settings.sleep_seconds = 5*60 I set it to 1 sec... Nothing new in helpdesk ticket "tray" It is really nice to initiate the project Massimo. Thanks a lot. Richard On Mon, De

Re: [web2py] Re: help desk app

2010-12-20 Thread Richard Vézina
Hello Mart, You are talking about a helpdesk for all IT deparment... I was searching for something tiny just for monitor app defect that I build with web2py since user are not of great help by telling that they had a Ticket... I think they don't even notice that there is a problem... ;-) Richard

Re: [web2py] Re: help desk app

2010-12-20 Thread Richard Vézina
Hello Massimo, Found this : http://www.aspose.com/documentation/.net-components/aspose.network-for-.net/send-email-messages-using-exchange-server.html On Mon, Dec 20, 2010 at 2:06 PM, mdipierro wrote: > Here is a web2py helpdesk app. > > http://web2py.com/examples/static/web2py.app.helpdesk

[web2py] Re: help desk app

2010-12-20 Thread mart
I think there would need to be something with a form or 2 and some tables to hold useful data, along with email and form flow/routing capabilities ? A help desk in the sense of "hey, my mouse isn't working, can someone from the helpdesk come and fix it?" my 2 cents, Mart something like this (bu

Re: [web2py] Re: help desk app

2010-12-20 Thread Richard Vézina
Hello Massimo, What to do with Exchange? Richard On Mon, Dec 20, 2010 at 2:06 PM, mdipierro wrote: > Here is a web2py helpdesk app. > > http://web2py.com/examples/static/web2py.app.helpdesk.w2p > > Please help me test and improve it. > > 1) edit applications/helpdesk/models/0.py > > set the

Re: [web2py] party time

2010-12-20 Thread Richard Vézina
We could set a web2py app with livestream with webcam then we could all drink beer together! [?] Richard On Mon, Dec 20, 2010 at 1:52 PM, ron_m wrote: > What we need is a low cost transporter beam like Star Trek (no sarcasm > intended). It would be great to meet the fantastic group of people t

[web2py] Re: help desk app

2010-12-20 Thread mdipierro
Here is a web2py helpdesk app. http://web2py.com/examples/static/web2py.app.helpdesk.w2p Please help me test and improve it. 1) edit applications/helpdesk/models/0.py set the email info and set the list of apps to be monitored 2) on each server (one if you only have one) run python web2py.

[web2py] Re: web2py 1.90.1 is OUT

2010-12-20 Thread mdipierro
I strongly suggest you move this discussion to a private discussion with Denes. The DAL has limited support for legacy tables and all the work on this topic was done by Denes. I doubt anybody else can help you and it is a complex matter. Massimo On Dec 20, 12:09 pm, sushanth wrote: > thanks t

Re: [web2py] party time

2010-12-20 Thread ron_m
What we need is a low cost transporter beam like Star Trek (no sarcasm intended). It would be great to meet the fantastic group of people that participate in this community surrounding web2py. Kind thought to all. Thanks for the invite Massimo. Ron

[web2py] Re: party time

2010-12-20 Thread DenesL
No vacation time left, but thanks for the offer. On Dec 20, 12:18 am, Jason Brower wrote: > Ahh shucks. That would have been nice. > Best Regards, > jason brower > > - Original message - > > I am thinking of organizing a party between Christmas and New Year's > > eve. > > > Who is in Ch

Re: [web2py] Re: List of fields to "orderby" expression

2010-12-20 Thread Lorin Rivers
Yep, thanks! On Dec 20, 2010, at 11:28 , mdipierro wrote: > I think this is what you are asking: > > myorderlist = [db.table.field1, db.table.field2] > orderby = reduce(lambda a,b:a|b, myorderlist) > rows = db(db.table).select(orderby = orderby) > > > On Dec 20, 11:07 am, Lorin Rivers wrote:

[web2py] Re: web2py 1.90.1 is OUT

2010-12-20 Thread sushanth
thanks thats got fix,if i nesrt any value ,i am getting below error RACEBACK 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. Traceback (most recent call last): File "/home/sushanth/Desktop/web2py/gluon/restricted.py", line 188, in restricted exec ccode in environment File "/home

[web2py] Re: Crud error in 1.90.4

2010-12-20 Thread szimszon
Works. Thank you. On dec. 20, 15:29, mdipierro wrote: > This is not a 1.90.4 specific error. The bug was there for some time. > I think I just fixed it in trunk but I did not try it with your code. > Please let us know if it now works for you. > > On Dec 20, 2:39 am, szimszon wrote: > > > > > >

[web2py] Re: web2py 1.90.1 is OUT

2010-12-20 Thread mdipierro
db.users.team.requires = IS_IN_DB(db, 'dogs.teamname', '% (dogs.teamname)') should be db.users.team.requires = IS_IN_DB(db, 'dogs.teamname', '% (teamname)s') On Dec 20, 11:40 am, sushanth wrote: > db=DAL('mysql://root:test1234...@localhost/new') > > db.define_table('dogs', >        Field('id'),

[web2py] Re: web2py 1.90.1 is OUT

2010-12-20 Thread sushanth
db=DAL('mysql://root:test1234...@localhost/new') db.define_table('dogs', Field('id'), Field('teamname'),primarykey=['teamname'],migrate=True ) db.define_table('users', Field('name'), Field('team',db.dogs) ) db.users.name.requires = IS_NOT_EMPTY() db.users.team.re

[web2py] web2py 1.90.6 is OUT

2010-12-20 Thread mdipierro
web2py 1.90.6 is OUT please check it out - it fix some incompatibility problems introduced with 1.90.* - it disables poll in web server which was causing problems because of a known poll-python bug (thanks Jonathan and Tim). Massimo

[web2py] 1.90.6 is OUT

2010-12-20 Thread mdipierro
1.90.6 is OUT please upgrade (in particular from other 1.90.* version). - fixed some compatibility issues with new dal - disable poll in rocket (web server) because it was causing occasional problems due to a known poll-python bug. Massimo

[web2py] Re: SSLError: The read operation timed out on file upload?

2010-12-20 Thread mdipierro
Something very bad happened. That file comes with web2py and is never overwritten. It should contain the version. My advice is backup everything, upgrade to 1.90.6 (posted now), check if you can reproduce the error. Massimo On Dec 20, 11:21 am, Dan wrote: > ...this file is empty? > > On Dec 20,

[web2py] Re: List of fields to "orderby" expression

2010-12-20 Thread mdipierro
I think this is what you are asking: myorderlist = [db.table.field1, db.table.field2] orderby = reduce(lambda a,b:a|b, myorderlist) rows = db(db.table).select(orderby = orderby) On Dec 20, 11:07 am, Lorin Rivers wrote: > How do I turn a list of fields to an orderby expression? > > In other word

[web2py] Re: web2py 1.90.1 is OUT

2010-12-20 Thread mdipierro
Thanks Jim, I just fixed it in trunk and posting 1.90.6. Thanks for reporting the issue. Massimo On Dec 20, 11:02 am, iiijjjiii wrote: > I get an error if I try to copy a row that has a date field. > > >>> import copy > >>> db.define_table('test_table', db.Field('test_field', 'date'), > >>> mi

[web2py] Re: List of fields to "orderby" expression

2010-12-20 Thread villas
Hi Lorin So doesn't that work? This is what the book says: And you can sort the records according to multiple fields by concatenating them with a "|": >>> for row in db().select(db.person.ALL, orderby=db.person.name|db.person.id): print row.name Regards, -D On Dec 20, 5:07 pm, Lorin

[web2py] Re: SSLError: The read operation timed out on file upload?

2010-12-20 Thread Dan
...this file is empty? On Dec 20, 3:30 pm, mdipierro wrote: > it is in the file web2py/VERSION > > On Dec 20, 7:35 am, Dan wrote: > > > > > Hi Massimo, > > > thanks a lot for your reply. > > > I can't find the current installed version nummer. My setup is like 4 > > month old. The admin area ha

[web2py] Re: web2py 1.90.1 is OUT

2010-12-20 Thread iiijjjiii
I was able to get around the problem by converting the row to a dictionary. >>> import copy >>> db.define_table('test_table', db.Field('test_field', 'date'), migrate=True) >>> db.test_table.insert(test_field='2010-12-20') 1 >>> row = db(db.test_table.id==1).select()[0] >>> row_copy = copy.copy(row

[web2py] List of fields to "orderby" expression

2010-12-20 Thread Lorin Rivers
How do I turn a list of fields to an orderby expression? In other words, If I have this: [db.table.field1, db.table.field2] I want this: db(db.table).select(orderby = db.table.field1 | db.table.field2) Thanks! -- Lorin Rivers Mosasaur: Killer Technical Marketing

[web2py] Re: web2py 1.90.1 is OUT

2010-12-20 Thread iiijjjiii
I get an error if I try to copy a row that has a date field. >>> import copy >>> db.define_table('test_table', db.Field('test_field', 'date'), migrate=True) >>> db.test_table.insert(test_field='2010-12-20') 1 >>> row = db(db.test_table.id==1).select()[0] >>> row_copy = copy.copy(row) Traceback

Re: [web2py] Re: Web2py with Nginx using FCGI and no Apache

2010-12-20 Thread Andrew Thompson
On 12/19/2010 7:13 PM, GoldenTiger wrote: What do you want? aktzero app as init app? did you change routes.py? No, don't want it as the init app. I have about 4 different sites/apps running from this instance of fcgi. With lighttpd, I was able to specify per domain, what app the web2py/fcgi s

[web2py] Re: help desk app

2010-12-20 Thread mdipierro
ps. It should not be difficult to combine scripts/tickets2db.py with tickets2email.py in a single app so that when a ticket is issued both the email is sent and a copy of the ticket is stored in a database table (in a separate app). One can then use plugin_wiki to add comments to the ticket table

[web2py] Re: help desk app

2010-12-20 Thread mdipierro
I just added to trunk: scripts/tickets2email.py you can run a background process with cp scripts/tickets2email.py applications/yourapp/private/ [edit top portion to configure email server] python web2py.py -S yourapp -N -R applications/yourapp/private/ tickets2email.py and it will send

Re: [web2py] Re: help desk app

2010-12-20 Thread Richard Baron Penman
Yes would be good if a clone existed. The only web2py helpdesk I found... needs work: http://y-a-t-s-y.appspot.com/ I expect the hardest part is receiving emails - adding to correct ticket, attachments, encoding problems, etc. This page describes the different kinds of ticket systems well: http:/

[web2py] Re: How to do this in web2py..?

2010-12-20 Thread mdipierro
This is very well possible. This is a bit complex. It cannot be completely handled at the db level. The best solution depends on whether you have a max/small number types of "stuff" or arbitrary. Let me give some more thought to this and get back to you. Meanwhile other users may have some ideas.

[web2py] Re: insert records using dictionary

2010-12-20 Thread rāma
Cool!! Thanks On Dec 20, 11:23 pm, mdipierro wrote: > db.table.insert(**dictionary) > > On Dec 20, 9:19 am, rāma wrote: > > > > > Hi all, > > > I'm aware that you can bulk insert using a dictionary but is there a > > way to : > > dictionary={'field1':'value','field2':'value' ...} > > db.table.in

[web2py] Re: insert records using dictionary

2010-12-20 Thread mdipierro
db.table.insert(**dictionary) On Dec 20, 9:19 am, rāma wrote: > Hi all, > > I'm aware that you can bulk insert using a dictionary but is there a > way to : > dictionary={'field1':'value','field2':'value' ...} > db.table.insert(dictionary) > > It would be really easy if I can do this.

[web2py] insert records using dictionary

2010-12-20 Thread rāma
Hi all, I'm aware that you can bulk insert using a dictionary but is there a way to : dictionary={'field1':'value','field2':'value' ...} db.table.insert(dictionary) It would be really easy if I can do this.

[web2py] Re: layout.html and static/css suggestion

2010-12-20 Thread mdipierro
One way to achieve this is the following: 1) in applications/admin/views/layout.html replace line {{response.files.append(URL('static','css/styles.css'))}} with {{response.files.append(URL('admin','static','css/styles.css'))}} 2) in applications//views/appadmin.html replace {{exte

[web2py] Re: layout.html and static/css suggestion

2010-12-20 Thread mdipierro
I think you are talking about appadmin, not admin. appadmin inherits your application layout, not the admin layout. Perhaps there should be an appadmin option to use the admin layout as opposed to the app specific layout. Massimo On Dec 19, 4:28 pm, weheh wrote: > Anyone doing customization of

Re: [web2py] Re: layout.html and static/css suggestion

2010-12-20 Thread Bruno Rocha
I think he is talking about the appadmin controller. Just go to /views/appadmin.html and remove the {{extend 'layout.html'}} or include a new layout only to appadmin controller. 2010/12/20 DenesL > > Maybe I am not understanding something but admin is an app and it has > its own files. > > On D

[web2py] Re: web2py CGI problem

2010-12-20 Thread mdipierro
You, nothing. I did something wrong. replace line if not environ['PATH_INFO'] and environ['REQUEST_URI']: in gluon/main.py with if not environ.get('PATH_INFO',None) and environ.get('REQUEST_URI',None): It is also now fixed in trunk. Massimo On Dec 20, 8:27 am, hytters wrote: > Hi, > >

[web2py] Re: Running web2py on Hostgator Shared hosting!

2010-12-20 Thread mdipierro
+1 On Dec 20, 7:56 am, GoldenTiger wrote: > I think a lot of users will be happy of seeing this:  web2py running > on hostgator. > > Demo:  http://hostgator.web2py.es   (steps to install included) > > There are a lot of people using Hostgator shared hosting, It is maybe > one of the best over the

[web2py] Re: SSLError: The read operation timed out on file upload?

2010-12-20 Thread mdipierro
it is in the file web2py/VERSION On Dec 20, 7:35 am, Dan wrote: > Hi Massimo, > > thanks a lot for your reply. > > I can't find the current installed version nummer. My setup is like 4 > month old. The admin area has still the old design. > > The system is running on a debian 5 linux system wit

[web2py] Re: Crud error in 1.90.4

2010-12-20 Thread mdipierro
This is not a 1.90.4 specific error. The bug was there for some time. I think I just fixed it in trunk but I did not try it with your code. Please let us know if it now works for you. On Dec 20, 2:39 am, szimszon wrote: > web2py™       Version 1.90.4 (2010-12-19 21:13:03) > Python  Python 2.6.6:

[web2py] web2py CGI problem

2010-12-20 Thread hytters
Hi, I know its not recommended to run web2py as CGI script but its the only thing my hosting environment allows. But I cannot get it to work. All I get is : *ERROR:web2py:Traceback (most recent call last):* * File "XXX/XXX/www/web2py/cgi-bin/gluon/main.py", line 347, in wsgibase* *if not e

[web2py] Re: layout.html and static/css suggestion

2010-12-20 Thread DenesL
Maybe I am not understanding something but admin is an app and it has its own files. On Dec 19, 5:28 pm, weheh wrote: > Anyone doing customization of their web2py layout knows that they are > going to heavily modify both the layout.html and static/css files. > This can result in breakage of the

Re: [web2py] Re: help desk app

2010-12-20 Thread Richard Vézina
I posted the same thing a mouth ago! ;-) I took some time to test jutdahelpdesk but didn't succeed to make it works cause of my weak knowledge of Dango and the time I give myself to make it works... If you make it works, I would be really interrested in a howto... Also, I ask web2py core dev for

  1   2   >