[web2py:36669] Re: send a tweet

2009-12-06 Thread murray3
Hi I got this all working - problem was due to way vars where defined in a SQLFORM.factory. I am developing my code further and added basic validation that the username and password inputs are not blank prior to submitting twiitter_update function. I am trying to now catch a bad username / password

Re: [web2py:36668] Re: Decimal Problem

2009-12-06 Thread Kuba Kucharski
Let's say you have a field in a table called... "BALANCE".. imho yes also according to this: http://en.wikipedia.org/wiki/Decimal http://www.python.org/dev/peps/pep-0327/ and for example this: http://dev.mysql.com/doc/refman/5.0/en/numeric-types.html -- Kuba -- You received this message becau

[web2py:36667] Re: Cron and Windows service

2009-12-06 Thread SergeyPo
For those who is interested, I downloaded curl for windows, wrote bat file 'curl.exe http://.../appname/controllername/actioname' and put it into windows scheduler. Web2py Cron service would be much more elegant. On Dec 4, 11:52 pm, SergeyPo wrote: > What is the best way to run controller code pe

Re: [web2py:36666] Re: Decimal Problem

2009-12-06 Thread Thadeus Burgess
I know decimal support was still in testing. Without negative numbers, we would need to resort to another method for identifying this. I would prefer to be able to post negative numbers in the field. -Thadeus On Sun, Dec 6, 2009 at 9:23 PM, mdipierro wrote: > Let's a few more opinions about

[web2py:36665] Re: Support for new HTTP/1.1 Methods

2009-12-06 Thread weheh
Thanks, Alex, for helping me find this older thread on the topic: http://groups.google.com/group/web2py/browse_thread/thread/4b1af88db82df261/7bcf667b299d4581?lnk=gst&q=put+delete#7bcf667b299d4581 -- You received this message because you are subscribed to the Google Groups "web2py-users" group.

Re: [web2py:36664] Support for new HTTP/1.1 Methods

2009-12-06 Thread Alex Fanjul
I thought that this methods (put and delete) was already implemented by massimo due to one email thread about this... isnt it? Alex F El 07/12/2009 3:00, weheh escribió: > According to http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html, > there are new methods in addition to the usual GET and

[web2py:36663] Re: mercurial and bazaar timings

2009-12-06 Thread mdipierro
Hi Martin, thank you for the clarification. we have been using Launchpad for web2py for almost 2 years. I am very happy with it. It is an excellent system. I personally use it for a lot of projects. There was a lot of push from the community to move to google code with mercurial (also motivated b

[web2py:36662] Re: Decimal Problem

2009-12-06 Thread mdipierro
Let's a few more opinions about this. Should we by default allow negative values in decimal fields? On Dec 6, 8:31 pm, villas wrote: > May I propose another fix for line 440... > > These lines: >     elif field_type[:7] == 'decimal': >         requires.append(validators.IS_DECIMAL_IN_RANGE(0, 10*

[web2py:36661] Re: Support for new HTTP/1.1 Methods

2009-12-06 Thread mdipierro
good you are bringing this up. Right all variables parsed from URL wheteher they are in GET, POST, PUT, DELETE, TRACE, HEAD or CONNECT or anything else, they go in request.vars and request.get_vars. You can distinguish them by request.env.http_method You may want to test this. Massimo On Dec

[web2py:36660] Re: mercurial and bazaar timings

2009-12-06 Thread Martin Pool
On Dec 6, 6:34 am, Yarko Tymciurak wrote: > FYI -  I made clean clones from both launchpad and google code > /mercurialtoday. > > To ensure that the server was "queued" / cached, I did a checkout, > deleted my local clone, and then repeated the checkout (timed the > second time). > > I think you

Re: [web2py:36659] Re: admin from a vpn client

2009-12-06 Thread 陶艺夫
Thanks for reply. I do know the server's IP, I can connect to the server too. I'm runing web2py behind a apache web server. What I mean is - How can I set a secure channel to connect to the server to manage the site? thanks. 2009/12/7 blackthorne > when you run web2py just define the IP for the

[web2py:36658] AttributeError: 'lazyT' object has no attribute 'keys' [RESOLVED]

2009-12-06 Thread weheh
OK, this all seems to work, now. For some reason, my machine started running out of VM and then web2py started acting all weird. I rebooted and now everything seems to work. Very strange. But all's well with the form.errors.whatever issue. Thanks, Massimo. -- You received this message because you

[web2py:36657] Re: admin from a vpn client

2009-12-06 Thread blackthorne
when you run web2py just define the IP for the interface where you want web2py to be available. Suppose your web2py is running on a machine with the IP 192.168.1.9, then you could do: python web2py.py -i 192.168.1.9 Regards On Dec 7, 2:03 am, 陶艺夫 wrote: > Hi, > I'm runing a web2py in an openvpn

[web2py:36656] Re: Decimal Problem

2009-12-06 Thread villas
May I propose another fix for line 440... These lines: elif field_type[:7] == 'decimal': requires.append(validators.IS_DECIMAL_IN_RANGE(0, 10**10)) Perhaps should be: elif field_type[:7] == 'decimal': requires.append(validators.IS_DECIMAL_IN_RANGE(-10**10, 10**10)) Reason

[web2py:36655] AttributeError: 'lazyT' object has no attribute 'keys' [reopened]

2009-12-06 Thread weheh
I tried the following def valid_datetimes(form): """Sets form.errors if stop before start""" if form.vars.stop < form.vars.start: form.errors.api=form.errors.stop=T('Error: Stop is before start') return False return True and now I get a new

[web2py:36654] admin from a vpn client

2009-12-06 Thread 陶艺夫
Hi, I'm runing a web2py in an openvpn server and I want to login as an administrator to manage my site from a openvpn client. How can I make it possible? Thanks. -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send emai

[web2py:36653] Support for new HTTP/1.1 Methods

2009-12-06 Thread weheh
According to http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html, there are new methods in addition to the usual GET and POST methods, such as PUT, DELETE, TRACE and CONNECT. I would like to upgrade my web2py API to support some of these new methods. Is there any plan to support them in web2py?

Re: [web2py:36652] Re: HOW2Py

2009-12-06 Thread Zoom.Quiet
On Thu, Jul 23, 2009 at 19:46, mdipierro wrote: > > This is what web2py needs. How do you suggest I link it form the main > web site? Peraps thete should a page where people can post links to > articles. > sure! that is necessary! and very suggest usage Sphnix nightly buidling it! so we can make

Re: [web2py:36651] Re: HOW2Py

2009-12-06 Thread Alex Fanjul
John, my congratulations for your job in screen scrapping article!! Im now following it and its incredible good!! Is it hang in any web2py related place? web2pyslice.com for example? It should be! Alex F El 20/07/2009 23:12, JohnMc escribió: > Ok, here is a draft of the article -- > http://

[web2py:36650] AttributeError: 'lazyT' object has no attribute 'keys' [resolved]

2009-12-06 Thread weheh
Got it. Thanks. Case closed. On Dec 6, 7:55 pm, mdipierro wrote: > You can do that. If you set in onvalidation, the form does not pass > validation and you can display the error as you like, for example in a > flash > > form.errors.whateverlyoulike='the error' > > On Dec 6, 6:22 pm, weheh wrote:

[web2py:36649] RESTful HTTP requests

2009-12-06 Thread weheh
According to descriptions I've read about REST, it seems like I should stick to at least 4 methods: HTTP POST HTTP GET HTTP PUT HTTP DELETE The request storage structure has POST and GET, but not PUT and DELETE. Massimo, how do you recommend I implement an API that has PUT and DELETE methods for

[web2py:36648] Re: Ticket issued: AttributeError: 'lazyT' object has no attribute 'keys'

2009-12-06 Thread mdipierro
You can do that. If you set in onvalidation, the form does not pass validation and you can display the error as you like, for example in a flash form.errors.whateverlyoulike='the error' On Dec 6, 6:22 pm, weheh wrote: > I tested out your fix, Massimo, and it works. I'm still thinking that > th

[web2py:36647] Re: Ticket issued: AttributeError: 'lazyT' object has no attribute 'keys'

2009-12-06 Thread weheh
I tested out your fix, Massimo, and it works. I'm still thinking that the validation routine should be able to set form.errors to specify an overarching error message for the entire form, rather than for 1 field in the form. Form.errors.fieldname is great for targeting the message to a specific fie

[web2py:36646] Re: Ticket issued: AttributeError: 'lazyT' object has no attribute 'keys'

2009-12-06 Thread weheh
What if you've got an error for the form, in general, and that doesn't pertain to any field in particular. For instance, the new data being input conflict with data from a different table? Does it have to be form.errors.? On Dec 6, 6:50 pm, mdipierro wrote: > This should never have worked and I a

[web2py:36645] Re: Set web2py to send error tickets by email

2009-12-06 Thread mdipierro
Yes. look into routes_onerror: you map errors into actions (within the same or a different application). I suggest you make a new empty app with no models and redirect all errors to it. Upon redirection the ticket number of passed as a GET variable. You can use the ticket number to open the ticket

[web2py:36644] Re: Ticket issued: AttributeError: 'lazyT' object has no attribute 'keys'

2009-12-06 Thread mdipierro
This should never have worked and I am surprised you did not get an error before. form.errors has to be a storage object. Here is what it should be: if form.vars.stop < form.vars.start: form.errors.stop=T('Error: Stop is before start') return False

[web2py:36643] Set web2py to send error tickets by email

2009-12-06 Thread blackthorne
hi Before messing things up, I would like to know if there is any option, snippet or elegant way to do this: Send to my email all generated error tickets for an application as they get generated. Thank you, Best Regards -- You received this message because you are subscribed to the Google Group

[web2py:36642] Ticket issued: AttributeError: 'lazyT' object has no attribute 'keys'

2009-12-06 Thread weheh
Some code that worked fine on 1.64.3 isn't working on 1.72.3, to which I just upgraded. I upgraded from source, so I wouldn't be surprised if I'm missing a file or something like that. The error message is: File "C:\web2py\gluon\sqlhtml.py", line 769, in accepts for key in self.errors.keys()

[web2py:36641] Re: I/O Error

2009-12-06 Thread Graham Dumpleton
On Dec 7, 6:37 am, mdipierro wrote: > Did you post this on stackoverflow too? I think the problem is that > you have print statements and they are not allowed if you use mod_wsgi. Nothing to do with that. Completely different error message. OP must provide information about how they are hostin

Re: [web2py:36640] Re: Someone have examples using mongodb

2009-12-06 Thread Alex Fanjul
Thanks to both, Will we see this great database implemented in DAL at any point in future Massimo?? :-D Other thing: lxml its simply awesome!!! thanks for the people who recommended it !!! Alex F El 04/12/2009 20:01, Yarko Tymciurak escribió: > On Dec 4, 10:08 am, Massimo Di Pierro wrote: >

[web2py:36639] Re: Language files, unable to fully remove translation entry

2009-12-06 Thread Christopher Steel
The above appears to be a refresh issue. The original issue was solved by creating an en-us.py file refreshing all language and then deleting the en-us.py file. Interesting. C On Dec 6, 2:20 pm, Christopher Steel wrote: > Attention! be very careful if you try and reproduce this. After > running

[web2py:36638] Re: I/O Error

2009-12-06 Thread mdipierro
Did you post this on stackoverflow too? I think the problem is that you have print statements and they are not allowed if you use mod_wsgi. On Dec 6, 2:32 am, Neveen Adel wrote: > I have a web2py application deployed into my machine and it works fine > but when i deployed it into server it cause:

[web2py:36637] Re: Language files, unable to fully remove translation entry

2009-12-06 Thread Christopher Steel
Attention! be very careful if you try and reproduce this. After running clean and revisiting the language file all translations are off by one line... On Dec 6, 1:42 pm, Christopher Steel wrote: > I made a typo in the index controller and returned a dictionary with a > translation string as foll

Re: [web2py:36636] Sphinx

2009-12-06 Thread Tim Michelsen
> We have had some discussion about moving the documentation to Sphinx. > Months have passed and there has been no progress. I personally do not > mind epydoc but some of you really liked Sphinx. > > If you know Sphinx and want web2py to use it, please help us. Again, I tried to help some months a

[web2py:36635] Re: Finding the Sum for a Specific Field in a Query

2009-12-06 Thread johntynan
Thanks everyone. This does get me the results that I was looking for. Seeing as I'd like to deploy this on GAE, I wondered if it might be advisable to take this as an opportunity to learn how to use pyjamas and pass along some of the work to javascript in the browser? With that in mind, I was ab

[web2py:36634] Re: idea: web2py group on reddit

2009-12-06 Thread Julio
Community, Please take a look at my "high level " tech specifications for the SO "inspired" Q&A website for web2py, please comment in this thread (or direct to me) and let me know what you think of it, I'd really appreciate your input (good or bad, if bad, constructive criticism and proposals to e

[web2py:36633] Re: I/O Error

2009-12-06 Thread Christopher Steel
I am not sure where you are getting the error? In the terminal and/or ssh session? On Dec 6, 3:32 am, Neveen Adel wrote: > I have a web2py application deployed into my machine and it works fine > but when i deployed it into server it cause: > "IOError : [Errno 5] Input/output error " i dont know

[web2py:36632] Re: google code svn > mercurial (done!?)

2009-12-06 Thread Christopher Steel
Awesome! On Dec 4, 5:43 pm, mdipierro wrote: > I have migrated the google code repository from svn to mercurial. > >    http://code.google.com/p/web2py/source/browse/#hg > > Thanks to Yarko for being pushy in this direction. > > It works for me but please check if it works for you too. If you do

[web2py:36631] Language files, unable to fully remove translation entry

2009-12-06 Thread Christopher Steel
I made a typo in the index controller and returned a dictionary with a translation string as follows: You have been here % (t)s times - accidentally leaving a space between the % and (t). Although I corrected the typo with: You have been here %(t)s times Even after deleting all

[web2py:36630] Re: google code svn > mercurial (done!?)

2009-12-06 Thread mdipierro
I figured it out .hg/hgrc and it must contain a default= ... entry. Massimo On Dec 6, 9:46 am, mdipierro wrote: > I am confused. Is the file file hgrc or .hgrc? In which folder? I > tried but when I do > >    hg push > > It still says: > >    abort: repository default-push not found! > > Massi

[web2py:36629] I/O Error

2009-12-06 Thread Neveen Adel
I have a web2py application deployed into my machine and it works fine but when i deployed it into server it cause: "IOError : [Errno 5] Input/output error " i dont know why ? Server specification : Linux OS - redhat my machine : Linux OS - centos Thanks in advance -- You received this message

[web2py:36628] Re: Can this be implemented in web2py

2009-12-06 Thread mdipierro
Not everybody is so enthusiastic about a web framework like tornado. There are two ways tornado achieves its speed: 1) uses multiple processors (this is a nice feature that we should take advantage of. Right now the only option is to use a load balancer and one server per processor) 2) It is asy

[web2py:36627] Re: Can this be implemented in web2py

2009-12-06 Thread Mengu
i, too, would like to hear comments on this subject. On Dec 6, 3:41 pm, Pystar wrote: > I have been going through the tornadoweb  framework, the framework > that power's the realtime friendfeed website. I find it very > interesting and was wondering if that "realtime" characteristic of the > fram

[web2py:36626] Re: Count with INNER JOIN and WHERE

2009-12-06 Thread mdipierro
mind that there is no count on GAE On Dec 6, 4:50 am, James wrote: > Perfect, thanks! I messed around with so many variations of that > syntax, but obviously didn't quite understand the arguments required. > Now that you write it like that it seems so simple, but it had me > stumped! > > Thanks >

[web2py:36625] Re: google code svn > mercurial (done!?)

2009-12-06 Thread mdipierro
I am confused. Is the file file hgrc or .hgrc? In which folder? I tried but when I do hg push It still says: abort: repository default-push not found! Massimo On Dec 5, 6:41 pm, Thadeus Burgess wrote: > And these can be set in your hgrc file > > [paths] > default =https://thadeusburgess

[web2py:36624] Re: Unique with NULL values

2009-12-06 Thread vihang
I resolved the issue. The problem is that null variable assignment is not null/none but '' On Dec 6, 3:15 pm, vihang wrote: > Hello, > > How can one have unique constraint, but allow multiple NULL values. I > know postgres supports it, but I get an error when using DAL. > > Thanks -- You receiv

[web2py:36623] Re: MVC and Web Service Client Design

2009-12-06 Thread David
Yep that helped. I had already moved that connection and data parts of the code to their own model. :0P Thanks -David On Dec 5, 11:48 am, Thadeus Burgess wrote: > The functions that retrieves/stores the data should go in your models. > Your controllers use these functions and manipulate the dat

[web2py:36622] Can this be implemented in web2py

2009-12-06 Thread Pystar
I have been going through the tornadoweb framework, the framework that power's the realtime friendfeed website. I find it very interesting and was wondering if that "realtime" characteristic of the framework can be implemented in web2py? I feel it will really give web2py a niche in the array of py

[web2py:36621] Unique with NULL values

2009-12-06 Thread vihang
Hello, How can one have unique constraint, but allow multiple NULL values. I know postgres supports it, but I get an error when using DAL. Thanks -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googl

[web2py:36620] Re: Count with INNER JOIN and WHERE

2009-12-06 Thread James
Perfect, thanks! I messed around with so many variations of that syntax, but obviously didn't quite understand the arguments required. Now that you write it like that it seems so simple, but it had me stumped! Thanks --James -- You received this message because you are subscribed to the Google