I sent massimo the source as requested. note that my code does not
display your source code in the ticket when running on GAE, and
perhaps when running elsewhere, and except when the problem is in my
view it's good enough for me.
thanks,
cfh
On Jan 21, 3:47 pm, Jeff Bauer jba...@rubic.com
On Jan 22, 1:56 am, Fran francisb...@googlemail.com wrote:
We've been building a framework for disaster response for over a year
now Haiti put it to the test as we went live with it.
Congratulations!
I heard a Hillary Clinton say something today about technology being a
resource that can be
2010/1/21 Ivan P ivanv...@gmail.com:
Although, I take my words back. My way is not the simplest. =) But it
is not hard at all and is powerful.
Thanks. I will try it.
Regards
Johann
--
You received this message because you are subscribed to the Google Groups
web2py-users group.
To post to
Firefox 3.6 has been released and opens up some new paradigms for file
uploads: Browser supports drag and drop file upload - try it, very
cool. Needs server side support though.
http://hacks.mozilla.org/2009/12/uploading-files-with-xmlhttprequest/
--
You received this message because you are
Sweet. Thanks for the info :)
On Fri, Jan 22, 2010 at 9:15 AM, Anand Vaidya anandvaidya...@gmail.comwrote:
Firefox 3.6 has been released and opens up some new paradigms for file
uploads: Browser supports drag and drop file upload - try it, very
cool. Needs server side support though.
By searching for exec_environment limitations I found a recent
thread pointing out to use
import os
os.chdir('/path/to/web2py/')
from gluon.shell import env
globals().update(env('you_app_name', import_models=True))
# now do whatever you need you can use request, db, helpers, etc.
when accessing
Ubuntu defines apache2-worker when installing mod-wsgi, but don't uninstall
when you change to prefork.
So you can use the setup_web2py.sh script in ubuntu and after install php.
2010/1/22 Graham Dumpleton graham.dumple...@gmail.com
Apache/mod_wsgi can work with prefork, although daemon
On Jan 21, 11:11 pm, Thadeus Burgess thade...@thadeusb.com wrote:
Like you I also do not feel the need to develop something when there is no
community
push for it (hence the reason I have put plugincentral off for so long).
Hi Thadeus, Please be aware that the majority (incl. me) who
2010/1/20 mdipierro mdipie...@cs.depaul.edu:
You should not block access to thinks that are in static. Things in
static should be considered ublic by default so that you can ask the
web server to serve then and by-pass web2py. This is an optimization
that you will need in production and cannot
I just discovered thsi LOAD function and I'm loving it!
very well done guys!! :)
just one question, I'm loading via ajax a div that takes some seconds
to come up.
in the mean time a 'loading...' string appears in the div.
is there a way to specify what has to be written (and how) while
loading?
Most excellent work.
--
You received this message because you are subscribed to the Google Groups
web2py-users group.
To post to this group, send email to web...@googlegroups.com.
To unsubscribe from this group, send email to
web2py+unsubscr...@googlegroups.com.
For more options, visit this
If I understand you added a Field to auth_user but you do not want to
display it in forms.
You can do
db.auth_user.fieldname.writable=db.auth_user.readable=False
On Jan 21, 11:01 pm, alain alain.da...@gmail.com wrote:
I have enabled the built-in auth module and it is working fine.
However
cool!
On Jan 22, 3:15 am, Anand Vaidya anandvaidya...@gmail.com wrote:
Firefox 3.6 has been released and opens up some new paradigms for file
uploads: Browser supports drag and drop file upload - try it, very
cool. Needs server side support though.
I cannot think of any but, if you can, do not use this, it is
convoluted. Use
web2py.py -S app -M -R yourscript
instead
On Jan 22, 5:37 am, baloan balo...@googlemail.com wrote:
By searching for exec_environment limitations I found a recent
thread pointing out to use
import os
You get invalid requests if the url is wrong or contains invalid chars
(the filename cannot contain special chars or spaces, only
alphanumeric and -).
On Jan 22, 8:23 am, Johann Spies johann.sp...@gmail.com wrote:
2010/1/20 mdipierro mdipie...@cs.depaul.edu:
You should not block access to
Fantastic, Fran! This is the web2py project that makes most proud.
--
You received this message because you are subscribed to the Google Groups
web2py-users group.
To post to this group, send email to web...@googlegroups.com.
To unsubscribe from this group, send email to
I have a SQLFORM.factory with a Field that requires a custom class to
incremet a value.
It runs, but I can't understand how I can udate the field value after
form.accepts and before form is exposed.
Have same example?
Thanks
leone
--
You received this message because you are subscribed to the
David (and all),
do not feel the need to be entitled. Push, push hard if I you believe
in it.
I consider participation a net positive experience.
You either add to the group or learn from your mistakes, as I can
attest having made my fair share of them since joining.
This group is the medium to
I have a SQLFORM.factory with a Field that requires a custom class to
incremet a value.
It runs, but I can't understand how I can udate the field value after
form.accepts and before form is exposed.
Have same example?
Thanks
leone
--
You received this message because you are subscribed to the
If I understand correctly you could use onvalidation.
Example:
def your_action():
def funcx():
# code that runs after validation
...
if form.accepts(..., onvalidation=funcx):
...
On Jan 22, 10:51 am, leone handja...@gmail.com wrote:
I have a SQLFORM.factory with a Field that
I done it, but when I update forms.vars. with the new value it is
not update in the form.
Have you a suggest?
leone
On 22 Gen, 17:03, DenesL denes1...@yahoo.ca wrote:
If I understand correctly you could use onvalidation.
Example:
def your_action():
def funcx():
# code that runs
Very cool indeed, what is the necessary server part?
alex f
El 22/01/2010 10:15, Anand Vaidya escribió:
Firefox 3.6 has been released and opens up some new paradigms for file
uploads: Browser supports drag and drop file upload - try it, very
cool. Needs server side support though.
Can you post your code?
On Jan 22, 11:14 am, leone handja...@gmail.com wrote:
I done it, but when I update forms.vars. with the new value it is
not update in the form.
Have you a suggest?
leone
On 22 Gen, 17:03, DenesL denes1...@yahoo.ca wrote:
If I understand correctly you could use
I suppose that my error is in setting the new value to field.
I am confused.
def index():
form = SQLFORM.factory (
Field('autonumber','integer', requires=IS_AUTONUMBER
(progfile, 1)),
)
def upd_auto(form):
form.custom.autonumber = form.vars.autonumber
So I'm tinkering with Jython again. Last time I tinkered, I found that
routes didn't work (for static files). I just found out why...but
before the explanation...the fix:
change:
if isinstance(stream, str):
in response.stream() to:
if isinstance(stream, (str, unicode)):
The reason
Here's another quickie:
Running jython.bat web2py.py -L options.py would fail to load the
options file.
In widget, line 748, make it try again with fewer parameters:
if options.config:
try:
options = __import__(options.config, [], [], '')
except Exception:
Not sure I understand what this supposed to do. Would you explain it
once more.
On Jan 22, 10:47 am, leone handja...@gmail.com wrote:
I suppose that my error is in setting the new value to field.
I am confused.
def index():
form = SQLFORM.factory (
This is a major discovery. Would you send me a patch?
On Jan 22, 10:58 am, Timothy Farrell tfarr...@swgen.com wrote:
So I'm tinkering with Jython again. Last time I tinkered, I found that
routes didn't work (for static files). I just found out why...but
before the explanation...the fix:
Thanks Denes and, I must say, this is the most supportive group I have
ever experienced.
However, I still think that non-contributors should offer more
encouragement than pushiness.
Hmm, on the other hand, I guess it's pushiness that gets the job
done...
Thadeus, stop messing around and get
On Jan 22, 1:14 pm, villas villa...@gmail.com wrote:
Thadeus, stop messing around and get that PluginCentral finished!!!
+1 ;)
--
You received this message because you are subscribed to the Google Groups
web2py-users group.
To post to this group, send email to web...@googlegroups.com.
To
script
jQuery(document).ready(function(){
jQuery('#mySelect').change(function(){
if(jQuery('#mySelect').val()=='Specify...')
var newoption = prompt(Your choice:,);
jQuery.post({url:'{{=URL
(r=request,f='register_new_option')}}',data:'option='+escape
(newoption)});
How would you validate the field?.
--
You received this message because you are subscribed to the Google Groups
web2py-users group.
To post to this group, send email to web...@googlegroups.com.
To unsubscribe from this group, send email to
web2py+unsubscr...@googlegroups.com.
For more
Very simple: IS_AUTONUMBER return an incremental value.
It runs well if I use SQLFORM with a db linking the validator to a
field before
calling SQLFORM, so I view the value in the form.
But using SQLFORM.factory I obtain the correct value in form.vars
object, but I want
to see it on the screen
I trying to export a sqlite db with
db = DAL('sqlite://storage.sqlite')
db.export_to_csv_file(open('/home/www-data/web2py/convenios.csv', 'wb'))
but it creates a file with only:
END
What could be wrong? Someone have this problem before?
Exporting each table works.
--
You have to define your tables before you export to csv, web2py will
only export the tables it knows about.
so
db = DAL('...')
db.define_table(...)
db.export_to_csv_file(open(file))
-Thadeus
On Fri, Jan 22, 2010 at 12:51 PM, Alexandre Andrade
alexandrema...@gmail.com wrote:
I trying to
Oh right, the patch patch. Here you go for both of them.
-tim
On 1/22/2010 11:36 AM, mdipierro wrote:
patch patch ...
notice that web2py worked with jthon2.5rc2 but not with table
jython2.5 apparently because of a runaway bin in Java regex that sun
marked as won't fix. This was a problem in
really thanks.
2010/1/22 Thadeus Burgess thade...@thadeusb.com
You have to define your tables before you export to csv, web2py will
only export the tables it knows about.
so
db = DAL('...')
db.define_table(...)
db.export_to_csv_file(open(file))
-Thadeus
On Fri, Jan 22, 2010
something like this?
script
jQuery(document).ready(function(){
jQuery('#mySelect').change(function(){
if(jQuery('#mySelect').val()=='Specify...')
var newoption = prompt(Your choice:,);
var d = jQuery.json({url:'{{=URL
(r=request,f='register_new_option')}}',data:'option='+escape
I still do not understand. I want to know what you try to accomplish,
not how you do it.
On Jan 22, 12:38 pm, leone handja...@gmail.com wrote:
Very simple: IS_AUTONUMBER return an incremental value.
It runs well if I use SQLFORM with a db linking the validator to a
field before
calling
thanks!
On Jan 22, 12:56 pm, Timothy Farrell tfarr...@swgen.com wrote:
Oh right, the patch patch. Here you go for both of them.
-tim
On 1/22/2010 11:36 AM, mdipierro wrote:
patch patch ...
notice that web2py worked with jthon2.5rc2 but not with table
jython2.5 apparently because of
Nice code but what I meant to say is that allowing the user to add a
new option is basically the same as saying accept anything but empty
(unless you have a list of all fruits somewhere).
Just changing the validator to IS_NOT_EMPTY would do.
On Jan 22, 2:02 pm, mdipierro mdipie...@cs.depaul.edu
looks like a corrupted .table file
-Thadeus
On Fri, Jan 22, 2010 at 1:18 PM, vince lapcc...@gmail.com wrote:
i just look into the error log for some clean up and found several
ticket with the following errors. i am using 1.74.6, any ideas?
Traceback (most recent call last):
File
true
On Jan 22, 1:25 pm, DenesL denes1...@yahoo.ca wrote:
Nice code but what I meant to say is that allowing the user to add a
new option is basically the same as saying accept anything but empty
(unless you have a list of all fruits somewhere).
Just changing the validator to IS_NOT_EMPTY
Hmm, I've been running into this problem a bunch today. WinXP with
source web2py 1.74.5 and SQLite. My .table files keep getting
truncated to 0 bytes for some reason and then web2py chokes.
~Brian
On Jan 22, 2:13 pm, Thadeus Burgess thade...@thadeusb.com wrote:
looks like a corrupted .table
Are you using the web2py binary or source?
Did you delete only the .table or everything in databases?
Does you app run if you set migrate=False for all tables?
Massimo
On Jan 22, 4:11 pm, Brian M bmere...@gmail.com wrote:
Hmm, I've been running into this problem a bunch today. WinXP with
For me it's been the source distribution. I'm not 100% sure, but it
seems to be happening even when I haven't touched the .table file (I
know I haven't touched them) nor have I made any changes to the DAL
table definition that matches the file. The .table file is there and
is 1K and then for
If the options are in list or tuple, than for practical consequences,
they are set in stone and there is no way you can allow a user to add
one. Unless, as Denes suggest, you use the list to make the dropdown
but you do not use the validator to validated.
On Jan 22, 10:47 pm, NeonGoby
I have a class called create_challenge here:
http://code.google.com/p/pledgedrivetracker/source/browse/pledgedrives/controllers/default.py?spec=svn74b5784e200a53af235d6ea9abc83359e0ce3196r=74b5784e200a53af235d6ea9abc83359e0ce3196#415
This model for the challenge has a foreign key to the person
Hi
So you can do
IS_INT_IN_RANGE(v1, v2, error_message=T(enter a value between %(min)s and
%(max)s))
or any other string containing the min and max mapping keys,
@Denzel
I can't get it working using this either
I also have a nother question :
In google chrome the upload field displays
This would be really valuable as we currently have teams of volunteers
doing labouring away doing manual data entry which is slow for us
tedious for them!
http://trac.sahanapy.org/wiki/SpreadsheetImporter
Many thanks if you can come assist us with this task!
Fran.
--
You received this
50 matches
Mail list logo