I don't know if having a field using the same name as the table was a
problem, but I changed it anyway. It was confusing.
But I finally figured out my problem was in the following lines (Note that
I replaced the table name from mpn to part:
db.part.iditm.requires = IS_IN_DB(db, 'item.ipn')
d
Yes sure
On Sat, 17 Dec 2011 21:33:20 +0530, Javier Quarite
wrote:
On Sat, Dec 17, 2011 at 10:51 AM, chandrakant kumar
wrote:
Hi Javier
I'm working on same, let me know if we can collaborate.
Really? Well I'm actually beginning with web2py, It just came as an idea
this project becaus
Dear All,
i am trying to use mod_wsgi with apache on fedora i installed
web2py
in var/www/ and i unzipped it , and i edited the httpd.conf and added
the virtual host script but it keeps giving me this error with i do
"$
service httpd start "
the error is :
bad user name : root@linux
what to do i
You have an error in your Apache configuration somewhere, that much is
obvious. Please post the part of your httpd.conf that you've changed and
any other changes that you've made to the server configuration.
*Scenario*
1. #model db.py
db.define_table('specializzazioni',
Field('specializzazione',
type='string',notnull=True,label=T('Specialization')),
format='%(specializzazione)s',
)
db.define_table('t_valutazione_risorsa',
Field('f_specializzazione',type='list:referenc
Ok, I found the mistake. Somehow, I deleted the __init__.py in the modules
directory.
So sorry, for the post.
Hi Massimo,
it should be similar to the .contain() method. It allows to pass the
"all=True" parameter. for checking more than a contains condition.
It could be something like (in dal.py):
In the class Expression(object):
def like(self, value, caseInsensitive=True):
if caseInsensitive and
I agree with him/her
On 18 dic, 02:05, Massimo Di Pierro
wrote:
> http://pixelturf.com/2011/12/15/if-python/
>
> :-)
And what if DAL supported statements like this? I think it doesen't by
now:
db(Query(db.mytable.myfield, "mystringoperator", myvalue)).select()
Would that be a possible to implement, enhanced way of querying the
database for the framework?
Does it follows B. Will A option?
On 17 dic, 16:18, Mass
I cannot reproduce this error running the exact code you have below.
Anthony
On Sunday, December 18, 2011 5:16:48 AM UTC-5, Paolo Caruccio wrote:
>
> *Scenario*
>
> 1. #model db.py
> db.define_table('specializzazioni',
> Field('specializzazione',
> type='string',notnull=True,label=T('Spe
On Saturday, December 17, 2011 11:02:49 PM UTC-5, Massimo Di Pierro wrote:
>
> The jquery.checkbox plugin replaces the usual checkbox with a [yes]/
> [no] slider. If I replace 'slide' with 'click' the [yes]/[no] behaves
> the opposite way (yes for unchecked and no for checked). weird.
Are you say
We do support something silimilar:
db(Query(db, db._adapter.EQ, db.mytable.myfield, value))>select()
but it is not advertised because this is an internal issue and do not
promise backward compatibility.
We also support
>>> e = Expression(db,"mytable.myfield LIKE 'value' ")
>>> db(db.mytable)(e)
Hi!
It worked for me
Thanks
Gerd
That is correct. I could not figure out the problem so I left "live"
in there. If you or anybody else have any time to experiment would be
great. I will soon release an app that uses this so you may want to
wait for that to test it.
massimo
On Dec 18, 9:29 am, Anthony wrote:
> On Saturday, Decem
My fault.
I omitted to say that the error occurs after some options have been
selected and form is submitted leaving empty the text input.
Thank you for your consideration.
Paolo
OK, I'll wait for the app.
On Sunday, December 18, 2011 10:39:06 AM UTC-5, Massimo Di Pierro wrote:
>
> That is correct. I could not figure out the problem so I left "live"
> in there. If you or anybody else have any time to experiment would be
> great. I will soon release an app that uses this so
I have 3 tables:
db.post, (post title, post content)
db.tag, (tag names)
db.post_tags (1:N relationship)
I want to create a page to allow a post to be created and tags to be
added to the post.
The tags can be existing or new.
I can create the form with SQLFORM + extra form elements (a field
Hi is there a built-in editor for textarea fields that can be used?
Thanks!
Why pluralize by default!!???!
that ONLY work for english language, in spanish isn't so simply like add
"s" for everything. I hate that, is like Rails...
please, don't go in the wrong way...
can I get my WELL FORMED labels back in some way?
thanks.
Good point -- maybe that should be easier to turn off. For now, you could
do something like this (after your last table definition):
for table in db.tables:
db[table]._plural = db[table]._singular
Or if you don't like the singular conversion either, you could do:
db[table]._plural = db[
Are you looking for a WYSIWYG editor? Nothing built in, but there are some
plugins:
https://bitbucket.org/PhreeStyle/web2py_ckeditor/src
https://github.com/rochacbruno/Movuca/blob/master/modules/plugin_ckeditor.py
(based on the one above)
http://dev.s-cubism.com/plugin_elrte_widget
It's also n
sorry if my speech is annoying, but it's really irritating.
My apologies.
This is testing on GAE Locally
extra fields:
auth.settings.extra_fields['auth_user']= [
Field('City'),
Field('State'),
Field('Country'),
Field('Profile_Name'),
Field('Avatar', 'upload')]
When the user registers i get a "unrecoverable error message" after
submission. I checked the db
Massimo,
This seems to be a GAE file size issue. i checked the error log and
even though the file is under 1 mb it was saying that it was too
large. Maybe the dimensions of the photo were too large as opposed to
the actual disk space of the file? Either way it is not a problem with
Web2py, just
Hi!
Voted
regards
Gerd
It worked for me.
Thanks,
Bruce
On Dec 16, 4:51 pm, Massimo Di Pierro
wrote:
> I apologize posting the electronic version of the book4thed in html
> andpdfis taking longer than expected but truly I am almost done. The
> delay was due to these facts:
>
> 1) complete rewrite of the online book app
do other gluon.contrib modules import? is the file somehow missing for you?
I think what you want is for the login cookie to be a browser session
cookie and I'm not sure how to do that or if it's possible without
customization.
In this age when you pretty much never quit the browser, I'm not sure it's
that useful.
I have been using WYMeditor as WYSIWYM (What You See is What You Mean)
editor and it works quite nicely with some tweaking.
https://github.com/wymeditor/wymeditor is where all the action is, their
web page is outdated.
Perhaps this is because of all the problems from the times when WYSIWYG
edi
Hi everyone,
Is there any chances to see (in the near future) the websocket technology
becoming an integrated part of web2py framework?
As intranet apps are becoming more demanding for real time data, websockets
are the solution but it must be integrated into w2p.
Thanks
Hi,
Javascript might help you i guess,
Event will be the "onUnload" in body tag, and your function will be
lauching a popup (window.open) with the exacte url used by logout button.
This should suffice unless user has blocked popups from your application.
Hi,
I have one form created with SQLFORM and another form created with
SQLFORM.grid. Each form has its own submit-button.
Is there a simple way to concatanate these forms to one form, which could
be sent with one submit-button?
Regards, Martin
Voted
OK, I've isolated the issue. Again, I've placed one of the form fields in a
LOAD wrapper. The POST action for the form does send a value for this field
(according to Firebug), but web2py doesn't receive a value for it. Printing
the form.error that is thrown results in this:
So the question is
Would that work when the user quits when visiting a different web site?
chawk,
the problem is that the upload field in web2py does not use blobstore on
GAE, it uses a blob property on the model. very different, and limited to
1mb (or maybe something smaller based on your test). if you want the file
size permitted by the blobstore, check out
http://www.web2pyslic
Nice
http://www.linuxjournal.com/slideshow/readers-choice-2011?page=27
I succeeded in removing the DIV wrapper from the select widget, but that
didn't solve the problem. So I've got a perfectly formed HTML form, sent
properly by POST, but this one field isn't being processed! AARGH!
I voted too. +1
This is certainly my experience. Coming to programming "backwards" through
web-design, I stumbled into JavaScript first, then PHP. When I started
coding in Python it was like a breath of fresh air.
hi,
I just noticed that webfaction increased memory from 80 to 256Mb
important to notice that this is application memory
"This is the actual memory available to your long-running processes
(for instance, your Rails or Django processes). Unlike on a VPS, the
memory used by the operating system, the
Hi,
I have this ticket when upgrade to 1.99.4:
'NoneType' object has no attribute
'strftime'VERSIONweb2py™(1, 99, 4, datetime.datetime(2011, 12, 14, 14, 46,
14), 'stable')PythonPython 2.7.1: /usr/local/bin/pythonTRACEBACK
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
18.
Traceba
sorry, is related with this:
db.actividades.fecha.represent = lambda *v, r: v.strftime(*'%d-%m-%Y')
we do have some websocket login in web2py.js (included in all pages)
and gluon/contrib/comet_messaging.py to handle serverside, based on
tornado.
eventually we should document it and improve functionality.
On Dec 18, 1:42 pm, Khalil KHAMLICHI
wrote:
> Hi everyone,
> Is there any chances to see (
It is impossible to reliable detect that a user has a left a web site
unless we use websockets.
On Dec 18, 4:01 pm, pbreit wrote:
> Would that work when the user quits when visiting a different web site?
db.actividades.fecha.represent = lambda v, r: r.strftime('%d-%m-%Y')
should be
db.actividades.fecha.represent = lambda v, r: v and v.strftime('%d-%m-
%Y') or ''
else if you row.fecha==v==None, it cannot be represented using
v.strftime.
On Dec 18, 5:50 pm, Pepe Araya wrote:
> sorry, is related
Couldn't you just add something like this?
#in your db.py, after auth.define_tables()
db.auth_user.email.requires=(IS_LOWER(),IS_EMAIL(),IS_NOT_IN_DB(db,'auth_user.email'))
Or if you use customize your auth tables ...:
Field('email', length=512,default='',comment='*'
,requires=(IS_LOWER(),IS_EMA
IS_IN_DB(db(db.mytable.id>0), 'mytable.id', db.mytable._format
,error_message=T("Sorry chap, that doesn't exist"))
You may specify your own error_message for any built-in validator.
On Sunday, December 11, 2011, Constantine Vasil wrote:
> How to change the message 'value already in database o
Anthony, could you elaborate a bit on that notation?
multiple=(0,3)
I wanted a maximum of two items and yet I need to write "3". In the book,
I've seen something similar with the limitby argument for DAL select:
>>>for row in db().select(db.person.ALL, limitby=(0, 2)): print row.name
which fetche
thank you very much!
my fault.
:(
It does:
min <= len(values) < max
Note it's a strict less than for the max, so if you want <= 2 values, that
is equivalent to < 3. Basically, it's an inclusive min but an exclusive max.
Anthony
On Sunday, December 18, 2011 7:40:10 PM UTC-5, ニコノコ wrote:
>
> Anthony, could you elaborate a bit on
please check:
http://code.google.com/p/web2py/issues/detail?id=572
Thanks
On Friday, December 16, 2011, Massimo Di Pierro wrote:
> Can you please open a ticket about this?
>
> On Dec 16, 12:10 am, Nik Go > wrote:
> > A grid search causes an exception when a user enters an unexpected field
> > ty
Problem is the login() function automatically replaces the email
validator(s) with its own temporary validator, so you'll lose the IS_LOWER
in that case. That should probably be fixed, but for now, the alternative
is to use an onvalidation function for login.
Anthony
On Sunday, December 18, 20
Is the field in question defined in the form object on the server side?
On Sunday, December 18, 2011 5:20:33 PM UTC-5, monotasker wrote:
>
> I succeeded in removing the DIV wrapper from the select widget, but that
> didn't solve the problem. So I've got a perfectly formed HTML form, sent
> prope
Tumblr provides a very simple interface to link your Twitter and
Facebook accounts for posting through their service. I'd like to do
something similar in my application - provide a single point for
people to aggregate different accounts like Flickr, Facebook, Twitter,
etc. - and I don't want to spe
How would I check for that? The field is part of the table in db, and the
form fields are being generated by SQLFORM. So the field should be defined
properly.
(Thanks, by the way, for taking the time to help. I realize this kind of
debugging problem is hard to help with.)
OK, I found the problem. I wasn't actually returning the
OptionsWidget.widget object during form creation. I was returning a LOAD
helper which then inserted the OptionsWidget.widget object at a second
stage. It looks like the accepts() method looks at the *widgets returned
during form building*
Sent from my HTC Touch Pro2 on the Now Network from Sprint®.
Sent from my HTC Touch Pro2 on the Now Network from Sprint®.
I did this to change my website registration link sent out to via
email.
BEFORE:
auth.messages.verify_email = 'Click on the link
http://'+request.env.http_host+URL('default','user',args=['verify_email'])+'/%(key)s
to verify your email.'
AFTER:
auth.messages.verify_email = 'Click on the link htt
I think you should be able to use the host and scheme arguments.
I think what you might want is to set expiration to 0. I haven't tried it
though. That sets the cookie expiration to now which I believe makes it a
"session" cookie which expires when the browser is quit.
Try setting one or both of these to 0:
settings.expiration = 3600# one
The latest book edition (4th) is now available for free here:
http://web2py.com/book
This is not the final version of the new book application but it is a
major improvement over the old one.
It works on mobiles. Has true multi book, multi version and multi
language support.
I disabled some f
Dear Hassan,
On 15 December 2011 12:32, Web2Py Freak wrote:
> Dear All,
> i am trying to use mod_wsgi with apache on fedora i installed web2py
> in var/www/ and i unzipped it , and i edited the httpd.conf and added
> the virtual host script but it keeps giving me this error with i do "$
> serv
Hi,
What is the contents of your httpd.conf file. can you post it ?
Regards,
Nils
On Mon, Dec 19, 2011 at 6:23 AM, Johann Spies wrote:
> Dear Hassan,
>
> On 15 December 2011 12:32, Web2Py Freak wrote:
>>
>> Dear All,
>> i am trying to use mod_wsgi with apache on fedora i installed web2py
>
Very nice. Note, "experts4soluions" should be "experts4solutions" (in the
menu and on the login page).
I miss the second level headings in the chapter TOCs -- very helpful for
finding topics. Also, not too big a deal, but maybe consider generating the
chapter TOCs server side -- there's often q
ok, fixed typo and toc. We will eventually have server side toc.
Should be easy.
On Dec 19, 12:25 am, Anthony wrote:
> Very nice. Note, "experts4soluions" should be "experts4solutions" (in the
> menu and on the login page).
>
> I miss the second level headings in the chapter TOCs -- very helpful
6 minutes -- is that the best you can do? ;-)
Are you going to get a real SSL certificate for the PDF purchase -- I
assume most people won't feel too comfortable with the certificate warning?
On Monday, December 19, 2011 1:31:21 AM UTC-5, Massimo Di Pierro wrote:
>
> ok, fixed typo and toc. We w
I am trying.
Regards, Martin
Thank you - for login it works but for register it does not.
In the case of register the validator executes after register and register
is telling the email is invalid.
On Sun, Dec 18, 2011 at 6:44 PM, Anthony wrote:
> Problem is the login() function automatically replaces the email
> validator
:-)
I will get a certificate.
On Dec 19, 12:38 am, Anthony wrote:
> 6 minutes -- is that the best you can do? ;-)
>
> Are you going to get a real SSL certificate for the PDF purchase -- I
> assume most people won't feel too comfortable with the certificate warning?
>
>
>
>
>
>
>
> On Monday, Dec
I agree with Anthony on the second level headings in chapter TOCs.
Much easier to look for specific topics!
On Dec 19, 2:25 pm, Anthony wrote:
> Very nice. Note, "experts4soluions" should be "experts4solutions" (in the
> menu and on the login page).
>
> I miss the second level headings in the cha
72 matches
Mail list logo