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
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
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
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
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
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
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
>
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
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
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
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
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
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
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
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
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
> 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
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
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:
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
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:
>
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
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()
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
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
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
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
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
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
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
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:
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://
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
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?
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
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
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
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
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
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
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
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
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*
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
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
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.
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
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
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
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
50 matches
Mail list logo