Hi Jason,
This would have worked:
db.table.field.label=None
Kind regards,
Annet.
Very nice feature, I am using. but there is a small problem.
to reproduce do this:
set:
auth.settings.registration_requires_verification = True
auth.settings.login_after_registration = True
decorate action with:
@auth.requires(auth.user and not auth.user.registration_key)
user registers and
Or, we need to logout the user and force the to login again.
temporarily solved with auth.settings.verify_email_next = URL(r=request,
c='default', f='user', args='logout')
so when user loggin again he got no auth.user.registration_key
But, there is a way to do it inside tools.py verify_email ?
Thank you Anthony, I knew session.forget() but did not know it would
be so helpful for performance. I'll try that in my projects from now
on.
Regards,
Ray
On Aug 26, 2:42 am, Anthony abasta...@gmail.com wrote:
If you don't explicitly forget the session, the session file will lock on
each
I have a table with standard mail messages, in a form I would like to
have a drop box displaying the subjects of the mail message and when
the user selects a subject I would like to populate a text area with
the standard text. I guess this an AJAX thing, since I know very
little about AJAX I hope
On 26.8.2011 7:57, Jonathan Lundell wrote:
On Aug 25, 2011, at 9:28 PM, Kenneth Lundström wrote:
On 26.8.2011 5:21, Jonathan Lundell wrote:
On Aug 25, 2011, at 4:48 PM, Kenneth Lundström wrote:
I'd like to have three types of routings:
a) web2py.main_domain.comdefaults to init, but you
hello, is it possible to have spell check in a text field?
thank you
Thanks.
It will be very helpful if somebody can update these lines in the book
because it still not clear to me how to use the new syntax in each of these
instances. I still do not know how 'record' is defined here.
db.mytable.name.represent = lambda name: name.capitalize()
I use SQLFORM something like this:
field_list = 'dog_name dog_weight dog_birth_date'.split(' ')
hidden = {'dog_owner' : some_known_value} # We already know who owns
this dog
form = SQLFORM(db.sometable, fields=field_list, hidden=hidden)
When I look at the rendered page, the hidden fields are on
Still can't figure it out, I think I doing something wrong with GAE
but I can't figure out what it is, I've tried searching for it but
can't find any solutions.
I've got to the point where it uploads a blank app that seems to just
display 'Hello world' on the front page and nothing else (which is
I use SQLFORM something like this:
fields = 'dog_name dog_weight dog_birtdate'.split(' ')
hidden = {'dog_owner' : some_known_value} # We already know who the
owner is
SQLFORM(db.dogs, fields=fields, hidden=hidden)
The hidden fields are on the form. When I submit the form, they are
in
plugin_chkeditor has spell check
2011/8/26 António Ramos ramstei...@gmail.com
hello, is it possible to have spell check in a text field?
thank you
--
--
Bruno Rocha
[ About me: http://zerp.ly/rochacbruno ]
[ Aprenda a programar: http://CursoDePython.com.br ]
[ O seu aliado nos
db.dog.owner.represent = lambda value, row: db.person(value).name
Value is the value of the current field, in this example dog owner is
an id of the person for example 1, so to display person name I have
to pass this value to search a person with this id:
db.person(value).name.
Row is the all
Another thing when you are using SQLFORM.grid and .smartgrid this notation
is required:
db.dog.owner.represent = lambda value, row: db.person(value).name
*because this notation raise an error:*
db.dog.owner.represent = lambda value: db.person(value).name
(take this in consideration or you are
I've tried local_import().. Which seems to be deprecated from what
I've read in this group
I've tried from mymodule import class, and this doesn't seem to work
either? Is there any documentation on this? Cause I can't really find
anything that helps me. This is my code:
### controller/default.py
You have the last version?, You have _init_.py in module?, You try changing
objects to another name, pehaps a name-conflict?.
2011/8/26 Jarrod Cugley jcug...@gmail.com
I've tried local_import().. Which seems to be deprecated from what
I've read in this group
I've tried from mymodule import
Thanks to Massimo and Bruno for this. It is very nice to be able to
choose the style of the table. A couple of suggestions. It would be
good if the 'vars' are passed with the 'view', 'edit' etc and then
passed back again, so the order and keywords are persistent. It would
also be useful if the
I have version 1.97.1 which I'm assuming is the latest version
considering I've been coding for around a month now.
I have a blank file in my modules folder called __init__.py
I tried changing the names of things but got the same error
:(
On Aug 26, 8:29 pm, Martín Mulone
The model:
db.define_table('comment', Field('txt'), Field('tag'))
How do I pass/access the variable xyz, and the txt and tag field
values in funcdone below?
def funcdone(form):
comment_id = form.vars.id
...
def post_comment():
xyz = 123
form = crud.create(db.comment,
Wow. Don't ask me why, but it's working now, I didn't change anything
at all... I did restart web2py however...
I'm pretty confused but whatever it was, it's working now, thanks
Martin, I'll be sure to post again if it breaks hahahaha!
On Aug 26, 8:29 pm, Martín Mulone mulone.mar...@gmail.com
Yes you have to reload web2py everytime you make a change when you are using
modules. Or put this line in a top of your model:
if request.is_local: #disable in production enviromentfrom
gluon.custom_import import track_changestrack_changes()
Another: Last web2py is 1.98.2
2011/8/26
Yes, that seems to have fixed it. Thanks!
I know its a simple question but
How to
Remove 2 or more spaces from a string in a simple line of code?
thank you
Good to know.
The difference between
{{rows = dataSet.select()}}
and
{{rows = db.executesql(dataSet._select())}}
is that the former calls the function parse which loops over the
175K rows and converts them into objects.
On Aug 26, 12:08 am, HughBarker hbar...@gmail.com wrote:
Thanks for the
I think you want:
subset=db(db.person.id=100)
db.dog.owner.requires = IS_IN_DB(subset, 'person.id', '%(name)s')
the value of _and is used in validation but ignored when building the
dropdown
On Aug 26, 12:55 am, Noel Villamor noe...@gmail.com wrote:
From the manual:
Look at the source of the code you are deploying. There should be a
file:
web2py/gaehandler.py
for some reason this file did not get deployed on GAE. Perhaps you
accidentally deleted it?
massimo
On Aug 25, 11:07 pm, Jarrod Cugley jcug...@gmail.com wrote:
Oh I didn't know GAE had logs too
def funcdone(form,xyz):
comment_id = form.vars.id
...
def post_comment():
xyz = 123
form = crud.create(db.comment, onaccept=lambda
form,xyz=xyz:funcdone(form,xyz))
return dict(form=form)
On Aug 26, 5:38 am, Noel Villamor noe...@gmail.com wrote:
The model:
import re
text = re.sub('\s\s+',' ',text)
On Aug 26, 6:46 am, António Ramos ramstei...@gmail.com wrote:
I know its a simple question but
How to
Remove 2 or more spaces from a string in a simple line of code?
thank you
Simplicity is an art.
Thank you Massimo
2011/8/26 Massimo Di Pierro massimo.dipie...@gmail.com
import re
text = re.sub('\s\s+',' ',text)
On Aug 26, 6:46 am, António Ramos ramstei...@gmail.com wrote:
I know its a simple question but
How to
Remove 2 or more spaces from a string in a
Can I see the model?
On Aug 26, 4:43 am, Cliff cjk...@gmail.com wrote:
I use SQLFORM something like this:
fields = 'dog_name dog_weight dog_birtdate'.split(' ')
hidden = {'dog_owner' : some_known_value} # We already know who the
owner is
SQLFORM(db.dogs, fields=fields, hidden=hidden)
The
Do you know if the updating from the web2py framework is working yet?
It says it experimental when you do it, but does it work?
On Aug 26, 8:43 pm, Martín Mulone mulone.mar...@gmail.com wrote:
Yes you have to reload web2py everytime you make a change when you are using
modules. Or put this line
I did not check it but I think your idea below should work. Check trunk.
On Aug 26, 2011, at 1:36 AM, Bruno Rocha wrote:
Very nice feature, I am using. but there is a small problem.
to reproduce do this:
set:
auth.settings.registration_requires_verification = True
It works but some problems have been reported under windows due to the
fact that some files are locked and cannot be overwritten during the
update.
On Aug 26, 7:44 am, Jarrod Cugley jcug...@gmail.com wrote:
Do you know if the updating from the web2py framework is working yet?
It says it
' '.join(text.split())
no regex :)
Looked in trunk and issue has been resolved. Thanks.
-Eric
Hallo Martín,
Thanks for your reply.
Unfortunately the problem persists:
I have in Massimo's demo code for the SQLFORM.smartgrid/grid:
def index():
db.define_table('person',Field('name'),format='%(name)s')
db.define_table('dog',Field('name'),Field('owner',db.person),format='%(name)s')
Do you have some field.of type list:... ?
I am having trouble with it in grid.
http://zerp.ly/rochacbruno
Em 26/08/2011 10:54, Johann Spies johann.sp...@gmail.com escreveu:
Hallo Martín,
Thanks for your reply.
Unfortunately the problem persists:
I have in Massimo's demo code for the
making the 'records found' display conditional upon keywords not being
null would be good.
Thanks
Peter
On Aug 26, 11:35 am, peter peterchutchin...@gmail.com wrote:
Thanks to Massimo and Bruno for this. It is very nice to be able to
choose the style of the table. A couple of suggestions. It
To debug the problem, start passing one by one the fields:
fields = [db.dog.id,
db.dog.owner
]
SQLFORM.grid(
...
fields=fields,
...
)
2011/8/26 Bruno Rocha rochacbr...@gmail.com
Do you have some field.of type list:... ?
I am having trouble with it in grid.
Massimo,
Thank you.
Of course.
Here are are the real table defs:
+++
++
db.define_table('purchase_orders',
Field('issue_date', 'date'),
Field('number', length=24, requires=IS_NOT_EMPTY(),
OK, maybe my last question was phrased so naively that it wasn't fit
to answer. So I'll re-phrase: the web2py manual says that to run
external cron, the -J and -N command line parameters need to be
set.
If you are running external cron, make sure you add the -N command
line parameter to your
Web2py comes with jquery bundled in.
You can find some simple examples at
http://www.web2py.com/book/default/chapter/10,
That should get you started.
The jquery website has a reasonably good getting started tutorial.
Also pretty decent api and event documentation. I think the .change
event
Hi, I've just published a collection of plugins which I'd created for
some web2py products (mainly cms sites) in my job:
The index page:
http://dev.s-cubism.com/web2py_plugins
The plugins are below:
[Form Widgets]
Horizontal Radio Widget http://dev.s-cubism.com/plugin_hradio_widget
Multiple
WOW. fantastic!
massimo
On Aug 26, 11:35 am, kenji4569 hos...@s-cubism.jp wrote:
Hi, I've just published a collection of plugins which I'd created for
some web2py products (mainly cms sites) in my job:
The index page:http://dev.s-cubism.com/web2py_plugins
The plugins are below:
[Form
How would you write a cron job that automatically restarts apache when
the file web2py/VERSION is touched/modified and works on both ubuntu
and fedora?
what about something like this ?
#!/bin/bash
if test /path/to/VERSION -nt /path/to/VERSION.track
then
# touch VERSION.track
# restart apache
else
nothing
fi
and run it in cron once every 5 minutes or so
On Fri, Aug 26, 2011 at 5:43 PM, Massimo Di Pierro
massimo.dipie...@gmail.com
Hi Ross,
I have explained myself too convoluted!
You are right on is_mobile and polymorphism, I read too
approximatively the code.
You are right also on attch always the is_mobile True/False to the
result object, is more simple to test for true false than that if
exists or not.
I hope it will
On Aug 26, 2011, at 9:51 AM, Sebastian E. Ovide wrote:
what about something like this ?
#!/bin/bash
if test /path/to/VERSION -nt /path/to/VERSION.track
then
# touch VERSION.track
# restart apache
else
nothing
fi
and run it in cron once every 5 minutes or so
I think that's
I submitted this to Massimo for inclusion. Now we wait :)
These are really great. The color picker plugin and form plugins are really
useful to me. Thank you for sharing these. Maybe some of these could be
integrated into web2py.
Forgive me if I have misunderstood your question, but it sounds like you are
expecting web2py to start external cron for you. If this is the case, then
that is incorrect. What external cron means is a completely separate
process (in this case, the Unix cron scheduler) that needs to run a
Correction on that last, -S is what tells web2py to not start Rocket, while
-J is what tells web2py that it is running as a background process.
Great!
Lazy Options and Anytime are amazing,
AnyTime fits perfectly with the new web2py scheduller!
On Fri, Aug 26, 2011 at 1:35 PM, kenji4569 hos...@s-cubism.jp wrote:
Hi, I've just published a collection of plugins which I'd created for
some web2py products (mainly cms sites) in my job:
I got:
Traceback (most recent call last):
...
db.item.lazy_total_price=Field.lazy(lambda
self:self.item.unit_price*self.item.quantity)
AttributeError: type object 'Field' has no attribute 'lazy'
Version 1.98.2 (2011-08-25 19:11:31)
Martin
2011/8/25 Massimo Di Pierro massimo.dipie...@gmail.com
Hi, the method you mentioned for application upload via url does the
trick for large app files. The problem is that the user is forced to
place an installer online somewhere as source for download. It would
be very useful to be able to upload files normally. Also tried to
upload with git but i
I think that some of this should be included in web2py!
Great work!
2011/8/26 Massimo Di Pierro massimo.dipie...@gmail.com:
WOW. fantastic!
massimo
On Aug 26, 11:35 am, kenji4569 hos...@s-cubism.jp wrote:
Hi, I've just published a collection of plugins which I'd created for
some web2py
+1
specially like Anytime and Solid Table
On 26-08-2011 19:18, Ross Peoples wrote:
These are really great. The color picker plugin and form plugins are really useful to me. Thank
you for sharing these. Maybe some of these could be integrated into web2py.
+1
Alan Etkin,
Also tried to upload with git but i dont see how to do it for one application
into
the pre-installed web2py folder.
The way is copying web2py/applications/YOUR_APP folder to same cloned folder.
2011/8/27 Alan Etkin spame...@gmail.com:
Hi, the method you mentioned for
Does it work if you set db.supplier_contacts.supplier_id.writable = True in
the controller function?
On Friday, August 26, 2011 11:12:31 AM UTC-4, Cliff wrote:
Massimo,
Thank you.
Of course.
Here are are the real table defs:
Excellent! This is what I love w/ web2py, it is s flexible!
On Aug 27, 12:14 am, Massimo Di Pierro massimo.dipie...@gmail.com
wrote:
def funcdone(form,xyz):
comment_id = form.vars.id
...
def post_comment():
xyz = 123
form = crud.create(db.comment, onaccept=lambda
I would take a patch to include anytime.js in web2py as a replacement
to calendar.js. I like the way it is internationalized.
I would also take a patch to add multiline support to SQLTABLE
On Aug 26, 2:07 pm, DenesL denes1...@yahoo.ca wrote:
+1
specially like Anytime and Solid Table
Do you want to host and manage all plugins? You have done an excellent
job here. You deserve to be the plugin master.
Massimo
On Aug 26, 11:35 am, kenji4569 hos...@s-cubism.jp wrote:
Hi, I've just published a collection of plugins which I'd created for
some web2py products (mainly cms sites)
just asking again ... thanks.
In moving my database backend to Oracle, I'm getting this error:
ProgrammingError: LOB variable no longer valid after subsequent fetch
when trying to access the db.auth_event table. The db.auth_group table
works (it also has a CLOB type field).
There are posts from 2009 that this problem has
Hi,
Should the following work (directly, e.g. from shell)?:
IS_IN_SET([1,2,3])(2)
I can see that it returns an error if the __call__ arg is not a string.
The following works ok:
IS_IN_SET([1,2,3])('2')
So my question is: should IS_IN_SET work directly with integers (instead of
I'm trying to set up and use web2py using the Amazon-branded Linux AMI
-- aka ami-8c1fece5
I seem to have it running on localhost -- but can't access it from a
remote machine, although I do have maximum security permissions turned
on, and am trying to access using the verified public IP address :
OK, I've totally misunderstood what web2py external cron integration
meant. I thought that I would be integrating system cron to run using
the web2py crontab. I understand now that it's just describing a way
to use the system cron to call web2py, which means it's easy to set
command line
oops! mistakes.
How to add a application:
1. clone from fluxflex repository.
2. copy your application(in web2py/applications/YOUR_APP) to
public_html/applications folder in the repository.
3. add new files to the repository.
4. commit and push
2011年8月27日4:55 Yota Ichino www.i...@gmail.com:
Can you tell me the steps to reproduce the problem. Oracle deals with
BLOB in a different ways that any other database.
On Aug 26, 4:53 pm, Tim Korb jtk...@gmail.com wrote:
In moving my database backend to Oracle, I'm getting this error:
ProgrammingError: LOB variable no longer valid after
I think you are right.
On Aug 26, 5:10 pm, Carlos carlosgali...@gmail.com wrote:
Hi,
Should the following work (directly, e.g. from shell)?:
IS_IN_SET([1,2,3])(2)
I can see that it returns an error if the __call__ arg is not a string.
The following works ok:
Hello,
I recently decided to use web2py to develop a website and I have
Apache server with mod_wsgi on RedHat CENTOS.
What I want is to be able to develop a website using web2py and then
allow others to edit this website through web2py. For that it means
that I should be able to have access to
The Amazon AMI is pretty locked down by default. I presume you've reviewed
all the docs?
http://docs.amazonwebservices.com/AWSEC2/latest/UserGuide/index.html?LinuxAMIUserGuide.html
Would you be able to go with Ubuntu or some other AMI?
I am not sure whether I should try setting up a virtual host for *443?
If you´re running your web2py instance on an virtual host you have to
have the virtual host directive for 443 too. I could send you my virutla
host file.
Kenneth
FYI: I ran into a problem using plugin_ckeditor when running web2py
on python 2.5.2. It generates an error associated with modules/
plugin_ckeditor.py at line 44:
43 *self.settings.extra_fields.get(upload_name, []),
44 migrate = migrate,
When I upgraded python to 2.7.2 everything worked as
I'm kind of confused because I downloaded web2py on the mac and I have
a web2py.app file that has the folder 'Contents' inside it which then
has inside it: Frameworks, MacOS, Resources.
I've been treating Resources as my top-level folder for web2py because
it seems to be what works, but it
On Aug 26, 2011, at 6:32 PM, Jarrod Cugley wrote:
I'm kind of confused because I downloaded web2py on the mac and I have
a web2py.app file that has the folder 'Contents' inside it which then
has inside it: Frameworks, MacOS, Resources.
I've been treating Resources as my top-level folder for
Thank you, much for getting back with me.
I have news :) I got what I tried at 2) working. I was able to disable
the check for secure connection. What I forgot to do is to make sure
there is a parameters_.py file for the port I set my virtual host
on (I only had parameters_8000.py).
However,
What a fantastic collection of plugins. Design wise I would say you are in
the right zone, clean, light and nice examples.
Great job!
Chris
I am trying to use fluxflex but I must be missing something
fundamental as I do not understand what is happening when I follow the
instructions.
First of all, it all seems to be working fine. I can see the site and
I can log in admin etc...
When I use git to clone the fluxflex install on my
Those two lines need to be exchanged since the syntax is only
supported in 2.7 and later.
On Aug 26, 8:24 pm, tomt tom_tren...@yahoo.com wrote:
FYI: I ran into a problem using plugin_ckeditor when running web2py
on python 2.5.2. It generates an error associated with modules/
Ok, I've done that, but now what am I meant to do with the GAE
launcher settings? The documentation in the web2py book makes no
sense, I've done what it says but it doesn't work? In GAE launcher
what are the following settings meant to be?:
Application Name = ?
Application Directory = ?
when I
This is an old video but perhaps it may help:
http://vimeo.com/3703345
On Aug 26, 9:51 pm, Jarrod Cugley jcug...@gmail.com wrote:
Ok, I've done that, but now what am I meant to do with the GAE
launcher settings? The documentation in the web2py book makes no
sense, I've done what it says but it
Massimo, I watched the video, it was very helpful thank you, but I'm
still confused with how to upload my app onto GAE.
My app is inside the following directory: /web2py/applications/myapp
So I set my GAE launcher directory to: /web2py/
So I leave the application name empty? And where do the
Ok after hours of fiddling (yes it somehow took me that long HAHAHA) I
figured it out, thanks for the assistance Mass and Jon :)
On Aug 27, 2:08 pm, Jarrod Cugley jcug...@gmail.com wrote:
Massimo, I watched the video, it was very helpful thank you, but I'm
still confused with how to upload my
One more thing, right now my URL is:
http://1.myapp.appspot.com/myapp/default/index
How would I make this:
http://myapp.appspot.com/
Without breaking everything?
On Aug 27, 3:15 pm, Jarrod Cugley jcug...@gmail.com wrote:
Ok after hours of fiddling (yes it somehow took me that long
Have you looked at this section of the book yet:
http://web2py.com/book/default/chapter/04#URL-Rewrite
On Saturday, August 27, 2011 1:22:53 AM UTC-4, Jarrod Cugley wrote:
One more thing, right now my URL is:
http://1.myapp.appspot.com/myapp/default/index
How would I make this:
Yeah but I didn't understand it at all really on my first read through
so I'm going to have to go back and read it over of course :)
On Aug 27, 3:26 pm, Anthony abasta...@gmail.com wrote:
Have you looked at this section of the book
yet:http://web2py.com/book/default/chapter/04#URL-Rewrite
I can't figure out where my source code install is meant to be placed?
It just says I download the source code and type Python2.7 web2py and
it will work? But I get this error:
/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/
Contents/MacOS/Python: can't open file 'web2py':
Also, look at /web2py/router.example.py and /web2py/routes.example.py (note,
if you want to use router.example.py, you have to rename it to routes.py,
not router.py).
Anthony
On Saturday, August 27, 2011 1:32:15 AM UTC-4, Jarrod Cugley wrote:
Yeah but I didn't understand it at all really on
Go to GAE dashboard and manage versions choose the default version.
rename your app to 'init'
Then you have now myapp.appspot.com
Oh interesting! Both great tips guys thanks Anthony and Bruno :)
On Aug 27, 3:37 pm, Bruno Rocha rochacbr...@gmail.com wrote:
Go to GAE dashboard and manage versions choose the default version.
rename your app to 'init'
Then you have now myapp.appspot.com
93 matches
Mail list logo