Setting ajax=False works. That appears to make skip the big if plugin...
block.
I can certainly work around it by putting all my components in default.py
but I was hoping to compartmentalize.
A long time ago i learned Turbo Pascal and loved it.
One of the reasons was the help.
It was very good, the theory and in the end the examples.Just copy and paste
to try.
I did not need to go out for help.
This is a framework! Why not include in web2py context help with theory and
examples for
Understood,
and I suppose i have to pass a date type through my form (not an
SQLFORM) according to html5 (_type=date) so that form.vars guess it
is a date type.
On 22 fév, 01:41, Brian M bmere...@gmail.com wrote:
You may want to look at the python-dateutil module
Well, my experience is different. I test my app with Apache Benchmarp and
using Tornado I got 2x more req/sec than using Rocket. I have tried several
times on different pages with the same nice result.
David
Il 22/02/2011 00:16, Tim Michelsen ha scritto:
Is the code developed by Mr. Tsega somewhere available online?
I couldn't find an email address with the thesis...
I found mr Tsega email address looking inside this list archive and I
contacted him, I'll be asking him about it... on the first
Hello,
I just got an email about the new Wingware IDE release. I noticed that it
has some specific features added for Django, and when I looked on the site I
found some how-to's on how to use Wing with libraries/frameworks and such. I
thought, hmmm... it would be nice to have a webpy how-to up
There is already
http://www.wingware.com/doc/howtos/web2py
I dont know if something changed in the new version.
I am using 3.x I'll update soon to see if web2py runs well or if there are some
improvement
Em 22/02/2011, às 07:49, James Hancock jlhanc...@gmail.com escreveu:
Hello,
I
at the step 6 there is an image pointing to
http://web2py.com/layouts/static/plugin_layouts/layouts/Default/preview.png
http://web2py.com/layouts/static/plugin_layouts/layouts/Default/preview.png
which appears to be broken...
--
Sebastian E. Ovide
in the plugin admin interface, if I click upload without choosing a any
file, I'm getting an ugly Internal error instead of some nice validation
like error
--
Sebastian E. Ovide
it ONLY happens with apps created with the wizard. It doesn't happen with a
simple app nor with the welcome app.
Steps:
1) create a new app with the wizard (do not populate the tables)
2) add plugin_wiki
3) click on Pages
4) click back on Index
It should display the Index page... but it
I was wondering if anybody has the create table syntax for mySQL for
the following tables that come with web2py
db.auth_user
db.auth_group
db.auth_membership
db.auth_permission
db.auth_event
Wow, sorry about that. I didn't see it the first time. I even checked
twice... Guess that doesn't say much about my eyes.
Anyway, does using Wing help in web2py development?
Now that you can have one license for more than one OS it seems like a good
way to go and I was thinking about buying it.
Hey all,
Anybody having trouble with setting input values using jQuery? I am
using this jQuery widget called farbtastic (a color picker) as a
custom widget for one of my fields, and it displays just fine i.e. I
click on a color and the input field displays the corresponding value.
However, when I
To clarify; I am using 1.91.6 and using as a custom widget an XML
helper containing a script (the javascript part), an input (the
thing I wish to submit) and a div (a placeholder for the jquery
color picker).
On Feb 22, 3:33 pm, Kerem Eryılmaz keryil...@gmail.com wrote:
Hey all,
Anybody having
Thats a video I made using WingIDE web2py - http://vimeo.com/18447603
http://vimeo.com/18447603I use VI/VIM almost for everything I do, but
sometimes I go with Wing for debug and autocomplete or web2py classes
inspection, for me it is better than eclipse.
--
Bruno Rocha
[ About me:
HI,
powerTable plugin is just a wrapper for datatables library,
is it possible to have a custom search at the table initialization, I do not
know where it is described in the docs, but you can try to find it out
here: http://datatables.net/examples/
http://datatables.net/examples/Sorry, I have
I see... So you have in your form only the readable fields... I suppose that
when the form is submit your controller insert manually the values of the
omitted fields. Because in case a readable=False field that is notnull
(requiered=True...) it has to get value.
Richard
On Mon, Feb 21, 2011 at
factory has no read or update conter part as far as I know so you will have
to go in each table and do what you need. So :
crud.update(db.client)
crud.update(db.address)
Richard
On Tue, Feb 22, 2011 at 12:37 AM, greenpoise danel.sega...@gmail.comwrote:
I got this
plugin is the name of the controller
On Feb 22, 12:35 am, pbreit pbreitenb...@gmail.com wrote:
I just started working with components. Very cool!
I ran into an issue that may be a bug. It seems that LOAD will only
load from default.py controller. If I specify a different controller,
I get:
I don't think that web2py will recognize the HTML5 _type=date yet though
you could certainly leave it there for your users with an HTML5 compliant
browser. Web2py knows which from.vars should be a python date object because
of the requires=IS_DATE() in the form field declaration
Hi there. Found this toggle on the CRM appliance. Thought it would fit
perfectly on my app however this works properly, bringing the smart
table up and closing the form:
{{response.files.append(URL(r=request,c='static',f='jquery.dataTables.min.js'))}}
In my 'room' controller, I did this:
def list():
rooms =
db((db.rooms.customer==session.customer_id)(db.rooms.property==db.properties.id)).select(db.rooms.ALL,
db.properties.ALL, orderby=db.properties.short_desc)
return dict(rooms=rooms)
which I thought was way cool.
In my
On Feb 21, 11:35 pm, Carlos carlosgali...@gmail.com wrote:
Hi Richard,
What I'm doing is as follows:
Let's say I have the following model:
db.define_table('test1', Field('text1'), Field('x', readable=False))
db.define_table('test2', Field('text2'), Field('x', readable=False))
The
You right, so as long as my duplicated name field are those that serve the
same purpose of auth.signature... I think that there is no problem with
those lines of code.
Richard
On Tue, Feb 22, 2011 at 10:09 AM, DenesL denes1...@yahoo.ca wrote:
On Feb 21, 11:35 pm, Carlos
Cherokee Market is a revolutionary new distribution channel for Web
applications, where developers can distribute and sell their apps, while Web
infrastructure owners can deploy them within second, independently of their
OS or cloud environment.
This people are awesome.
Video:
[English] :
something like this should work:
my_object = db(db[table_name]['id']==my_id).select().first()
If you use brackets instead of dot notation for table names, you may not be
able to use dot notation for the field name. I don't know for sure, but
instead of doing this:
db[key].id
Try this
Dear users,
if I change a value in a function called by e computed field formula how
can I update the computed field values?
I tryed
db(db.tab.id0).update(id=db.tab.id)
but nothing happened
Thank you
Manuele
Hi All,
I've created a public page and as expected I can see it even if I'm not
logged in. Nevertheless the menu PAGE is not visible if I'm not logged in.
Is it working as expected ?
thanks
--
Sebastian E. Ovide
Dear Webfacton Support and web2py-users Google Group,
ref: web2py-users Google Group thread Unable to create
application on WebFaction the link is in the text below.
I just made a flurry of webfaction tickets about memory usage and
upgrading my account. Actually doing an upgrade.
This was
actually only the user that has created the page can see the menu PAGE.
so userONE creates a page (public, active, with no roles) ... he can see it
and any other user can see it... but only userONE can see PAGES from the
menu.
if userTWO tries to open /myapp/plugin_wiki/index he will get; Not
No, it works...
I do not know if it should be like this and if it will be always the case...
Richard
On Tue, Feb 22, 2011 at 10:48 AM, Ross Peoples ross.peop...@gmail.comwrote:
something like this should work:
my_object = db(db[table_name]['id']==my_id).select().first()
If you use
Alright, just about ready to give up! ;)
I have probably been on this subject a little longer than should
but... anyways, last time, promise (probably ;) )
So, tried many different things, many from suggestions I got here (so
thanks for that)... But somehow... it doesn't feel right. I
I think the idea is to create groups...
I.e.
group 'editor' -- can do stuff
group 'users' -- can read stuff
But, if the page's permissions are set to open active, and you
have yourself in the editor group, then you will be able to edit,
and users will be able to see (without having to create
Hello,
Can you please check why my email don't get to the list.
I can't receive the email I sent to the list into my mail box (and
they are not in spam neither ;-)... But I saw them passed in Google
Reader... Why that is happen?
Thank you.
Richard
Hi greenpoise,
Based on that slice, you can do the following:
- detect if iscreate or isupdate (in which case you know the current 'row').
- use _filter_fields(form.vars) to extract 'fields' for each of the involved
tables (base + linked).
(for each involved table, base and linked, after
Apologies if a repeat post (my mac is in the shop and working with
this ... laptop... and nothing about it seems to work :(
Anyways, my attempt at replying was something like, using dots after
brackets should be fine, i do things like this and have no problems:
'''--- select from tables
Hi Mart,
that is what I'm trying to do... some editors, some people with read only
access (logged in people) and rest with not any right... still could not get
it work..
assigning a user EDITOR to the groups EDITORS and setting a page as NO
public and with role EDITORS will grant access to
i think it should be ok to use dots after a var in brackets For
example, I can do this, and all is fine:
def select(self,tbl,var):
db= self.db
for mTbl in db.tables:
if tbl in mTbl:
if mTbl.startswith(tbl):
for row in
James McKay has had some interesting posts on Mercurial that might be of
tangential interest to the group. This is the latest:
On named branches in Mercurial
James
2/22/11 12:00 AM
www dot james mckay dot net
There seems to be a common misconception among some Git users that in order to
branch
Very useful information, Thanks.
--
Bruno Rocha
[ About me: http://zerp.ly/rochacbruno ]
I don't understand what is your question ???
I haven't tried it yet, but I looked at the diff in the trunkvery nice
:) Hopefully, I'll get a chance to check this out soon. I'm actually
writting two web2py apps. One is my WordPress clone which is my side
project, which is what I needed short URLs for, and my other app is one for
work
I know that you can run tests on controller from Admin, but you cannot do
this for modules. I am planning on adding the core functionality of my
application into a module so that this functionality can be accessed from
any controller. This also provides some extra modularity. Since the bulk of
try this
In a view default/list.html
{{response.headers['Content-Type']='application/json'}}
{{=rooms.json()}}
Mind that list is not a good name for a function because it is a built-
in python function.
On Feb 22, 9:08 am, Ed Greenberg greenberg...@gmail.com wrote:
In my 'room' controller,
The main routes.py file in /web2py/routes.py should be editable from the
admin interface. And now that applications can have their own routes.py
files, it would be awesome if these could be edited in the admin interface
as well.
No idea. Google is getting your posts. Is it either a google problem
or a problem on your side. Nothing I can do about it.
On Feb 22, 11:14 am, Richard ml.richard.vez...@gmail.com wrote:
Hello,
Can you please check why my email don't get to the list.
I can't receive the email I sent to the
I Guess it is not there yet, because it is dangerous, if you change the
route you can lose the access to admin application.
Is there an old thread about it, but there is not a safe way to do that.
2011/2/22 Ross Peoples ross.peop...@gmail.com
The main routes.py file in /web2py/routes.py should
Consider this:
db.define_table('t',Field('a'),Field('b'),Field('b',compute=lambda
row: row['a']+row['b'])
these works (update)
db.t.insert(a='x',b='y')
db(query).update(a='x',b='y')
for row in db(query).select(): row.update_record(a='x',b=row.b)
db(query).update(c=db.t.x+db.t.y)
...
but this
I've noticed a lot of errors in Google Groups the past few days. I would
think it's probably temporary.
This is a temporary problem with Google Groups. They are working on it. Here
is the actually announcement from Google:
https://groups.google.com/d/topic/googlegroups-announce/2WNQAoNct1Q/discussion
Thank...
Not sure that it is the exact problem, since it says that the problem is
happened when sending emails from the group home page... Or maybe they talk
about a sending email from Thunderbird or other mail client??
Richard
On Tue, Feb 22, 2011 at 2:29 PM, Ross Peoples
hello,
The DAL is really great to switch between different backend databases !!
Now I'ld like to use another computer in my home network (Windows) to do the
heavy database stuff,
is this possible with the DAL ?
How should I address the Database server on the other computer ?
And should I make
I still can't seem to get it to work. When ajax=True it seems to expect the
controller to be named default.py.
The book indicates that you should be able to specify the controller name (I
think):
http://web2py.com/book/default/chapter/13#Components
LOAD(c=None, f='index',
But no matter what
Good info, thanks. I'm a newbie to version control (well I used CVS eons
ago) and am getting my head around branches and merging. I still pretty much
only use push, pull, commit and update. And merge when I forget to update!
Darn, another issue. In my .load view, I have:
{{=A(item.title, _href=URL(c='default', f='item',
Which creates this href:
a href=/item.load/1
Now I'm thinking this might be related to routing? This is all I have:
routers = dict(
# base router
BASE = dict(
default_application =
This may not be the place for this question, but I just started using Git a
couple months ago. I'm still really new to version control and I use a GUI
for Git, so I couldn't even tell you what the commands are for it. But, what
is the difference between Git and Mercurial, and why would one
If I understand this correctly, having a list of functions in a default
controller:
functions = [f1, f2, f3]
and a default function name:
default_function = index
will result in the following mapping:
/ - /default_app/default_ctrl/index
/f2 - /default_app/default_ctrl/f2
/f666 -
I don't really know the specific differences but my sense was that Mercurial
was a bit easier. I especially liked this tutorial: http://hginit.com/
I use MacHG client and BitBucket server and am having a good time so far.
Pretty much everyone can benefit from version control if even you're just
You have to update the fields involved in the computation:
db(db.tag).update(f1=db.tag.f1, f2=db.tag.f2, ...)
On Feb 22, 10:39 am, Manuele Pesenti manuele.pese...@gmail.com
wrote:
Dear users,
if I change a value in a function called by e computed field formula how
can I update the computed
You update the fields involved in the calculation:
db(db.tab).update(f1=db.tab.f1, f2=db.tab.f2, ...)
On Feb 22, 10:39 am, Manuele Pesenti manuele.pese...@gmail.com
wrote:
Dear users,
if I change a value in a function called by e computed field formula how
can I update the computed field
ajax=False fixes the issue. But I'd like to get the Ajax benefits, too.
Routing doesn't seem to be the culprit. For some reason, it's not honoring
the function specified in the URL() helper.
Hello web2py users,
I'm having a rough day - I hope you can help me out.
Today I came to work, updated the source of the web2py application I'm
working on using svn, and fired up web2py to find that an error ticket
is being served when I request the default index page of my
application. When I
take a look
https://bitbucket.org/mulonemartin/plugin_comments/src/71a9db051b22/models/plugin_comments.py#cl-190
https://bitbucket.org/mulonemartin/plugin_comments/src/71a9db051b22/models/plugin_comments.py#cl-190
return LOAD('plugin_comments','comments',args=[tablename, record_id,
Ok works fine thanks to your help !
On 22 fév, 15:27, Brian M bmere...@gmail.com wrote:
I don't think that web2py will recognize the HTML5 _type=date yet though
you could certainly leave it there for your users with an HTML5 compliant
browser. Web2py knows which from.vars should be a python
Has anybody done this. Basically I want export the basic table
structure from sqllite to mySql
On Feb 22, 7:44 am, stargate kyoukh...@gmail.com wrote:
I was wondering if anybody has the create table syntax for mySQL for
the following tables that come with web2py
db.auth_user
db.auth_group
On Feb 22, 2011, at 11:49 AM, Ross Peoples wrote:
This may not be the place for this question, but I just started using Git a
couple months ago. I'm still really new to version control and I use a GUI
for Git, so I couldn't even tell you what the commands are for it. But, what
is the
Have you tried:
{{=LOAD(plugin='components', function='test.load', ajax=True)}}
or just:
{{=LOAD('components', 'test.load', ajax=True)}}
It looks like the book is incorrect regarding the signature of the LOAD
function -- as you pointed out, the first two arguments of the
On Feb 22, 9:49 pm, Ross Peoples ross.peop...@gmail.com wrote:
This may not be the place for this question, but I just started using Git a
couple months ago. I'm still really new to version control and I use a GUI
for Git, so I couldn't even tell you what the commands are for it. But, what
is
Hi, am I missing something or custom widgets when field is not
writable ends up to be forgotten (i.e. default string representation
is done on these fields)?
I'm using something like:
#controller
record = db.mytable[1]
record.textfield.readable = False
record.textfield.widget =
I am using form.custom. I've got the submit as form.custom.submit but
is there anything for the delete button/checkbox?? I am using CRUD and
as it gives me more flexibility over the forms layout and add some
fanciness to them...also cuz the crud.settings.formstyle='divs' never
worked for me...
On Feb 22, 2011, at 11:58 AM, Wikus van de Merwe wrote:
If I understand this correctly, having a list of functions in a default
controller:
functions = [f1, f2, f3]
and a default function name:
default_function = index
will result in the following mapping:
/ -
Yeah, that throws:
TypeError: __call__() got an unexpected keyword argument 'plugin'
or
TypeError: __call__() got an unexpected keyword argument 'function'
LOAD('components', 'item_filter.load',...
throws: invalid function (default/components)
So it looks like the the first param is supposed to be the function and I
guess default is hardcoded as the controller. I couldn't figure anything
out about that in the code.
Thx!
On 22 фев, 01:34, Bruno Rocha rochacbr...@gmail.com wrote:
Yes, this is used in crud and appadmin
db['tablename']['fieldname']
keys = ['table1','table2','table3']
mydict = {}
for key in keys:
mydict[key] =
I dont know where my posts are going...anyways, I have a Crud custom
form. Its set but I am also customizing the layout of the crud update
form and I cant seem to get the delete checkbox...how would I go for
that??
{{=form.custom.widget.?
tried:
Looks LoadFactory.__call__ must have changed at some point -- in the current
source code, the arguments are 'c' and 'f'. Where did you find the source
code that you pasted?
On Tuesday, February 22, 2011 4:49:13 PM UTC-5, pbreit wrote:
Yeah, that throws:
TypeError: __call__() got an
Hmm, I tried creating a 'components' controller with a 'test' function and
a 'components/test.load' view, and it works fine when I put
{{=LOAD('components', 'test.load', ajax=True)}} into my index.html view. Not
sure why you're having this problem. Maybe you can provide more of your code
or a
Oh, wow, you're right. I did a search in Google Code and it looks like
it's giving me a stale copy. Argh!
http://www.google.com/codesearch/p?hl=en#uyCl3L51_dI/gluon/compileapp.pyq=loadfactory%20package:http://web2py%5C.googlecode%5C.comsa=Ncd=1ct=rc
I'll try to do it as you say on a
Argh! It looks like Google Code search was giving me a stale copy:
http://www.google.com/codesearch/p?hl=en#frnm1d_G1jQ/trunk/gluon/compileapp.pyq=loadfactory%20package:http://web2py%5C.googlecode%5C.comsa=Ncd=2ct=rc
I'll try to create a self-contained app as you say and isolate it. Of
course, I
From the book:
To determine whether the update forms should have a delete button:
crud.settings.update_deletable = True
HTH D
On Feb 22, 9:41 pm, greenpoise danel.sega...@gmail.com wrote:
I am using form.custom. I've got the submit as form.custom.submit but
is there anything for the delete
web2py will create the tables for you
if in models/db.py you set db=DAL('mysql://...')
it will call auth.define_tables() which is defined in gluon/tool.py
or you can call it from another model.
Have a look in tools.py to see how the tables are defined.
On Feb 22, 3:52 pm, stargate
Hi massimo
First thanks for your great web2py.
I link 2 tables (user_auth and person) and create custom registration
form
here is the controller:
def register():
db.person.name.readable=db.person.name.writable=False
db.person.user_id.readable=db.person.user_id.writable=False
On Feb 22, 2011, at 11:49 AM, Ross Peoples wrote:
This may not be the place for this question, but I just started using Git a
couple months ago. I'm still really new to version control and I use a GUI
for Git, so I couldn't even tell you what the commands are for it. But, what
is the
Thanks for the info. I'll be checking out Mecurial: The Definitive Guide.
On Feb 22, 2011, at 7:18 PM, Jonathan Lundell wrote:
On Feb 22, 2011, at 11:49 AM, Ross Peoples wrote:
This may not be the place for this question, but I just started using Git a
couple months ago. I'm still really new
adding web2py as left it out of the thread by mistake...
On Wed, Feb 23, 2011 at 12:06 AM, Mart msenecal...@gmail.com wrote:
Hey Sebastian,
So, I notice I skipped something... So the I meant to say... Yuu create a
group called 'editor', then give the users that who should be able to
edit,
LOL - yeah.. sorry about that (guess i thought about it too much, so
everyone must know what Im thinking ;) )
SO, this has to do creating a DAL instance that can connect to an
existing DB (without having to export/import, etc...). I would like to
simply point and connect to an existing sqlite db
I think you may need to code the model. Here's a brief note on the matter:
http://web2py.com/book/default/chapter/06#Legacy-Databases-and-Keyed-Tables
On Feb 22, 2:37 pm, Stef Mientki stef.mien...@gmail.com wrote:
hello,
The DAL is really great to switch between different backend databases !!
Now I'ld like to use another computer in my home network (Windows) to do the
heavy database stuff,
is this possible with the DAL ?
yes
How
Hello Chris,
can you send me the app privately?
Massimo
On Feb 22, 2:28 pm, Chris Baron topher.ba...@gmail.com wrote:
Hello web2py users,
I'm having a rough day - I hope you can help me out.
Today I came to work, updated the source of the web2py application I'm
working on using svn, and
In your example:
form=SQLFORM.factory(db.person,db.auth_user)
does not have a password_two field. It just is not there, hence no
widget. You must add one somehow. Look how it is done in gluon/
tools.py by searching for password_two.
On Feb 22, 3:46 pm, Nasko atanas.m.atana...@gmail.com wrote:
Thanks for the information it worked. I am very new to web2py coming
from PHP but its great so far. I love it.
On Feb 22, 7:07 pm, DenesL denes1...@yahoo.ca wrote:
web2py will create the tables for you
if in models/db.py you set db=DAL('mysql://...')
it will call auth.define_tables() which
{{=form.custom.deletable}}
it is not a widget. I agree that the name is not the most appropriate.
On Feb 22, 4:07 pm, greenpoise danel.sega...@gmail.com wrote:
I dont know where my posts are going...anyways, I have a Crud custom
form. Its set but I am also customizing the layout of the crud
I do seem to have been looking at stale code:
http://www.google.com/codesearch?hl=enlr=q=loadfactory+package%3Ahttp%3A%2F%2Fweb2py%5C.googlecode%5C.com
I think I traced the issue to my routes.py file. I'm using the new
routers and needed to add:
controllers = 'DEFAULT',
On Feb 22,
Bruno is right. It is a matter of adding a link but the consequences
could be disastrous without a proper way to recover from errors, and
that is complicated.
On Feb 22, 1:25 pm, Bruno Rocha rochacbr...@gmail.com wrote:
I Guess it is not there yet, because it is dangerous, if you change the
widgets are only used for input. If the field is not writable SQLFORM
uses db.table.field.represent(value) instead.
On Feb 22, 3:37 pm, Niphlod niph...@gmail.com wrote:
Hi, am I missing something or custom widgets when field is not
writable ends up to be forgotten (i.e. default string
On Feb 22, 4:37 pm, Niphlod niph...@gmail.com wrote:
Hi, am I missing something or custom widgets when field is not
writable ends up to be forgotten (i.e. default string representation
is done on these fields)?
I'm using something like:
#controller
record = db.mytable[1]
why
crud.settings.formstyle='divs'
never worked? Can you provide an example that does not work? Let's
settle that firt.
On Feb 22, 3:41 pm, greenpoise danel.sega...@gmail.com wrote:
I am using form.custom. I've got the submit as form.custom.submit but
is there anything for the delete
I just started using mySQL with web2py now my question is when
administrating the database from the web interface i added a new table
in the mySQL database but when i hit refresh in the browser the table
doesn't show up. Also when adding another user I have to specify the
userID. How can you
OK, problem was with routes.py. I needed to add:
routers = dict(
BASE = dict(
...
controllers = 'DEFAULT',
...
)
Another little gotcha is that if you build URLs in a .load file, make sure
to include extension='' so it doesn't inherit the .load extension.
Ex: URL(c='components',
You should not be editing the database directly. Web2py takes care of all of
that for you. Your database structure is based on what you include in your
models.py file. Web2py automatically creates and populates an id field so
you do not put that in your model.
Have a look at the Overview:
1 - 100 of 109 matches
Mail list logo