[web2py] Re: small improvement to TK gui

2010-02-21 Thread hamdy.a.farag
>actually if you do >python web2py.py -i ip_address -p port_number -a "password" >there will be no gui. >The tk gui could use some general cleanup by somebody who understands tk a lot >better than I do. :) I know that , actually There is no need to do many improvements in the TK gui, it's

[web2py] Groups.

2010-02-21 Thread Matt
Whats the best way to create groups for an application but only create them once...? Thanks, Matt -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send

[web2py] Re: rpxauth and groups.

2010-02-21 Thread mr.freeze
There are two RPXAuth modules that I know of. That one and this one: http://www.web2pyslices.com/main/slices/take_slice/28 Sorry, I'm not very familiar with the one you're using. On Feb 21, 10:27 pm, Matt wrote: > Hi there, > > I'm not sure if I understand your question. > > I'm using: > > http:

[web2py] Re: rpxauth and groups.

2010-02-21 Thread Matt
Hi there, I'm not sure if I understand your question. I'm using: http://code.google.com/p/rpxauth/ Matt On Feb 22, 5:10 pm, "mr.freeze" wrote: > Which RPX module are you using? > > On Feb 21, 10:05 pm, Matt wrote: > > > Hi there, > > > I'm setting up rpxauth for use with my website. > > > Th

[web2py] Re: rpxauth and groups.

2010-02-21 Thread mr.freeze
Which RPX module are you using? On Feb 21, 10:05 pm, Matt wrote: > Hi there, > > I'm setting up rpxauth for use with my website. > > Thus far it's looking good and working well however I need to support > "groups" for my users. > > According to the Auth documentation: > > "Once a new user is regi

[web2py] rpxauth and groups.

2010-02-21 Thread Matt
Hi there, I'm setting up rpxauth for use with my website. Thus far it's looking good and working well however I need to support "groups" for my users. According to the Auth documentation: "Once a new user is registered, a new group is created to contain the user." rpxauth doesn't seem to be do

[web2py] Re: Haiti: Proxy required - Django port? CGI port?

2010-02-21 Thread Richard
did you get anywhere with your proxy? I am after a web2py proxy that supports redirects, authentication, and passing headers. The above snippet seems to proxy internal content rather than fetch external content like the Django example. On Jan 24, 11:45 am, Fran wrote: > On Jan 23, 8:55 pm, mdi

[web2py] MySQL server has gone away

2010-02-21 Thread Kevin Bowling
I get the following error. I have a 5 connection pool in my DAL connection line. Shouldn't the DAL keep the connection alive or at least mark it dead and reestablish or use another connection rather than throwing an error 500? Traceback (most recent call last): File "gluon/restricted.py", line

[web2py] Re: Weird Error Message From Web2py - OSError: [Errno 24] Too many open files ???????

2010-02-21 Thread Yannick
Thanks for the note... I'm usually running Web2py through Wing IDE since it is easy for debugging... Please let me know if you have any questions regarding this issue Yannick P. On Feb 21, 4:02 pm, Massimo Di Pierro wrote: > This is interesting I will take a look asap. > > Meanwhile, if you are

[web2py] Re: Saving Thumbnail Files

2010-02-21 Thread villas
@MrFreeze Thanks for your suggestion, but unless Web2py allocates the filename then the default download action will not work. I finally got it working after eventually finding this snippet: >>> db.yourtable.insert(yourfield=db.yourtable.yourfield.store(open(filename,'rb'))) My solution is to sav

[web2py] Re: Saving Thumbnail Files

2010-02-21 Thread mr.freeze
What about saving it as original_filename_thumb? On Feb 21, 5:03 pm, villas wrote: > I'm having another go at this and have succeeded except for one > remaining question. > > My object is to upload a file and make a thumbnail at the same time. > > Say I have a table with two fields MainPic and Th

[web2py] Re: GAE delete() has subtle difference compared to native Web2Py

2010-02-21 Thread what_ho
I got the same issue, delete operations by id work locally, but not on gae (dev_appserver or live). Modifying from .count() to len(..) appears to fix this for me. I locally modified the delete method in gql.py, line 692 as follows: def delete(self): self._db['_lastsql'] = 'DELETE WHERE %

[web2py] Re: Saving Thumbnail Files

2010-02-21 Thread villas
I'm having another go at this and have succeeded except for one remaining question. My object is to upload a file and make a thumbnail at the same time. Say I have a table with two fields MainPic and ThumbPic: 1. Upload an image to MainPic field 2. Get the filename which has been given by system

[web2py] Re: Not sure how stunnel works with web2py

2010-02-21 Thread Brian M
http://groups.google.com/group/web2py/browse_thread/thread/6c7f2360d1509bee/889a62630225dbad#889a62630225dbad On Feb 20, 6:27 am, Al wrote: > I managed to get stunnel working, though it is a lot more complicated > than I thought > originally. On the windows server, the stunnel.conf file is setup

[web2py] Re: How to deploy my first app

2010-02-21 Thread Brian M
Al, I setup a stunnel server on Win7 which also had web2py's native server running on it. Then I setup a stunnel client on a Linux VM. In Stunnel Server's stunnel.conf: [web2py] accept = 8443 connect = localhost:8000 In Stunnel Client's stunnel.conf: ; Use it for client mode client = yes [web2py

Re: [web2py] small improvement to TK gui

2010-02-21 Thread Jonathan Lundell
On Feb 21, 2010, at 1:29 PM, hamdy.a.farag wrote: > the TK gui is very annoying in that to start the server a click on > the start server button is required > > can you add a listener for the enter key ? it will be easier and more > friendly if someone used it The tk gui could use some general

Re: [web2py] small improvement to TK gui

2010-02-21 Thread Kuba Kucharski
actually if you do python web2py.py -i ip_address -p port_number -a "password" there will be no gui. -- Kuba -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from th

[web2py] small improvement to TK gui

2010-02-21 Thread hamdy.a.farag
Hi the TK gui is very annoying in that to start the server a click on the start server button is required can you add a listener for the enter key ? it will be easier and more friendly if someone used it -- You received this message because you are subscribed to the Google Groups "web2py-user

[web2py] Re: response.files.append are broken

2010-02-21 Thread mdipierro
yes. views are executed sequentially therefore response.files.append(...) has not affect after {{import 'web2py_ajax.html'}} where the actually import is actually done. You can do {{reponse.files.append()}}{{extend 'layout.html'}} bla bla bla since the layout will import web2py_ajax.html afte

[web2py] Re: congratulations for documentation

2010-02-21 Thread mdipierro
I thought the point was that you'd'd be making the updates. ;-) On Feb 21, 11:40 am, weheh wrote: > Massimo, wonderful to have the book online. I can't say that strongly > enough. I think it will help grow the community by leaps and bounds. > How frequently do you expect to be making updates to t

[web2py] Re: Weird Error Message From Web2py - OSError: [Errno 24] Too many open files ???????

2010-02-21 Thread Massimo Di Pierro
This is interesting I will take a look asap. Meanwhile, if you are not using cron, run web2py with -N. Massimo On Feb 21, 2010, at 1:28 PM, Yannick wrote: Hello mate, I'm using the latest version of Web2py and Mac OS and since few web2py release I have been having this problem and I don't k

[web2py] response.files.append are broken

2010-02-21 Thread sherdim
Instructions "response.files.append" for new js and css imports don't work in the view file when inserted in the body. Is it by design? and they are allowed in the head of layout.html only? Vale! -- You received this message because you are subscribed to the Google Groups "web2py-users" group.

[web2py] Weird Error Message From Web2py - OSError: [Errno 24] Too many open files ???????

2010-02-21 Thread Yannick
Hello mate, I'm using the latest version of Web2py and Mac OS and since few web2py release I have been having this problem and I don't know what is the cause of this... When it happens I can't access my application anymore I got a this message from the browser: "Internal error Ticket issued: unreco

[web2py] Re: autocompletion

2010-02-21 Thread villas
You did see the thread linked below? This autocomplete does actually work. The arrow keys don't seem to work very well in IE8 but it's easy to set up and worth trying. http://groups.google.com/group/web2py/browse_thread/thread/dcbb1b8ee8fde952/d941cfea44e361c2?lnk=gst&q=autocompletion#d941cfea44

Re: [web2py] Re: something happened to web2py.com

2010-02-21 Thread Thadeus Burgess
rackspace has a .co.uk domain, which suggests they have Europe datacenters. Not sure if slicehost does. I found this comparison on slicehost vs linode. Basically, the article is stating that since slicehost uses x86_64 processors it uses more memory than linode who uses x86 processors. So if you

[web2py] Re: congratulations for documentation

2010-02-21 Thread weheh
Massimo, wonderful to have the book online. I can't say that strongly enough. I think it will help grow the community by leaps and bounds. How frequently do you expect to be making updates to the online book? -- You received this message because you are subscribed to the Google Groups "web2py-us

[web2py] Re: new on web2pyslices.com: version history!

2010-02-21 Thread mr.freeze
You can now also log revision comments and restore previous versions. On Jan 28, 11:01 pm, mdipierro wrote: > cool! > > On Jan 28, 10:20 pm, "mr.freeze" wrote: > > > Also, a newrevisionwill now trigger an email if you are subscribed > > to that slice. Handy for keeping up with changes. > > > On

[web2py] Re: datetime's sub-second information: query about its handling for different databases

2010-02-21 Thread mdipierro
forgot about the issue. will take a second look. On Feb 21, 5:48 am, Carl wrote: > Following Dan's posting last year about the loss of microseconds when > storing Python DateTime instances in > SQLitehttp://groups.google.com/group/web2py/browse_thread/thread/f9b8cbb660... > I've got to this ar

[web2py] Re: congratulations for documentation

2010-02-21 Thread mdipierro
Thank you. You English is very good. On Feb 21, 6:58 am, Francisco Antonio Tapias Bravo wrote: > three weeks ago, I bought the book at lulu and now I've seen it > available fromhttp://web2py.com/book/. I think it has been a excellent > decision, it help the community grow. Congratulations and tha

[web2py] Re: ajax flow

2010-02-21 Thread mdipierro
Your questions are about jqmodal and I am not sure myself. I think it preloads the content of the window and simply opens the window when you click. This means the ajax_create action may be called BEFORE you click. I do not know about loadingAnimation.gif. On Feb 21, 7:56 am, DenesL wrote: > I am

[web2py] Re: something happened to web2py.com

2010-02-21 Thread mdipierro
For now the problem appears to be solved we are up and running. They did not notify me about the problem thus making me thing the issue was with my machine but they were very responsive when contacted. Let's wait and see one more week. On Feb 21, 6:20 am, Alex Fanjul wrote: > However, the fir

[web2py] Saving Thumbnail Files

2010-02-21 Thread villas
I have this: db.define_table('uploads', Field('name','string'), Field('fileit','upload'), Field('thumbnail','upload',), ) This is my onvalidate function: def WriteThumb(form): import StringIO i = StringIO.StringIO() o = StringIO.StringIO() i.write(form.vars.fileit.

[web2py] Re: ajax

2010-02-21 Thread DenesL
Adding person with ajax_create active works for me on 1.75.1 On 20 feb, 19:16, mdipierro wrote: > Now I am very puzzled. Can you email me the entire app? > > Massimo > > On Feb 20, 12:52 pm, Jose wrote: > > > On 20 feb, 18:45, mdipierro wrote:> I see. I do > > not think this has anything to

[web2py] congratulations for documentation

2010-02-21 Thread Francisco Antonio Tapias Bravo
three weeks ago, I bought the book at lulu and now I've seen it available from http://web2py.com/book/. I think it has been a excellent decision, it help the community grow. Congratulations and thanks for web2py. Excuse me for my english. -- You received this message because you are subscribed t

[web2py] ajax flow

2010-02-21 Thread DenesL
I am trying to understand the flow of the ajax example given in http://groups.google.com/group/web2py/msg/0d9a3d7ab6ed95fb so I added some print statements to the code, and now I need some help. This is the printout (I am using 1.75.1 and I changed index to addPerson) with my comments and question

[web2py] Re: curd.create redirect to created item on success

2010-02-21 Thread selecta
oh man, thanks for your patience, must have been the fever or a temporary black out, here is what I wanted to, and finally did :) def edit_method(): method_id = None if not request.args: form = crud.create(db_method) if not form.accepts(request.vars, session): r

Re: [web2py] Re: something happened to web2py.com

2010-02-21 Thread Alex Fanjul
However, the first problem for me (and the reason I chose VPS) is the latency to nodes from Europe. VPS has 2 clouds in UK with a very good roundtrip time and enough BW. Do Rakespace, slicehost or Linode have europe nodes? thanks alex El 21/02/2010 6:02, Thadeus Burgess escribió: Or slicehost

[web2py] datetime's sub-second information: query about its handling for different databases

2010-02-21 Thread Carl
Following Dan's posting last year about the loss of microseconds when storing Python DateTime instances in SQLite http://groups.google.com/group/web2py/browse_thread/thread/f9b8cbb6601a9f58/d45f7d737f4e7932?lnk=gst&q=datetime+precision#d45f7d737f4e7932 I've got to this area too :) Dan suggests a w

Re: [web2py] Re: Using rpy2 with web2py does not work

2010-02-21 Thread Marcin Jaworski
mdipierro 2010-02-21, 08:07: > I do not know what to say. web2py is just a python program. > > if you can import them from python you can import them from web2py. > > try print sys.path and make sure pry2 is installed in a folder that is > the path. > > I cannot now but I have used rpy in the