Very probability, because i very new in web applications and python
In the past,1 week ago, before we updated version of web2py, we
created 10589 registers with the same application. And now, the only
idea that i have, it is this, the new version of web2py.
This are the controllers involved when
Hello mate.
I can't upload in this situation below:
Here is the view:
...
mainImage = $(".image-wrapper").HandlerFile(
{
mainImageUrl: "",
helper: $("#tooltip"),
...
}
...
Upload Pictures. You can upload up to 10 pictures at
How to install the web2py in linode.com in wsgi?
thanks!
You could use an argument.
www.myapp.com/userprofile can be mapped to a controller/method like
www.myapp.com/app/profiles/show/userprofile
where app = application, profiles = controller, show = function,
userprofile is an argument accessed by request.args(0) inside "show".
You can use it to query
Can anyone think of a way around this "chicken and egg" scenario, or
another way to get the desired results? Basically I want on the fly
translations of content and controller names when a user changes
languages. Now I can have one or the other...
When translating controller names in response.menu
I started looking at this a bit, you can find the specs for the Comet
protocol, such as it is at
http://svn.cometd.com/trunk/bayeux/bayeux.html It's built on top of
JSON but isn't quite JSON-RPC. More of a publish/subscribe model.
The latest version of 'cometd' just released a beta release availab
very nice!
Thanks!
On May 31, 10:31 pm, mdipierro wrote:
> http://web2py.com/examples/default/download
why is counting records "select count(*) " crashing your mysql
database? It seems to me the problem is not the web2py version.
On Jun 2, 7:03 pm, drayco wrote:
> Thank's a lot Dr. Massimo
>
> do you use apache? Yes
> mod_wsgi? Yes
> do you use the built-in web server? No
> do you see memory l
I really like this:
http://furius.ca/beancount/
It should be relative easy to convert it to that the input comes from
a db table and the output is a python dict so that you can render it
in views.
If you can do this in one model and one controller files, it could be
turned into an accounting plu
I am considering developing a web2py small business Accounting
application but I thought I check to see if anyone has created
something already. I'm looking for General Ledger, Receivables and
Payables, and possibly payroll.
Anyone know of such an appliance or of someone developing one?
I use paypal "Website Payments Standard" and the *best* part about
that is that while the user experience is crappy with the redirection,
i *never* learn the user's credit card number, and therefore don't
have to worry about regulations in how that info is handled (which
extends to your server logs
I tried but it still didn't work. What I did is I followed your posts
with the same topic as mine. The function was not called. :(
I spent a lot of times to work this out, but the problem is still
unsolved.
On Jun 2, 4:03 pm, Neveen Adel wrote:
> Hello tracey,
>
> you will define your action in
And I didn't need to restart apache because I had more than 6 user's
simultaneously.
With previous versions of web2py, I only obtained every hour without
use of application
Traceback (most recent call last):
File "gluon/restricted.py", line 178, in restricted
exec ccode in environment
Fil
And I didn't need to restart apache because I had more than 6 user's
simultaneously.
With previous versions of web2py, I only obtained every hour without
use of application
Traceback (most recent call last):
File "gluon/restricted.py", line 178, in restricted
exec ccode in environment
Fil
One of my user told me that He sent in 2 times new registers, and he
didn't obtain answer.
In previous versions of web2py, I never got this error.
On Jun 2, 7:03 pm, drayco wrote:
> Thank's a lot Dr. Massimo
>
> do you use apache? Yes
> mod_wsgi? Yes
> do you use the built-in web server? No
> do
Thank's a lot Dr. Massimo
do you use apache? Yes
mod_wsgi? Yes
do you use the built-in web server? No
do you see memory leaks? No
do you have web2py cron or on off? No
This is the firts error:
Traceback (most recent call last):
File "gluon/restricted.py", line 178, in restricted
exec ccode
Try
http://web2py.com/examples/static/1.77.3/web2py_src.zip
some version are there and some not. Those obviously buggy have been
deleted.
Anyway, I'd like to understand the problem.
do you use apache? mod_wsgi?
do you use the built-in web server?
do you see memory leaks?
do you have web2py cron
Where can I download web2py 1.77.3?
Because my application that's run in webfaction, with MySQL and web2py
1.78.3 needs to restart 4 times at day?
And MySql rollback today, and I obtained a error that's say "server in
process to shutdown"
With web2py 1.77.3 and 1.66.5 I didn't need to do that ac
On Jun 2, 2:04 pm, Thadeus Burgess wrote:
> And for a given field...
>
> db(db.table.id > 0).update(field = None)
You can see all this in the "count / delete / update" section of
http://www.web2py.com/book/default/section/6/5;
The behavior of truncate (i.e., resetting counter) is
http://www.web
And for a given field...
db(db.table.id > 0).update(field = None)
--
Thadeus
On Wed, Jun 2, 2010 at 2:04 PM, Thadeus Burgess wrote:
> db.table.truncate()
>
> --
> Thadeus
>
>
>
>
>
> On Wed, Jun 2, 2010 at 1:05 PM, Vasile Ermicioi wrote:
>> db(db.table.id > 0).delete()
>> no sure what you
db.table.truncate()
--
Thadeus
On Wed, Jun 2, 2010 at 1:05 PM, Vasile Ermicioi wrote:
> db(db.table.id > 0).delete()
> no sure what you mean by entries in a given field
>
>
Since we're talking about retrieve password
I've another issue that needs a fix
in tools.py
please add those
self.settings.retrieve_password_onvalidation = lambda:None # or None
self.settings.reset_password_onvalidation = lambda:None # or None
I wanted to limit this functionality so I had to
On Jun 2, 1:52 pm, weheh wrote:
> @hamdy.a.farag: swet. One of these days I have to memorize the
> bazillion or so auth.settings.
or simply use an IDE / debugger which will do completions for
you!
>
> On Jun 2, 12:53 pm, "hamdy.a.farag" wrote:
>
> > in your model add something like
>
sqlite
On Jun 2, 9:25 am, mdipierro wrote:
> what database system?
>
> On Jun 2, 12:13 am, weheh wrote:
>
> > Massimo, now we're getting somewhere. Thanks. However, I ran into this
> > error:
>
> > Traceback (most recent call last):
> > File "C:\web2py\gluon\restricted.py", line 178, in restri
@hamdy.a.farag: swet. One of these days I have to memorize the
bazillion or so auth.settings.
On Jun 2, 12:53 pm, "hamdy.a.farag" wrote:
> in your model add something like
>
> def set_message(form):
> session.flash = T('hello %(name)s', dict(name=auth.user and
> auth.user.first_name))
>
>
db(db.table.id > 0).delete()
no sure what you mean by entries in a given field
sure !!
you'll have to make a small modification in controller default/user
def user():
form = auth()
if request.args(0) == 'register':
session.flash = 'Registration disabled'
redirect(URL(r=request, c='default', f='index'))
return dict(form=form)
On Jun 2, 7:03 pm, Ja
in your model add something like
def set_message(form):
session.flash = T('hello %(name)s', dict(name=auth.user and
auth.user.first_name))
auth.settings.login_onaccept = set_message
There are things here that are redundant, but you might want to check
against
http://code.google.com/p/web2py/source/browse/.hgignore
In particular, I don't see that you have errors (but might want to);
there is more, but I'll let you look thru it.
- Yarko
On Jun 2, 11:25 am, Doug Warren wrote:
For isntance I have RPX login which creates user profile for each
logged in user.
I would like to give each one of these users there own homepage (i.e.
like twitter) which could be
dynamically created.
So I thought the first task was to see how thiscould be mapped,
perhaps by querying db.profile an
Greetings,
I'm setting up some git repositories for a web2py project where the
staging and some dev will be done under linux while other developers
will be done under win32. For simplicities sake, the pure python
implementation of web2py will be checked in as well as the
applications. win32 file
What would the code be to delete either all entries in a database
table or all entries in a given field within that table?
Actually... Could you just do a redirect if they are not logged in?
Br
jason
- Original message -
>
> Don't forget to disable registration altogether, otherwise a user can
> use /default/user/register link to add himself and thus may have
> access to things you don't want him to
>
> add t
Don't forget to disable registration altogether, otherwise a user can
use /default/user/register link to add himself and thus may have
access to things you don't want him to
add the line:
auth.settings.actions_disabled.append('register')
in your model
what about reusing messages in another applications ?
can you guarantee that all your coworkers use the same typical
string ?
ex:
error_message = T('warning, you're not authorized to access ...')
another developer could do:
error_message = T('you're not authorized to access this page')
think of ho
Did not look into your code. But this kind of situation usually is
caused by a form receives variables from both GET and POST. In this
case, request.vars.myvar=['blah', 'blah'], but
request.get_vars.myvar='blah', and request.post_vars.myvar='blah'. So
you can choose to use only one of it.
On Jun2
Please read this thread:
http://groups.google.com/group/web2py/browse_thread/thread/2b7800cfa079ad5f/28d4c440b2682476
On Jun 2, 9:35 am, Cory Coager wrote:
> Still looking for help if anyone has the answer.
Can you explain more?
On Jun 2, 8:00 am, ChrisM wrote:
> I searched through the list but couldn't find any discussion on this
> topic.
>
> Any ideas how the following can be achieved with routes.py
>
> www.appname.com\userprofilename
>
> I am guessing that there would need to be a db.auth lookup
Yes but you need to use virtualenv. Perhaps somebody else can help you
more with that.
Massimo
On May 31, 11:37 am, Cory Coager wrote:
> Sorry I should have been more clear, its a shared web host running
> python 2.4. I do not have root access. Will this still be possible?
edit views/default/user.html
On Jun 2, 9:16 am, ceriox wrote:
> how i can remove the link to registration page in auth login page?
> i want only registered user can insert a new user
Still looking for help if anyone has the answer.
how i can remove the link to registration page in auth login page?
i want only registered user can insert a new user
On Wed, Jun 2, 2010 at 06:54, hamdy.a.farag wrote:
> I also suggest another modification, to have a global messaging system
> in any application
> in db.py for the welcome scaffolding application, I suggest adding:
>
> from gluon.storage import Messages
> messages = Messages(T)
>
> Now a developer
hmmm. let me think about it.
On Jun 2, 2:04 am, weheh wrote:
> I suppose there's no easy way to get your login message to say
> something like this:
>
> auth.messages.logged_in=T('Welcome ')+auth.user.username
>
> Without fully customizing the login controller. Right?
>
> Same goes for logout.
Thanks!
On 2 Jun, 13:54, Mr admin wrote:
> Here's a section of the book that explains how to do conditional fields on
> forms.
>
> http://web2py.com/book/default/section/10/2?search=spouse
>
> On Wed, Jun 2, 2010 at 6:14 AM, Sverre wrote:
> > I want to hide fields in a form, depending on the
what database system?
On Jun 2, 12:13 am, weheh wrote:
> Massimo, now we're getting somewhere. Thanks. However, I ran into this
> error:
>
> Traceback (most recent call last):
> File "C:\web2py\gluon\restricted.py", line 178, in restricted
> exec ccode in environment
> File "C:/web2py/app
Calling all users in Ireland
I would love to here from you.
Regards
Chrism
Hello,
I've had this issue before, where a string which is passed as part of
request.vars somehow becomes a list when the form is submitted. The
way I got round it at the time was by doing:
if isinstance(thread_id, list):
thread_id = thread_id[0]
However, that just doesn't feel right, and wi
I searched through the list but couldn't find any discussion on this
topic.
Any ideas how the following can be achieved with routes.py
www.appname.com\userprofilename
I am guessing that there would need to be a db.auth lookup to match
the userprofilename
and then pass that to a generic controlle
IS_IN_SET Sorry
more clarification please?
you can do something like the following [just the logic]
db.define_table('my_table', Field('x',.), Field('y',))
in your controller
query = (db.y.id>0)
my_list = [row.name for row in db(query).select()]
db.my_table.y.requires=IS_IN_LIST(my_list)
if var not in m
Here's a section of the book that explains how to do conditional fields on
forms.
http://web2py.com/book/default/section/10/2?search=spouse
On Wed, Jun 2, 2010 at 6:14 AM, Sverre wrote:
> I want to hide fields in a form, depending on the values of a dropdown
> list. Has some a solution?
Thank you, that was the solution I've seached for.
On 2 Jun, 13:21, "hamdy.a.farag" wrote:
> assuming you've
>
> def index():
> form = SQLFORM(db.tab)
> if form.accepts(request.vars, session):
> response.flash = 'x'
> records = db().select(db.tab.ALL)
> return dict(form=fo
oh btw
the image part should look like:
{{=IMG(_src=URL(r=request, c='default', f='download',
args=[record.x]))}}
On Jun 2, 2:21 pm, "hamdy.a.farag" wrote:
> assuming you've
>
> def index():
> form = SQLFORM(db.tab)
> if form.accepts(request.vars, session):
> response.flash = 'x
assuming you've
def index():
form = SQLFORM(db.tab)
if form.accepts(request.vars, session):
response.flash = 'x'
records = db().select(db.tab.ALL)
return dict(form=form, records=records)
then in view you can do something like:
{{extend 'layout.html'}}
{{=form}}
I want to hide fields in a form, depending on the values of a dropdown
list. Has some a solution?
thanks Richard.
I'm going to stick with a web2py solution and remodel my approach.
Instead of creating the troublesome row at invite time I'm going to
create it when a Candidate checks their invites. In the service I'm
building each invite is unique to a Candidate so I won't have
Candidates checki
Not really. The information about the filename must be coded into the
filename in the uploadfolder. But how to get the filename?
On 2 Jun, 11:10, Thadeus Burgess wrote:
> Taken fromhttp://web2py.com/book/default/section/7/2?search=original+filename
>
> Occasionally you may want to store the origi
I also suggest another modification, to have a global messaging system
in any application
in db.py for the welcome scaffolding application, I suggest adding:
from gluon.storage import Messages
messages = Messages(T)
Now a developer is free to set all his messages using the messages
reference and
Taken from http://web2py.com/book/default/section/7/2?search=original+filename
Occasionally you may want to store the original filename in a database
field. In this case, you need to modify the model and add a field to
store it in:
db.define_table('person',
Field('name', requires=IS_NOT_EMPTY
I have an upload field in the DB an want to display the original
filename in a view. How can I do that?
Correction; I just find out how to build debian packages with
build.opensuse.org
http://wiki.opensuse.org/openSUSE:Build_Service_Debian_builds
So now it seems is a very good plan.
regards Mark Breedveld
On 2 jun, 09:57, Mark Breedveld wrote:
> Ps. does anyone know how to contactdimoor his progr
Hi
The default behavior for registration is that a user can register
without password if he just let the pass field empty
is not this wrong?
Is not it better to add a line to the db.py in it like:
db.auth_user.password.requires = [IS_NOT_EMPTY()] to enforce this
behavior for any application creat
Correction his name was Dima
On 2 jun, 09:57, Mark Breedveld wrote:
> Ps. does anyone know how to contactdimoor his progress on the gluon
> packages?
>
> On 2 jun, 09:56, Mark Breedveld wrote:
>
> > Hello everyone,
>
> > I've took a look at build.opensuse.org and seems to be good.
> > I haven't
Ps. does anyone know how to contact dimo or his progress on the gluon
packages?
On 2 jun, 09:56, Mark Breedveld wrote:
> Hello everyone,
>
> I've took a look at build.opensuse.org and seems to be good.
> I haven't tested it, but because I do not have time for that.
>
> But I see how it works and
Hello everyone,
I've took a look at build.opensuse.org and seems to be good.
I haven't tested it, but because I do not have time for that.
But I see how it works and packing web2py should not be a problem.
Because it's mainly moving files around and checking depencies.
But as far as I could see i
actually, what i was trying to achieve is provide a form to the
visitor to input a page number if there are multi pages. The current
problem is, when a page number is submitted, the visitor is not
redirected to that page. I hope I made the question clear. Thank you.
BTW, there is a CRUD to submit
I suppose there's no easy way to get your login message to say
something like this:
auth.messages.logged_in=T('Welcome ')+auth.user.username
Without fully customizing the login controller. Right?
Same goes for logout.
Try specify your sender's name as:
"XYZ"
On Jun2, 2:52pm, Rohan wrote:
> I want to add sender's name in emails. Currently I am able to send
> mails from ad...@example.com but sender's name is displayed as admin
> which is not conveying the proper information. Can I add senders' name
> to ma
69 matches
Mail list logo