Massimo,
Thanks for your reply. I like the solution, however, it results in the
following ticket:
Traceback (most recent call last):
File /Library/Python/2.5/site-packages/web2py/gluon/restricted.py, line
205, in restricted
exec ccode in environment
File
I recently did a few experiments with Dreamweaver and quickly decided that
it would make things more complicated rather than easier.
If you are starting to study web2py then I believe it is better to get used
to working directly with the files before trying to use productivity aids.
A good
In a view I have the following link:
a class=btn btn-primary btn-largeLearn more raquo;/a
I would like to put this in an A helper, this doesn't work :
{{=A('Learn more raquo;',_class=btn btn-primary,
I am trying to add janrain to my application for open id but it gives error
like
RPXNOW._base_cb(false, Invalid Parameter: token_url must be an absolute URL);
that describes i have to write complete URL in my janrain key file but it still
is not working. Can anyone help.
How to call the multiple function or set the multiple target via Ajax
Hi,
I know the documentation explains that you cannot do 'complex' datetime
queries in web2py with GAE, however I am hoping that this does not qualify
as 'complex'.
I am trying to use the smartquery (experimental) functionality that it
works really well in the SQLlite db.
Unfortunately, the
Hi,
I am new web2py user and I have some performance problems with
import_from_csv_file method. First of all i have big collection of data
that i want to upload to Google App Engine. I splited data into 1000 parts,
each contains csv serialized rows - about 1367 rows per file. I am doing
loop
Maybe you can use the A string input inside the XML helper:
A(XML(), ...)
So the html is not escaped:
The XML helper doc:
... use it to wrap a string that contains XML/HTML so that it will not be
escaped by the template ...
El lunes, 9 de abril de 2012 07:11:19 UTC-3, Annet escribió:
In
Could you explain with more detail what you are trying to do? Do you have a
controller function called multiple in your application? Do you want to
manipulate a SELECT element with multiple selection with ajax?
El lunes, 9 de abril de 2012 03:32:31 UTC-3, Sanjeet Roy escribió:
How to call the
On Sun, 8 Apr 2012 23:32:31 -0700 (PDT), sanjeet.ro...@gmail.com said:
How to call the multiple function or set the multiple target via Ajax
In the view:
form
input name=name onkeyup=ajax('echo', ['name'], ':eval') /
/form
h3Start of target1/h3
div id=target1/div
h3End of target1/h3
On Mon, 9 Apr 2012 12:28:23 +0100, k...@midnighthax.com said:
def echo():
return jQuery('#target1').html(%s);jQuery('#target1').html(%s); \
%
(repr(request.vars.name.upper()),repr(request.vars.name.lower()))
Sorry, the second '#target1' above should be '#target2'
--
You can have
What os? what python version?
On Sunday, 8 April 2012 16:08:00 UTC-5, Czeski wrote:
Hi,
I am new web2py user and I have some performance problems with
import_from_csv_file method. First of all i have big collection of data
that i want to upload to Google App Engine. I splited data into
Il 06/04/2012 01:11, Massimo Di Pierro ha scritto:
Now you can. ;-)
auth.enable_record_versioning(db, archive_db=other_db)
Do you think could be usefull to choose the tables you want for
versioning instead of every table in db?
M.
On 04/06/2012 06:56 PM, Bruno Rocha wrote:
easy_install gluino
And you will get a minified web2py inside your virtual env.
Thanks!
--
Vincenzo Ampolo
http://vincenzo-ampolo.net
http://goshawknest.wordpress.com
Using the dog-owner model from the examples, you might have a model like
this:
db.define_table('dog', Field('dog_name'))
db.define_table('owner', Field('owner_name'))
db.define_table('dog_owner',
Field('dog_id', db.dog),
Field('owner_id', db.owner),
Field('owner_plays_fetch_with_dog',
So I've managed to create myself a little bit of an interesting problem. I
have a page that contains a form the user fills out. Before they submit it
I use JQuery and check the form to make sure everything is filled out, and
perform some saftey checks based on values they've filled in. Once
Hi,
I got distracted by other things and only just came back to this. The
problem I was having was in my code was the token was 'disabled or
invalid'. I'm sure this is resolved by using the callback in the redirect
back from the Dropbox site. I commented out the code that's not relevant
for
This is actually not a GAE issue. This is a smartgrid issue. Because you
are comparing with a datetime issue, it expects the time as part of the
date. I just change the parsing routine in trunk to fix this problem. Give
it a try.
Massimo
On Sunday, 8 April 2012 22:36:34 UTC-5, Douglas Ross
Please try trunk version (you appear to be using an older version). If the
problem persists open a google code ticket about this.
massimo
On Monday, 9 April 2012 01:45:50 UTC-5, Annet wrote:
Massimo,
Thanks for your reply. I like the solution, however, it results in the
following ticket:
How are you using it? are you using youapp/private/janrain.key?
On Monday, 9 April 2012 03:47:25 UTC-5, Roma Asnani wrote:
I am trying to add janrain to my application for open id but it gives
error like
RPXNOW._base_cb(false, Invalid Parameter: token_url must be an absolute
URL);
that
You can do
A(Learn more »,_href='')
and it will be converted to what you want automatically. Or
A(XML(Learn more ranquo;),_href='')
Massimo
On Monday, 9 April 2012 05:11:19 UTC-5, Annet wrote:
In a view I have the following link:
a class=btn btn-primary btn-largeLearn more
the signature=True only adds a signature to the auth_* tables so that if a
user creates an account for another user or creates a group, you can keep
track of who did it.
The mything_archive table should be created by:
auth.enable_record_versioning(db)
This should be called after the mything
Dear ALL,
I See Alot Of applications that has a browse button but when you click it
, it open a folder on the server !! , how do i do that ??
Best Regards,
I updated to latest trunk this morning and am seeing additional text in
the buttons for linked tables. Is there a way to disable this? I liked
how I could just set the _plural for the table before to set the text
that I wanted to appear. Now it appears to be appending 'for
Can you show us an example to make sure we understand?
On Monday, 9 April 2012 09:44:46 UTC-5, Hassan Alnatour wrote:
Dear ALL,
I See Alot Of applications that has a browse button but when you click it
, it open a folder on the server !! , how do i do that ??
Best Regards,
Any chance you can post the controller and the model?
On Monday, 9 April 2012 09:49:08 UTC-5, Jim S wrote:
Hi
I'm having a problem when adding records to a table using smartgrid. I
upgraded to the latest trunk this morning.
Here is what my grid looks like - empty:
If I click on Add I
There is a reason for the new text. One table A may have two fields
referencing table B so there is a need to specify the field name in the
buttons.
Anyway, you can remove them.
In your db.py.
T.force('en')
Then edit the en.py Language and you will be able to edit the text of those
buttons.
I cant becouse it on the admin side now it like when u try to upload a file
u click on browes in normal cases it will open a window showing your
folders but on what i am talking about it opens a folder on the server
that the website is hosted on .. So that when they want to upload a very
large
Sure - here are the model and controller method. The model is very long
but only a handful of the fields will be enabled for editing at one
time. Let me know if you have questions or need more info...
Thanks
-Jim
- model -
railLoad = db.define_table('railLoad',
Ouch!
Seems kind of heavy-handed for accommodating one use case.This takes my
default display from this:
...to this:
Is this open for discussion or alternative implementations?
-Jim
On 4/9/2012 10:33 AM, Massimo Di Pierro wrote:
There is a reason for the new text. One table A may have
Massimo
I found code of mine that is causing this issue. I apologize for the noise.
-Jim
On 4/9/2012 10:30 AM, Massimo Di Pierro wrote:
Any chance you can post the controller and the model?
On Monday, 9 April 2012 09:49:08 UTC-5, Jim S wrote:
Hi
I'm having a problem when
Thanks i will try
On Monday, April 9, 2012 12:02:31 PM UTC+5:30, Sanjeet Roy wrote:
How to call the multiple function or set the multiple target via Ajax
I'm trying to make a smartgrid using a table that has references to other
(auth_user). The smartgrid show up but it does not include the field where
I reference the other table.
with code:
-- in the db:
auth = Auth(db, hmac_key=Auth.get_or_create_key())
crud, service, plugins = Crud(db),
readable and writable need to be true on the submitted_by field.
-Jim
On 4/9/2012 11:44 AM, blackthorne wrote:
I'm trying to make a smartgrid using a table that has references to
other (auth_user). The smartgrid show up but it does not include the
field where I reference the other table.
Hi
I want to customize the edit form of a .smartgrid the way that you can
customize SQLFORM forms as specified in the manual under section 7.5.
Is this possible? If so, what do I use in place of
{{=form.custom.begin}}? How do I reference the form portion of the
returned grid?
-Jim
2012/4/5 rdodev ruben.or...@infotechfl.com
Seems to be working as intended from here. Possibly your browser's cache
playing yedi mind tricks on you :D
*facepalm*
Yes, it was the cache...
Thank you. Didn't know that applies to smartgrids as well.
now, because I don't want to change that (it would break things in many
other places...) do you think there is a problem if I do something like in
the controller:
db.attachment.submitted_by.readable=True
form =
That is exactly the way I always handle it. I leave everything enabled
in the controller (except the id column) and control the
readability/writability in the controller.
-Jim
On 4/9/2012 12:41 PM, blackthorne wrote:
Thank you. Didn't know that applies to smartgrids as well.
now,
Hi guys.
I try playing with web2py on GAE but on a very beginning I fail with
running my app. when I start my app I get :
Internal errorTicket issued:
unrecoverablehttp://localhost:8080/admin/default/ticket/unrecoverable
and in the dev_appserver console I get :
WARNING 2012-04-09
http://dl.dropbox.com/u/18065445/Tmp/web2py_cheatsheet.pdf
Yes it is open for discussion. :-)
we could have a flag to change the mode. What do other people think?
we could have a template field like button_label = 'for %(tablename)s
%(fieldname)s' which you can override.
On Monday, 9 April 2012 10:48:43 UTC-5, Jim S wrote:
Ouch!
Seems kind of
No problem. Thanks for letting us know.
On Monday, 9 April 2012 11:05:09 UTC-5, Jim S wrote:
Massimo
I found code of mine that is causing this issue. I apologize for the
noise.
-Jim
On 4/9/2012 10:30 AM, Massimo Di Pierro wrote:
Any chance you can post the controller and the
You should be able to customize the create and edit forms in the same way:
{{if grid.create_form:}}
{{=grid.create_form}}
{{elif grid.update_form:}}
{{=grid.update_form}}
{{elif grid.view_form:}}
{{=grid.view_form}}
{{else:}}
{{=grid}}
{{pass}}
You need the current trunk because I
Please check that your python version is 2.5. If this is not the case,
change the app.yaml to use python2.7 runtime.
-rif
luni, 9 aprilie 2012, 20:57:21 UTC+3, waglik a scris:
Hi guys.
I try playing with web2py on GAE but on a very beginning I fail with
running my app. when I start my
Thanks Massimo - I'll grab a fresh copy in the morning and give it a try.
-Jim
On 4/9/2012 3:58 PM, Massimo Di Pierro wrote:
You should be able to customize the create and edit forms in the same
way:
{{if grid.create_form:}}
{{=grid.create_form}}
{{elif grid.update_form:}}
Ok I found the reason.
In app.yaml myapp was in the skip section.
But now I have new problem :
which is related to issue-699
http://code.google.com/p/web2py/issues/detail?id=699
Anybody have an idea?
Perhaps this can be useful:
https://github.com/web2py/web2py/blob/master/gluon/contrib/login_methods/dropbox_account.py#L90
has been there for a while but I am not sure anybody has tested it very
well.
massimo
On Monday, 9 April 2012 09:14:56 UTC-5, Paul Gerrard wrote:
Hi,
I got distracted
I'd put a warning saying you have unsaved changes. or perhaps only allow
switching after saving. You could also make your own form, and handle
saving all changes with your controller. Web2py has good defaults, and the
helpers are good for getting a website up and running quickly, but when you
I have declared the table in db.py with auth.signature, and uncommented
auth.enable_record_versioning(db), but the _archive table isn't created.
- Tom
On Monday, April 9, 2012 8:33:18 AM UTC-6, Massimo Di Pierro wrote:
the signature=True only adds a signature to the auth_* tables so that if a
how to process args early than my model?
i want to split a unicode string that are in request.args for example:
in view:
a
href=+URL('default','menu',args=[str(b.id)+-+str(b.title)])++str(b.title)+/a
b.id = 15
b.title = аыв ывташгытацуокц-
in controller:
def menu():
#return
hmmm, looked at your comment on the issue, and you are using old syntax my
friend. (moments when you just wish the web would forget). try:
db = DAL('google:datastore')# connect to Google
BigTable
On Monday, April 9, 2012 2:03:27 PM UTC-7, waglik wrote:
Ok I found
thanks!
On Monday, April 9, 2012 1:44:22 PM UTC-7, Massimo Di Pierro wrote:
http://dl.dropbox.com/u/18065445/Tmp/web2py_cheatsheet.pdf
This should be pinned :)
On Monday, April 9, 2012 3:44:22 PM UTC-5, Massimo Di Pierro wrote:
http://dl.dropbox.com/u/18065445/Tmp/web2py_cheatsheet.pdf
Let's debug it first.
On Monday, 9 April 2012 21:34:57 UTC-5, JorgeH wrote:
This should be pinned :)
On Monday, April 9, 2012 3:44:22 PM UTC-5, Massimo Di Pierro wrote:
http://dl.dropbox.com/u/18065445/Tmp/web2py_cheatsheet.pdf
Thanks Massimo
On Tuesday, April 10, 2012 8:57:32 AM UTC+5:30, Massimo Di Pierro wrote:
Let's debug it first.
On Monday, 9 April 2012 21:34:57 UTC-5, JorgeH wrote:
This should be pinned :)
On Monday, April 9, 2012 3:44:22 PM UTC-5, Massimo Di Pierro wrote:
for using multiple signin i am register with rpxnow.com and create app and
use the key in our web2py application bt i m unable to login...plz help
me...i use below code for it
import os
from gluon.contrib.login_methods.rpx_account import RPXAccount
# we disable actions that will be provided by
Hi Alan and Massimo,
Thanks for your replies.
A(Learn more »,_href='')
This renders to greater than symbols.
and it will be converted to what you want automatically. Or
A(XML(Learn more ranquo;),_href='')
This works after I changed it to:
XML(View details #187;)
For some
57 matches
Mail list logo