Thanks, I indeed missed that hidden field with record id. From the book: Edit
forms also contain a hidden INPUT field with name=id which is used to
identify the record.
Though I don't really understand why we need that field as record id is
kept server-side anyway.
On Thursday, August 29,
Thanks for answering my question ! :)
--
---
You received this message because you are subscribed to the Google Groups
web2py-users group.
To unsubscribe from this group and stop receiving emails from it, send an email
to web2py+unsubscr...@googlegroups.com.
For more options, visit
I am having problems getting this code to work i Chorme, it works correctly
in IE and Firefox, but in Chrome the form opens in a new window instead of
the div tag.
If I use Putty to connect to the server in order to use the admin
interface, the code works correctly when I connect using
Hi
I like to use following update_or_insert example with db.myproperty.quantity
+ 1 as you see in example
db.myproperty.update_or_insert(
(db.myproperty.userId == 1 ) (db.myproperty.product == 'tree') ,
userId = 1,
price = 10,
quantity =
This is not supported. Please open a ticket. We can this feature
On Friday, 30 August 2013 07:11:29 UTC-5, frasse wrote:
Hi
I like to use following update_or_insert example with
db.myproperty.quantity
+ 1 as you see in example
db.myproperty.update_or_insert(
Long time since last post, but i had to do this and a small modification of
mdipierros
code worked for me
fields = form[0].components
n_fields = len(fields)
bot_half = fields[n_fields/2:]
top_half = fields[:n_fields/2]
form[0]=TABLE(TR(
Because SQLFORM uses this field to know you're editing not inserting a record.
On Fri, Aug 30, 2013 at 5:27 AM, shapovalovde...@gmail.com wrote:
Thanks, I indeed missed that hidden field with record id. From the book:
Edit forms also contain a hidden INPUT field with name=id which is used
to
Hm, I thought that form = SQLFORM(db.person, record) , i.e. parameter
'record' indicates that, so why duplicate that in view?
On Fri, Aug 30, 2013 at 3:43 PM, Vinicius Assef vinicius...@gmail.comwrote:
Because SQLFORM uses this field to know you're editing not inserting a
record.
On Fri,
Because if the hidden id field is in your request.post_vars, the
record's new data was submitted.
On Fri, Aug 30, 2013 at 10:43 AM, Denis Sh shapovalovde...@gmail.com wrote:
Hm, I thought that form = SQLFORM(db.person, record) , i.e. parameter
'record' indicates that, so why duplicate that in
Hi,
The janrain/rpx widget is no longer supported since July (
http://developers.janrain.com/documentation/widgets/legacy-sign-in-widget/)
and I am wondering if there are plans to upgrade the integrated rpx login
method accordingly... (
Hi
I need load SQLFOM.grid every 5 seconds, try whith autorefresh, but load
all page.
I need help to create javascript to load only a SQLFROM.grid.
Thanks
--
---
You received this message because you are subscribed to the Google Groups
web2py-users group.
To unsubscribe from this group and
Have a look at
http://web2py.com/books/default/chapter/29/12/components-and-plugins#Components
Paolo
On Friday, August 30, 2013 7:50:10 PM UTC+2, Javier Pepe wrote:
Hi
I need load SQLFOM.grid every 5 seconds, try whith autorefresh, but load
all page.
I need help to create javascript to
please also post on web2pyslices.com
--
---
You received this message because you are subscribed to the Google Groups
web2py-users group.
To unsubscribe from this group and stop receiving emails from it, send an email
to web2py+unsubscr...@googlegroups.com.
For more options, visit
I tried to add a bulk of .js files to my static folder without using the
admin interface. the files are not showing up in the admin interface and a
couple of these files are giving a 404 not found error. how can I remedy
this?
here is a sample of the view file. I placed the .js files in a
Thanks
works better than expected
On Fri, Aug 30, 2013 at 2:53 PM, Paolo Valleri paolo.vall...@gmail.comwrote:
Have a look at
http://web2py.com/books/default/chapter/29/12/components-and-plugins#Components
Paolo
On Friday, August 30, 2013 7:50:10 PM UTC+2, Javier Pepe wrote:
Hi
I need
from the book http://web2py.com/book/default/chapter/04#URL
For the reasons mentioned above, you should always use the URL function to
generate URLs of static files for your applications. Static files are
stored in the application's static subfolder (that's where they go when
uploaded using
I want to develop replica of Reddit Website
http://www.reddit.com/
using web2py framework.
Can anyone please provide me with its source code so that i can study the
web2py code and understand, it will help me understand the concepts well
Thanks in advance
--
---
You received this message
How to disable auth.navbar for some funtions ?
- I need to create a different layout.
Tried to create a function in the model:
navbar_disable = False
onavbar = auth.navbar
def nav_bar(**kargs):
if navbar_disable:
return False
else:
return
Is it possible to get the task id of the current task from within the task?
for example:
def task_add(a,b):
task_id = scheduler.my_id() # get current task id
return a+b
scheduler = Scheduler(db, tasks=dict(demo1=task_add))
scheduler.queue_task('demo1', pvars=dict(a=1,b=2),
Yes, write your own navbar function and use that instead, or take a look at
modify navbar() in gluon/tools.py (You will need source code for that)
Also I did a rewrite of navbar in the repo, should make it much easier to
write your own navbar imo.
On Wednesday, August 28, 2013 8:19:28 PM
Can you show me an example?
Not a working one :/. First we would need to enable the json package list
controller at web2pyslices. I thought I had implemented it but currently it
doesn't seem to work (returns null where it should return a json list of
packages).
Actually, I don't know what
Hi all,
I am really new to web2py and I find this python framework really exciting.
I am currently reading the whole online book chapter database validators,
and while I was reading at the example given, I was wondering if there is a
difference between this :
db.define_table('person',
I use *Amazon EC2* http://aws.amazon.com/ec2and
*rackspace*http://www.rackspace.com
El martes, 27 de agosto de 2013 16:11:22 UTC-5, Vivek Jha escribió:
I am new in web development and I have started with web2py and have almost
copleted reading the web2py book.
Now few practical issues
Please open a ticket. We will do that asap.
On Friday, 30 August 2013 12:54:06 UTC-5, molhokwai wrote:
Hi,
The janrain/rpx widget is no longer supported since July (
http://developers.janrain.com/documentation/widgets/legacy-sign-in-widget/)
and I am wondering if there are plans to upgrade
No it is the same.
This
Field('owner', 'reference person')
is the same as
Field('owner', db.person)
If the reference field has a format='...' than you get the default
validator:
db.dog.owner.requires = IS_IN_DB(db, 'person.id', '%(name)s')
On Friday, 30 August 2013
There are two distinctions here. First:
Field('owner', db.person)
is equivalent to:
Field('owner', 'reference person')
However, the latter is generally preferred because if you are using lazy
table definitions, the former method triggers the full definition of
db.person, so you lose the
Reddit does not run on web2py. It runs on python and (I think pylons?).
However, if you do wish to peruse the reddit's source code, you could try
their github repo:
https://github.com/reddit
On Thursday, August 29, 2013 6:18:30 PM UTC+3, nama...@gmail.com wrote:
I want to develop replica
this was a permission problem. the sub folder was owned by root and not by
the user that i created for web2py
On Friday, August 30, 2013 2:29:28 PM UTC-5, wiel wrote:
I tried to add a bulk of .js files to my static folder without using the
admin interface. the files are not showing up in
Try this
https://groups.google.com/forum/#!searchin/web2py/reddit%7Csort:date/web2py/0YlcTFegHCU/6_4LjWt0jYAJ
On Thursday, August 29, 2013 6:18:30 PM UTC+3, nama...@gmail.com wrote:
I want to develop replica of Reddit Website
http://www.reddit.com/
using web2py framework.
Can anyone
Also, https://github.com/mdipierro/web2py-appliances/tree/master/RedditClone
and
https://github.com/mdipierro/web2py-recipes-source/tree/master/source/02_building_your_first_applications/03_building_a_reddit_clone
.
Anthony
On Friday, August 30, 2013 8:57:26 PM UTC-7, webpypy wrote:
Try this
Note, if you're thinking reddit.com was built with web2py, it was not --
the original reddit.com was built with Common Lisp and then migrated to
Python, for which the web.py http://webpy.org/ framework was developed
and eventually open sourced (web.py and web2py are often confused).
Anthony
(web.py and web2py are often confused).
Anthony
example of confusion:
clicking on web2py in https://www.openshift.com/developers/python
will go to web.py
--
---
You received this message because you are subscribed to the Google Groups
web2py-users group.
To unsubscribe from this
32 matches
Mail list logo