Excellent! Thank you both!
Before I had [file | (cbox) delete ]
requires=IS_IMAGE()
got rid of the delete and checkbox, but now I am still left with
[file]
(a link to download the file)
Might have to do server-side DOM parsing to get rid of that ...
Thanks!!!
Luis.
On Jun 9, 1:06 am, contatogilson...@gmail.com
contatogilson...@gmail.com wrote:
I suggest that has more people to contribute to the documentation of web2py.
The documentation uses the principle of wiki with that we can help make it
updatedalways.
Currently, the web2py book is a wiki, and
On Jun 9, 3:02 am, Stifan Kristi steve.van.chris...@gmail.com wrote:
is the book has already been updated right now?
thank you
I made some small fixes last night, if that is the kind of thing you
mean. If you mean to ask whether the book is completely up to date
with the capabilities and
On Thursday, 9 June 2011 03:03:51 UTC+2, Massimo Di Pierro wrote:
Users who have an opinion please share it now. This is important.
Could you direct us to more details about the issue?My current
understanding is shallow, but I agree with Pierre that platform-specific
environment
IMHO it depends on a number of things.
Using groups and memberships is good if the flags are meant to indicate an
ability to do something on the system because there are decorators and
functions to test for having the attribute. You can then decorate a function
or use a has_ test to
Event starts today
http://apac.pycon.org/
(built with web2py goodness too!)
I have a query that includes both orderby and limitby. What seems to happen
is that the db returns some set of records as dictated by the limit and then
orders the records in that set. So I pretty much get the same set every time
even though I know the field being ordered has changed for
Thanks, ron_m, good info.
hi,
it is cosmetic, but can be a pain for someone no so familiar with
python.
In examples for restful api:
def index():
def GET(*args,**vars):
patterns = [
/persons[person],
/{person.name.startswith},
/{person.name}/:field,
In sql, you can apply first order by and then limitby for example in
Oracle:
select * from
(select * from table
order by field)
where rownum11//row 1 to 10 after order
On 9 jun, 09:52, pbreit pbreitenb...@gmail.com wrote:
I have a query that includes both orderby and limitby. What seems to
In DAL, I don´t know If this can be done.
On 9 jun, 10:40, luifran lbernalhernan...@yahoo.es wrote:
In sql, you can apply first order by and then limitby for example in
Oracle:
select * from
(select * from table
order by field)
where rownum11//row 1 to 10 after order
On 9 jun, 09:52,
Hello Massimo,
How is it going? As I promised we have uploaded the new CUBRID Python API
Doc. You can download it from
http://www.cubrid.org/python_programming#manual or view it online at
ftp://ftp.cubrid.org/CUBRID_Docs/Drivers/Python/8.4.0/index.html.
The documentation is prepared by
Very Nice!.
2011/6/9 Luther Goh Lu Feng elf...@yahoo.com
Event starts today
http://apac.pycon.org/
(built with web2py goodness too!)
--
http://martin.tecnodoc.com.ar
I followed the instruction in the slice, but I keep getting the same error
message AttributeError: 'Envelope' object has no attribute 'clientType'.
I'm on Windows, running web2py 1.95.1, Active Python 2.7 and Flash Builder
4.5
On Thu, Dec 2, 2010 at 2:54 AM, mdipierro mdipie...@cs.depaul.edu
And here is the traceback:
Traceback (most recent call last):
File C:\Users\Alexei\Dev\web2py\web2py\gluon\restricted.py, line
181, in restricted
exec ccode in environment
File
C:\Users\Alexei\Dev\web2py\web2py\applications\amfrpctest\controllers/default.py,
line 59, in module
I check out the latest web2py version from the hg
I created a New simple application
I modified the first menu item in models/menu.py
response.menu = [
(TAG['']('Index'), False,
URL(request.application,'default','index'), [])
]
this does not make sense, and is just for testing, actualy I
Im not working with the latest version, but sometimesn it happens to me,
and is because there's not write permissions on the /errors folder, or
because the /errors folder does not exists.
I hope this help to you.
El jue, 09-06-2011 a las 03:28 -0700, selecta escribió:
I check out the latest
defining a table like that
db.define_table('power_curve',
Field('site', db.site, notnull=True, requires = IS_IN_DB(db,
'site.id', '%(name)s')),
Field('file_name', 'upload', uploadfield=True, notnull=True,
required=True),
Field('validity', 'date',
db(db.power_curve).select(orderby=~db.power.id,
group_by=db.power_curve.site)
groupby instead of group_by
I have a query that includes both orderby and limitby. What seems to happen
is that the db returns some set of records as dictated by the limit and
then
orders the records in that set. So I pretty much get the same set every
time
even though I know the field being ordered has changed for
On Jun 9, 12:37 pm, Daniel Gonzalez dgzabal...@gmail.com wrote:
Im not working with the latest version, but sometimesn it happens to me,
and is because there's not write permissions on the /errors folder, or
because the /errors folder does not exists.
no this is not the case for me, you can
No proxy, just default Ubuntu Server 10.04.2 with web2py trunk, plus pyodbc.
No web server is installed on the machine and I am running it using python
web2py.py -i 0.0.0.0 -a password -c cert.crt -k key.key, so I wonder if it
has something to do with SSL? And the generic views have not been
I proposed to massimo some ideas and improvements, regarding to this.
2011/6/9 cjrh caleb.hatti...@gmail.com
On Jun 9, 3:02 am, Stifan Kristi steve.van.chris...@gmail.com wrote:
is the book has already been updated right now?
thank you
I made some small fixes last night, if that is the
Not to start a holy war or anything, but I hear people talking all the time
about how emacs or vim is the best code editor ever. Why is that? Does it do
code completion or have some other really helpful feature that I just
missed? I've used vim to edit text files, but editing code in a tiny
intelliyole http://twitter.com/#!/intelliyole Dmitry Jemerov
@
@rochacbruno http://twitter.com/rochacbruno actually *web2py* support is
not on the PyCharm roadmap. the number of votes is not the only thing
driving our development plans
2011/6/9 Ross Peoples ross.peop...@gmail.com
Not to start
replacing TAG[''] with DIV solved the problem, but still it would be
nice to find out why this causes web2py to act this way
2011/6/9 Ross Peoples ross.peop...@gmail.com
Not to start a holy war or anything, but I hear people talking all the time
about how emacs or vim is the best code editor ever. Why is that? Does it do
code completion or have some other really helpful feature that I just
missed? I've used vim to
On , Pierre Thibault pierre.thibau...@gmail.com wrote:
2011/6/9 cjrh caleb.hatti...@gmail.com
On Thursday, 9 June 2011 03:03:51 UTC+2, Massimo Di Pierro wrote:Users
who have an opinion please share it now. This is important.
Could you direct us to more details about the issue? My current
Thank you for the suggestion!!!
Request to join group sent. :)
2011/6/9 caleb.hatti...@gmail.com
On , Pierre Thibault pierre.thibau...@gmail.com wrote:
2011/6/9 cjrh caleb.hatti...@gmail.com
On Thursday, 9 June 2011 03:03:51 UTC+2, Massimo Di Pierro wrote:Users
who have an opinion please share it now. This is important.
Could you direct us to
i created a database with tablename,fieldname
and i created a form-textbox in html language in views
how to compare these two things
created in html
login:
password:
when i entered the submit button it compare with the values in
database.
if correct go to another page
send the web2py code 2 my email
I do not understand. :-(
On Jun 9, 3:21 am, Pawel Jasinski pawel.jasin...@gmail.com wrote:
hi,
it is cosmetic, but can be a pain for someone no so familiar with
python.
In examples for restful api:
def index():
def GET(*args,**vars):
patterns = [
/persons[person],
For anyone else following, the thread is
herehttps://groups.google.com/d/topic/web2py/_zhjxWa4tAU/discussion.
I am going to have a look at this.
2011/6/9 Ross Peoples ross.peop...@gmail.com
Not to start a holy war or anything, but I hear people talking all the time
about how emacs or vim is the best code editor ever. Why is that? Does it do
code completion or have some other really helpful feature that I just
missed? I've used vim to
Limitby should be executed after olderby. Are you sure that is not the
case? What DB?
On Jun 9, 2:52 am, pbreit pbreitenb...@gmail.com wrote:
I have a query that includes both orderby and limitby. What seems to happen
is that the db returns some set of records as dictated by the limit and then
Hi,
I learned Web2Py and I'm learning Ruby on Rails.
Is Ruby on Rails faster than Web2py ?
It seems web2py open/read/close each files (db.py, controller...) to
render a page (including all partials, layout...).
Ruby Rails seems to cache all this files into memory, so it's faster.
Any note
Not sure if you have a question for us. Good to have you on board :-)
On Jun 9, 7:54 am, anil manikyam anilmanikya...@gmail.com wrote:
created in html
login:
password:
when i entered the submit button it compare with the values in
database.
if correct go to another page
send the web2py
So you suggest removing the case insensitive flag that was added in 1.96.4?
But in a web2py app, you would have something like
/applications/Cast/modules/cast.py, and in your code you would just do
'import cast'. My understanding of the problem is that in that case, the new
web2py importer tries to import applications.cast.modules.cast instead of
web2py is 3x - 10x faster because the python interpreter is faster
then ruby. The bottle neck is always the database anyway.
On Jun 9, 9:07 am, Bruno Rocha rochacbr...@gmail.com wrote:
In web2py you can cache anything in RAM or use memcache.
Em 09/06/2011 10:40, Alexandre Strzelewicz
On Thursday, 9 June 2011 16:03:01 UTC+2, cjrh wrote:
In my opinion, we should just document that the cast must match. Note that
this issue has *nothing to do with web2py*, and as a Windows user, I am
not too surprised by this behaviour anyway.
...should just document that the *case *must
hi,
sorry for being to cryptic.
In [1]: def foo(*args,**kwargs):
...: print vars
...:
...:
In [2]: foo()
built-in function vars
In [3]: def bar(*args,**vars):
...: print vars
...:
...:
In [4]: bar()
{}
ref: http://docs.python.org/library/functions.html#vars
as I
I use the blocks to couple eating several portions of the layout pages for
quite a while.Only in this last version is not working.
layout.html
{{ block test }}{{ end }}
test.html
{{ extend 'layout.html' }}
{{ block test }}
h2It is working/h2
{{ end }}
When I run the application,
On Thursday, June 9, 2011 10:18:41 AM UTC-4, cjrh wrote:
On , Massimo Di Pierro massim...@gmail.com wrote:
So you suggest removing the case insensitive flag that was added in
1.96.4?
Yes. In Alessandro's specific case, he should use:
import app.Castalia.blah.blah.castialia
But
On , Anthony abasta...@gmail.com wrote:
On Thursday, June 9, 2011 10:18:41 AM UTC-4, cjrh wrote:
On , Massimo Di Pierro massim...@gmail.com wrote:
So you suggest removing the case insensitive flag that was added in
1.96.4?
Yes. In Alessandro's specific case, he should use:
import
Now I understand. It is a problem witg the example. Will fix it.
On Jun 9, 9:24 am, Pawel Jasinski pawel.jasin...@gmail.com wrote:
hi,
sorry for being to cryptic.
In [1]: def foo(*args,**kwargs):
...: print vars
...:
...:
In [2]: foo()
built-in function vars
In [3]: def
Can you tell me which is the last version that worked? I do no think
we changed anything there recently.
On Jun 9, 9:02 am, contatogilson...@gmail.com
contatogilson...@gmail.com wrote:
I use the blocks to couple eating several portions of the layout pages for
quite a while.Only in this last
It works for you because of the temporary fix (ignore capitalization).
What Pierre and Caleb are saying is that it should NOT work if you get
capitalization wrong.
On Jun 9, 9:25 am, Anthony abasta...@gmail.com wrote:
On Thursday, June 9, 2011 10:18:41 AM UTC-4, cjrh wrote:
On , Massimo Di
On Thursday, June 9, 2011 8:54:07 AM UTC-4, anil manikyam wrote:
created in html
login:
password:
when i entered the submit button it compare with the values in
database.
if correct go to another page
send the web2py code 2 my email
Are you asking how to do this? If so, look at
On Thursday, 9 June 2011 16:22:10 UTC+2, Anthony wrote:
importer still appears to work. So, as far as I can tell, the importer
works, even without the fix in trunk, though maybe I have misunderstood the
problem.
Yes, it is confusing. The case-insensitivity works only until a name is
I think it was in version 1.94.1 to 1.95.1
_
*Gilson Filho*
*Web Developer
http://gilsondev.com*
2011/6/9 Massimo Di Pierro massimo.dipie...@gmail.com
Can you tell me which is the last version that worked? I do no think
we changed anything there
On Thursday, 9 June 2011 16:22:10 UTC+2, Anthony wrote:
But in a web2py app, you would have something like
/applications/Cast/modules/cast.py, and in your code you would just do
'import cast'. My understanding of the problem is that in that case, the new
web2py importer tries to import
On Thursday, June 9, 2011 10:29:40 AM UTC-4, Massimo Di Pierro wrote:
It works for you because of the temporary fix (ignore capitalization).
What Pierre and Caleb are saying is that it should NOT work if you get
capitalization wrong.
No, I'm testing with 1.96.3, which is before the fix.
On Thursday, June 9, 2011 10:40:19 AM UTC-4, cjrh wrote:
On Thursday, 9 June 2011 16:22:10 UTC+2, Anthony wrote:
importer still appears to work. So, as far as I can tell, the importer
works, even without the fix in trunk, though maybe I have misunderstood the
problem.
Yes, it is
Has anyone who has used latest debian package been able to import
modules while keeping the application self contained? I have the
traceback from another user's application.
First line of default.py
question_maker = local_import('question_maker')
then when you run it...
Traceback (most recent
fixed in trunk. Thanks
On Jun 9, 9:24 am, Pawel Jasinski pawel.jasin...@gmail.com wrote:
hi,
sorry for being to cryptic.
In [1]: def foo(*args,**kwargs):
...: print vars
...:
...:
In [2]: foo()
built-in function vars
In [3]: def bar(*args,**vars):
...: print vars
On , Anthony abasta...@gmail.com wrote:
Do you have an app to reproduce the problem? I created an app
named Castalia (note the capitalization) with a module
/modules/selfgroup/castalia/config.py, which I think is the same
structure and naming as Alessandro's app. In a controller action, I
can you check the file is there and __init__.py is in every parent
folder?
On Jun 9, 10:01 am, Stavros stavros32...@gmail.com wrote:
Has anyone who has used latest debian package been able to import
modules while keeping the application self contained? I have the
traceback from another user's
Apologies didn't see this anywhere that showed a clear example of what
I'm asking about.
Have custom form - using inpval, dspval, etc. and would like to know
if there is specific formatting that allows me to set form field
properties?
this part I get: {{=dspval.my_field_name}}
My question is
We copy the math_quiz directory and all its contents from a source install
of web2py, where it works, to the application directory of a user created by
the debian package, where it gives the error above.
Three of us have confirmed this on three separate installations. We are
pretty confident
Hello,
I would like to use the superfish menu that is on the welcome
application but showing only some links depending the role the user
has. Is that possible??
Thanks in advance
Yes, I believe that's what's happening but I was hoping to order the set
first and then return the sub-set.
For example, if I have:
7, 5, 2, 9, 6, 3, 4, 8
And I want the 3 lowest values: 2, 3, 4. Instead I get 2, 5, 7 (7, 5, 2
sorted)(I think).
2011/6/9 Jeff Elkner jeff.elk...@gmail.com:
We copy the math_quiz directory and all its contents from a source install
of web2py, where it works, to the application directory of a user created by
the debian package, where it gives the error above.
Three of us have confirmed this on three
items should be sorted when groups, unless you want to sort by a
condition different than the groups. You can do that as well but you
need to give a concrete model example and data example.
On Jun 9, 11:21 am, pbreit pbreitenb...@gmail.com wrote:
Yes, I believe that's what's happening but I was
This was a while ago, and I cannot find my source at the moment, but I
recall reading a benchmark done that put RoR faster than PHP, but slower
than Python by a large margin (without server-side caching and other
performance tweaks). If I find the original article or maybe a more recent
one on
also keep in mind your datastore. more fields on a SQL table can get
unwieldy for the SQL engine. GAE prefers many fields to joins as you can't
do joins there. lists for flags just seems unwieldy in either environment.
bitwise operations seem super-slick and cool, but do they make the code
As pointed out by Massimo, the site is built with conf2py
http://code.google.com/p/conf2py/
On Jun 9, 6:06 pm, Martín Mulone mulone.mar...@gmail.com wrote:
Very Nice!.
2011/6/9 Luther Goh Lu Feng elf...@yahoo.com
Event starts today
http://apac.pycon.org/
(built with web2py goodness
how is Python 3-10x faster than Ruby?
Yes, you can create whatever menus you want. The welcome app provides menus
that are described in a models file but you can describe a a different menu
or describe a menu in a controller or module. Just follow the patterns you
see in the welcome code:
response.my_menu=[(T('Resources'), False,
This is probably not a discussion we want to start. While Python may have a
small performance edge, it's nothing to get excited about. Likewise, the OP
makes performance assumptions that may not be realistic. As I thought
everyone knew, there are quite a few variables that go in to overall
We might more detail about what you are trying to do including some code
samples.
Hi !
Below given is a table ---
code
db.define_table('ac',
Field('acnm','string', IS_LENGTH(100), length=100, required=True),
Field('acgrpid', db.acgrp, notnull=True, required=True),
Field('active', 'string', IS_LENGTH(1), length=1,
requires=IS_LENGHT(1), default='Y', required=True,
On Thursday, June 9, 2011 1:01:02 PM UTC-4, Vineet wrote:
Hi !
Below given is a table ---
code
db.define_table('ac',
Field('acnm','string', IS_LENGTH(100), length=100, required=True),
Field('acgrpid', db.acgrp, notnull=True, required=True),
Field('active', 'string',
pardon me, what is the meaning of *args and **vars?
thank you.
After some talking to the Pydev author, we've managed to make a patch
to a file in Pydev that calls the build_environment() and
run_models_in() functions from web2py, and adds the resulting
environment into the __builtins__. The result is you automagically
get a fully working web2py environment in
a, i c, pardon me, if i'm not wrong massimo said he will get the book update
on this august. so that i confirm it, hehe...
glad to know that, thank you so much.
Good point. The last thing we want is another Python vs RoR vs whatever war.
I know that I helped test performance and ran my own benchmarks when Massimo
was working performance improvements with regards to session files back in
March, since sessions can slow down response times. My own testing
web2py makes extensive use of these. Take the A, DIV, or TABLE as examples,
you can pass HTML attributes (e.g. _class, _id, _style) to these, but if you
look at the code, you will notice that these things are not in the signature
of these methods. They allow you to provide an unknown number of
That would be awesome. I tried using Eclipse + PyDev once, but it just felt
too big and complicated, especially since it didn't know anything about
web2py and couldn't do autocomplete. If this works, I may have to reevaluate
Eclipse + PyDev again.
http://databrewery.org/
Brewery is a Python http://python.org/ framework and collection of tools
for analysing and mining data. Goal is to provide functions and tools for:
- streaming and processing structured data from various sources, such as
CSV, XLS files, Google spreadsheets,
for fairness jruby is faster than cpython and jython. jython is slower
then all of them.
On Jun 9, 11:53 am, pbreit pbreitenb...@gmail.com wrote:
This is probably not a discussion we want to start. While Python may have a
small performance edge, it's nothing to get excited about. Likewise, the
Does this require any modification to web2py?
On Jun 9, 12:27 pm, Álvaro J. Iradier airad...@gmail.com wrote:
After some talking to the Pydev author, we've managed to make a patch
to a file in Pydev that calls the build_environment() and
run_models_in() functions from web2py, and adds the
You can use this project: http://code.google.com/p/neo-insert-imports/ to
add automatically the necessary imports for the static analyzer.
--
A+
-
Pierre
My blog and profile
(http://pierrethibault.posterous.com)http://pierrethibault.posterous.com
YouTube page
2011/6/9 caleb.hatti...@gmail.com
On , Anthony abasta...@gmail.com wrote:
Do you have an app to reproduce the problem? I created an app named
Castalia (note the capitalization) with a module
/modules/selfgroup/castalia/config.py, which I think is the same structure
and naming as
Hi,
I'm new to web2py, but familiar to similar frameworks. I have a system that
uses web2py builtin auth_user table. The problem is that I wanna use
ondelete='NO ACTION' in my app (it is CASCADE by default), and I don't know
how to put it in the model file. Anyone can help?
Att.
Thiago
I am trying to get web2py going with nginx on a remote server.
When I try running it via uswgi and nginx, using wsgihandler.py, it
works with the welcome application. However when I try another
application it gives me an error that it cannot find .../cache/
cache.shelve. This other application
this should do it
Field('name','reference othertable',ondelete='NO ACTION')
On Jun 9, 1:14 pm, Thiago Carvalho D' Ávila thiagocav...@gmail.com
wrote:
Hi,
I'm new to web2py, but familiar to similar frameworks. I have a system that
uses web2py builtin auth_user table. The problem is that I
On Thursday, June 9, 2011 2:14:59 PM UTC-4, Thiago wrote:
I'm new to web2py, but familiar to similar frameworks. I have a system that
uses web2py builtin auth_user table. The problem is that I wanna use
ondelete='NO ACTION' in my app (it is CASCADE by default), and I don't
know how to put
Yes, I checked that project, but these way would require not adding
anything at the headers, and it also parses the models file. It
requires no modification in web2py, just in Pydev.
Talking to the pydev author in the pydev mailing list, he might
consider including support for web2py if we manage
This validator handles a case where at least one of several fields must be
non-blank.
class IS_NOT_ALL_EMPTY(object):
Class representing a validator requiring at least one non-empty field in
a set.
def __init__(self, others,
error_message='Enter a value in at least one field'):
Cool. Maybe add a slice for this:
http://www.web2pyslices.com/main/default/index
On Thursday, June 9, 2011 5:13:43 PM UTC-4, Jim Karsten wrote:
This validator handles a case where at least one of several fields must be
non-blank.
class IS_NOT_ALL_EMPTY(object):
Class representing a
nice info, will try and take a look, thank you.
it works on me too, pbreit, thank you so much. when i use the simple it
works fine, but when i try to expand it (i mean using components, ajax and
jquery it's not work).
On Thu, Jun 9, 2011 at 5:11 AM, pbreit pbreitenb...@gmail.com wrote:
It worked for me with a normal query:
I have this auth_user table, and another table called activities. This
activities have 2 fields that are foreing keys to user (created by and
modified by). If I delete any user that created or modified one activity,
the activity is deleted.
Do I have to put NO ACTION in all fields that is foreign
The Ajax worked OK for me. I used your exact same code except I
switched/fixed this one line:
results = db().select(orderby = ~db.post.id)
to
results = db(db.post.id0).select(orderby = ~db.post.id)
Is there an ETA on Slices2?
On Thursday, June 9, 2011 6:59:34 PM UTC-4, Thiago wrote:
I have this auth_user table, and another table called activities. This
activities have 2 fields that are foreing keys to user (created by and
modified by). If I delete any user that created or modified one activity,
the activity is
1 - 100 of 104 matches
Mail list logo