Hi,
Thanks for the replies. So we will decide upon tornado or gevent.
One particular concern in our project is to implement the server
efficiently. We want a server that can handle thousands of users
chatting simultaneously. Would a simple code like comet_messaging.py
be that capable or we need to
Ofcoz
POS powered by web2py + qooxdoo , running on gae cloud!
http://herspos.appspot.com/HersPOS
and sourcecode avaliable here :
http://code.google.com/p/herspos/
On Fri, Dec 2, 2011 at 12:18 AM, NetAdmin wrote:
> Web2py Application Exhibition Version 3.0
>
> Do you have a Web2py app that y
I am trying to use the LOAD component and i have some questions. I
would like to pass an argument to the LOAD function which is a table
row but it is converted to a string and i can't access the row
attributes. There is a way to pass them by value but i would prefer to
pass the row instead (or a di
Hello, i have a private business with dozens of clients.
I want to offer every year a lottery for my clients.
The winner will get an offer.
How do i do this with trust?
maybe a third party online app that i and all small/large companies could
trust and clients too.
I as a company register in t
you can use random.org
I made something like that www.rifar.me
http://zerp.ly/rochacbruno
Em 06/12/2011 08:58, "António Ramos" escreveu:
> Hello, i have a private business with dozens of clients.
>
> I want to offer every year a lottery for my clients.
> The winner will get an offer.
>
> How do
tx Bruno, I have db in __init__
How can I pass it to another function?
this other function has a @spool decorator (from uwsgi decorators) so
I can only call it with string arguments
On Dec 6, 1:29 am, Bruno Rocha wrote:
> you cant assign db to current. you need to pass db to you class __init__
>
There is the solution to pass the table.id as an argument and then
make an additional query to the database in tables_info to get the
table but i don't like this solution because i already have the row
from a previous query.
An extra question, now in the div i present inside index
{{=type(tabl
>
> {{=type(table)}}
> {{=table.key}}
>
Why are you using LOAD at all. If all the LOAD component is doing is
creating a single div that contains information from the only thing
you pass to the component, why not just do that directly in your for
loop in the index.html view:
{{for table in m
> {{=A("Like", _href=URL('default', 'like', extension=False))}}
>
> which is a function in another controller ('default') that changes the
> value of 'like' (is a field of table like {{=table.key}} in the above
> example)
> How do i trigger the refresh of the div? The example in the book has a
> su
All,
How can I formulate this query using dal objects?
select
customer_name,
server_name,
server_type_name,
application_name,
application_version,
install_date
from customer, server, server_type, application, installation
where server.custom
I didn't know about the callback argument. Thanks a lot for the tip.
In the above case then it is not necessary then.
I was going to use something quite complicated for something simple.
Is it possible for the callback to affect multiple fields, or else
what happens if there are fields with the sam
Thanks Vineet , Massimo , that was really helpful.
On Tue, Dec 6, 2011 at 9:39 AM, Vineet wrote:
> @chandrakant kumar,
>
> https://groups.google.com/group/web2py/browse_thread/thread/b6c0cf5d61d0c565/a40a34c4f91661bb?lnk=gst&q=eclipse#
>
> In that thread, see the post by "Miguel Lopes" -- 4th fr
I don't know if you have any constrain, but for testing purpose you can use
nginx setup script in web2py/scripts folder... There is one for ubuntu at
least...
RicharD
On Mon, Dec 5, 2011 at 5:48 PM, Chris wrote:
> I'm using web2py with nginx, and I've experienced the following error
> on redepl
Presumably session.account is not always defined -- first you have to
save 'account' to the session, so any request before that happens
won't include 'account' in the session.
session is a Storage() object, so when you attempt to access keys that
are not defined, it simply returns None. That's why
On Dec 6, 9:49 am, thodoris wrote:
> I didn't know about the callback argument. Thanks a lot for the tip.
> In the above case then it is not necessary then.
> I was going to use something quite complicated for something simple.
> Is it possible for the callback to affect multiple fields, or else
>
Has anyone else noticed that new messages are not appearing in the new
Google Groups interface (https://groups.google.com/forum/#!forum/web2py),
but are appearing in the old interface
(https://groups.google.com/group/web2py/topics?hl=en&start=)?
Anthony
Didn't know the problem but "Email updates to me" option is not
working since a few days ago and I'm so annoyed. I don't where we
should report to.
On Dec 6, 9:39 am, Anthony wrote:
> Has anyone else noticed that new messages are not appearing in the new
> Google Groups interface (https://groups.
One question related to the A() callback.
Defining a and adding a target="some_id" to
the A works very well.
I tried to do session.flash/response.flash inside the callback
function but it didn't work. Is there a way to do it?
def callback_function():
it does some stuff...
if s == "1":
Hmm, email updates seem to be working for me (I just turned it on since the
Forum interface is no longer working). Anyway, if you go to
https://groups.google.com/forum/#!forum/web2py and are logged in, the
options dropdown (gear icon) in the upper right should include a "Feedback"
option, which you
For a chatting server comet_messaging.py is all you need. It already
support groups which you can think of as chat-rooms.
On Dec 6, 3:13 am, Saurabh Kumar wrote:
> Hi,
>
> Thanks for the replies. So we will decide upon tornado or gevent.
> One particular concern in our project is to implement t
>
> One question related to the A() callback.
>
> Defining a and adding a target="some_id" to
> the A works very well.
>
> I tried to do session.flash/response.flash inside the callback
> function but it didn't work. Is there a way to do it?
>
> def callback_function():
>it does some stuff...
You do not tell us which field belongs to which table so making some
guesses...
And setting this aside for a moment...
installation.install_date = (select max(install_date) from
installation where application_id=application.id and
server_id=server.id)
This is your query
where server.customer_i
@Brian,
Thanks. I will experiment with this plugin.
Looks like very interesting stuff.
--- Vineet
On Dec 5, 6:16 am, Brian M wrote:
> Vineet,
>
> My copy of jQuery.query.js is attached - I'm assuming since it's released
> under the WTFPL the author won't mind :D
>
> You may also want to look at
Thanks Massimo.
That's what I too was looking for.
--- Vineet
On Dec 6, 10:25 am, Saurabh S wrote:
> Thanks Massimo :)
>
> On Dec 6, 9:18 am, Massimo Di Pierro
> wrote:
>
> > jQuery('#tablename_fieldname').keyup(function()
> > {this.value=this.value.replace(/[^ 0-9]/g,'');});
>
> > On Dec 5, 9
This thread is not for asking any question.
I was wondering how Massimo manages to find time for reading this
entire list & answering the queries (sometimes, a detailed reply
also, if required).
I understand that he is a very busy person himself, and web2py is not
directly serving him bread & butt
But it doesn't accept decimal point either.
How to make it accept the decimal point?
--- Vineet
On Dec 6, 10:25 am, Saurabh S wrote:
> Thanks Massimo :)
>
> On Dec 6, 9:18 am, Massimo Di Pierro
> wrote:
>
>
>
>
>
>
>
> > jQuery('#tablename_fieldname').keyup(function()
> > {this.value=this.value
How about:
replace(/[^ .0-9]/g,'')
On Tue, Dec 6, 2011 at 11:36 AM, Vineet wrote:
> But it doesn't accept decimal point either.
> How to make it accept the decimal point?
>
> --- Vineet
>
> On Dec 6, 10:25 am, Saurabh S wrote:
> > Thanks Massimo :)
> >
> > On Dec 6, 9:18 am, Massimo Di Pierro
How do i create a drop down list in views with data from a query.
for e.g.
rows = db(db.person.id>0).select()
then, how do i present the user a dropdown list containing all the persons name.
Yes. That worked.
Thank you.
--- Vineet
On Dec 6, 9:46 pm, Anthony Bastardi wrote:
> How about:
>
> replace(/[^ .0-9]/g,'')
>
>
>
>
>
>
>
> On Tue, Dec 6, 2011 at 11:36 AM, Vineet wrote:
> > But it doesn't accept decimal point either.
> > How to make it accept the decimal point?
>
> > --- Vinee
Something like this --->
SELECT('',_type="select",_name="state_name",
*[OPTION(x['key1_in_dict'],_value=x['key2_in_dict'])for x in
myDataSetDict])
## Note: I have assumed that the resulting dataset is a dict.
HTH
:) Vineet
On Dec 6, 10:04 pm, chandrakant kumar wrote:
> How do i create a drop d
I am using deferred library with GAE. In order to do that I have to define
a
'fix_path' module and import the 'fix_path' in the module deferred.defer.
What I need to do in order deferred to work with web2py?
Regards,
--Constantine
http://code.google.com/appengine/articles/deferred.html
Handl
On Dec 6, 10:32 am, Vineet wrote:
> This thread is not for asking any question.
> I was wondering how Massimo manages to find time for reading this
> entire list & answering the queries (sometimes, a detailed reply
> also, if required).
> I understand that he is a very busy person himself, and we
I think it should be
replace(/[^ \.0-9]/g,'')
not sure bout JS regex but in python . matches any character
On Dec 6, 10:46 am, Anthony Bastardi wrote:
> How about:
>
> replace(/[^ .0-9]/g,'')
>
>
>
>
>
>
>
> On Tue, Dec 6, 2011 at 11:36 AM, Vineet wrote:
> > But it doesn't accept decimal point
Ah great! Because I looked everywhere for this internationalization library
to import from. ;)
Thanks again for the reply.
The chat room thing is OK. Instead what I am concerned about is if the
code is efficient enough to handle thousands of request.
Saurabh
On Dec 6, 8:59 pm, Massimo Di Pierro
wrote:
> For a chatting server comet_messaging.py is all you need. It already
> support grou
Bruno thank muito!
What about web2py - dropbox - pythonanywhere?
##
import os
import sys
path = '/home/my_username/Dropbox/web2py'
if path not in sys.path:
sys.path.append(path)
from wsgihandler import application
##
I am getting
Internal Server Error
The server encountered an internal
I also tried to use Dropbox to have an automatic update, but it seems
that sharing does not work with the dropbox
Ovidio Marinho Falcao Neto
Web Developer
ovidio...@gmail.com
ovidiomari...@itjp.net.br
ITJP - itjp.net.br
I think \. will work, but it shouldn't be necessary inside the brackets
(even in Python) -- metacharacters (like the dot) don't operate inside
brackets, so no need to escape them there.
Anthony
On Tue, Dec 6, 2011 at 1:08 PM, Massimo Di Pierro <
massimo.dipie...@gmail.com> wrote:
> I think it sh
On Tue, Dec 6, 2011 at 1:15 PM, Saurabh Kumar wrote:
> Thanks again for the reply.
> The chat room thing is OK. Instead what I am concerned about is if the
> code is efficient enough to handle thousands of request.
>
It should be. That's why Tornado is used -- it is a non-blocking web
server. See
Thank you Anthony! That works well!
Just a small question, I am trying to understand web2py better:
I am using 2 other tables to enable the above scenario:
(1) auth_account table to hold the account information
(2) auth_many table for many to many relationship
And when joining both tables and ret
Can you show all of your code?
On Tue, Dec 6, 2011 at 2:17 PM, lyn2py wrote:
> Thank you Anthony! That works well!
>
> Just a small question, I am trying to understand web2py better:
> I am using 2 other tables to enable the above scenario:
> (1) auth_account table to hold the account informatio
On Dec 7, 12:32 am, Vineet wrote:
> This thread is not for asking any question.
> I was wondering how Massimo manages to find time for reading this
> entire list & answering the queries (sometimes, a detailed reply
> also, if required).
> I understand that he is a very busy person himself, and
Hi Anthony, I am not sure what code you need, can you be specific?
I have shown my code in my previous post, maybe I highlight my code:
>> myset = db(
>> (db.auth_account.id==db.auth_many.account_id) &
>> (db.auth_many.user_id==auth.user_id)
>> )
>> session.account = myset.select(db.auth_a
When I try this I get the following:
(1064, u"You have
an error in your SQL syntax; check the manual that corresponds to your
MySQL server version for the right syntax to use near ';))) ORDER BY
customer.customer_name, server.server_name, application.applicatio' at
line 1")
Here's my code:
fr
Guys, I need some help with IS_INT_IN_RANGE() plus IS_IN_SET() validators.
I have the following structure, to adjust Mytable.payday.requires:
[code]
G_DAYS_AVAILABLE = [
(1, "Day 1st"),
(5, "Day 5th"),
(10, "Day 10th")]
Mytable.payday.requires = IS_IN_SET(G_DAYS_AVAILABLE,
error
Model definitions, and maybe any other code that might be assigning to
session.
On Tue, Dec 6, 2011 at 2:42 PM, lyn2py wrote:
> Hi Anthony, I am not sure what code you need, can you be specific?
>
> I have shown my code in my previous post, maybe I highlight my code:
> >> myset = db(
> >> (d
What happens if you reverse the order of the validators:
Mytable.payday.requires = [
IS_IN_SET(G_DAYS_AVAILABLE, error_message="Choose one day"),
IS_INT_IN_RANGE(0,31)]
Or what happens if you leave out the IS_INT_IN_RANGE validator altogether?
Anthony
On Tue, Dec 6, 2011 at 3:27 PM, Vinic
On Tue, Dec 6, 2011 at 7:04 PM, Anthony Bastardi wrote:
> What happens if you reverse the order of the validators:
>
> Mytable.payday.requires = [
> IS_IN_SET(G_DAYS_AVAILABLE, error_message="Choose one day"),
> IS_INT_IN_RANGE(0,31)]
Anthony, the book says if I want an integer field, I m
Is this (web2py Application development cookbook) the same book as the
upcoming 3.xx edition of the web2py book? name change??
On Dec 5, 9:20 am, Massimo Di Pierro
wrote:
> They told me another 3 months. We are doing writing but they do not
> use any markup language. Packt does all the editing
On Tue, Dec 6, 2011 at 4:46 PM, greenpoise wrote:
> Is this (web2py Application development cookbook) the same book as the
> upcoming 3.xx edition of the web2py book? name change??
>
>
>
No, it's a completely new book of recipes. The upcoming 4th edition of the
web2py book is simply an update of
Thanks! do you know the status of the 4th edition?
On Dec 6, 1:54 pm, Anthony Bastardi wrote:
> On Tue, Dec 6, 2011 at 4:46 PM, greenpoise wrote:
> > Is this (web2py Application development cookbook) the same book as the
> > upcoming 3.xx edition of the web2py book? name change??
>
> No, it'
I think it's supposed to be out very soon. Massimo will know better. Note,
many of the updates are already available in the current online book,
though there are some new things not yet posted there.
Anthony
On Tue, Dec 6, 2011 at 4:58 PM, greenpoise wrote:
> Thanks! do you know the status of t
Thanks for the reminder for feedback! There were several times that Google
Groups was telling me that x number of posts were updated, but showed all
as read.
I noticed that just before I read this post, they just pushed out an update
to the Groups software. Hopefully that'll fix it.
Looks like the book is wrong. IS_IN_SET automatically converts the integer
values in the set to strings, so if IS_INT_IN_RANGE is used first, it will
pass an integer to IS_IN_SET, which will fail. As far as I can tell,
everything works fine without using IS_INT_IN_RANGE at all, using SQLFORM
or SQL
Yes, it started working for me again right after that update, so hopefully
it will stay fixed.
Anthony
On Tuesday, December 6, 2011 5:28:45 PM UTC-5, Chris May wrote:
>
> Thanks for the reminder for feedback! There were several times that Google
> Groups was telling me that x number of posts we
When i import cx_Oracle from python shell
everything is fine its works well ...
I tried running from source but i kept getting errors
method 1
-
C:\Users\Administrator>python
C:\Users\Adm
I went in a similar problem with an webapp that needs to add routes to
the Python path.
I didn't need a special module. Just made the path adjustments in the
app's specific routes.py module that executes once when web2py starts.
Doing path modifications is troublesome (something to do with
threadin
It is done. The problem is that I need to post the latest web2py
before I can publish the book.
Anyway, the book should be online (html) by tomorrow.
massimo
On Dec 6, 4:02 pm, Anthony Bastardi wrote:
> I think it's supposed to be out very soon. Massimo will know better. Note,
> many of the upd
If you can make it please RSVP
http://mdp.cti.depaul.edu/rsvp/default/respond_event/4bf55e15-0c58-440d-bd61-3dcb99fc8cce
Massimo
Yes I know about path modifications but anything web2py related -
I am listening to web2py experts ;)
This thing is - deferred is very important functionality and we need this.
Probably Massimo will know the answer?
Google says:
"if the task you're deferring* relies on modules* that aren't on the import
path by default, you need to give it a
helping hand."
"path modifications": in your link:
"you should not change sys.path when you have more than one thread running."
The Google example:
sys.path.*append*(o
Thats awesome, thanks!
Please post when the lulu pdf version comes out.
On Dec 6, 3:16 pm, Massimo Di Pierro
wrote:
> It is done. The problem is that I need to post the latest web2py
> before I can publish the book.
> Anyway, the book should be online (html) by tomorrow.
>
> massimo
>
> On D
You are right, this list must be one of the very best, and in addition to
Massimo, there are some other great contributors. Amongst the many
valuable messages that I read here, I wonder whether I might also single
out Anthony's posts too - his answers to everyone's questions are really so
he
Hi. I'm trying out web2py with a simple install on the mac.
Changes in my code are not noticed when I run my app via it's URL in
Firefox.
For example, after I removed the content of the default index.html and
added my own 5 lines, I got complaints about (non-existent) line 84.
When I moved my in
You are welcome. And thanks a lot -- I appreciate the compliment.
Anthony
On Tuesday, December 6, 2011 8:33:03 PM UTC-5, villas wrote:
>
> You are right, this list must be one of the very best, and in addition to
> Massimo, there are some other great contributors. Amongst the many
> valuable
>
> after I removed the content of the default index.html and
> added my own 5 lines, I got complaints about (non-existent) line 84.
>
When there is an error in a view file, the line number reported is not the
line number of the original view file, but the line number of the code
after the enti
Ok, here's more :) Thanks for your help!
db.define_table('auth_account',
Field('subdomain','string',length=255,required=True),
...
)
db.define_table('auth_many', #many to many relationship
Field('account_id','reference
auth_account',default=db.auth_account.id,required=True),
Field('user_id
Hi ,
I am developing an online booking system in web2py framework.
1. I want to have the functionality where a user will be logged out
after some time(say 1 hour) if the system remains idle.
2. The user will be logged out if the browser window is closed
Please suggest what are the possible w
I posted on this a while back - see
https://groups.google.com/forum/?pli=1#!searchin/web2py/csv$20zip/web2py/qjTF3_wHlWQ/_FFWt0Jc8C4J
On Tuesday, December 6, 2011 10:27:42 PM UTC-5, Saurabh S wrote:
>
> Hi ,
>
> I am developing an online booking system in web2py framework.
>
>
> 1. I want to have the functionality where a user will be logged out
> after some time(say 1 hour) if the system remains idle.
>
auth.settings.expiration
I have to make my own register form.
When submitting the form without email I get the
message: "Invalid Email" (right behavior).
When I enter a valid email address and just hit Enter,
the registration is accepted without checking the two
password fields - they are empty.
What is wrong?
Hi thanks fir the reply,
I wrote that line in db_init.py but that is not working
also i tried it by writing the same in gluon/tools.py but still was
not working,
from my applications point of view , i want to log out the user after
30 mins ,
Is there any other place in the application where i can
Oops.
How I did not mention about the other contributors !
Anthony's (& of course, the other members') replies have been very
useful to me.
Earlier, I had opted for TurboGears. No doubt, although it's a good
web framework, but it's too complex & lot many dependencies.
Web2py stands out clear in te
Oops.
Inadvertently, I did not mention about the other contributors in my
OP!
Anthony's (& of course, the other members') replies have been very
useful to me.
Earlier, I had opted for TurboGears. No doubt, although it's a good
web framework, but it's too complex & lot many dependencies.
Web2py sta
74 matches
Mail list logo