I agree.
On Jul 23, 12:34 am, Jonathan Lundell wrote:
> On Jul 22, 2010, at 10:07 PM, mr.freeze wrote:
>
> > That works. Thanks.
>
> I think perhaps sanitizer could use some work. A bare is harmless enough.
> And ought to be OK.
>
>
>
> > On Jul 22, 11:23 pm, Jonathan Lundell wrote:
> >> On J
field objects cannot be stored in sessions because they contain a
reference to an open database connection. That is not serializable.
On Jul 23, 12:18 am, weheh wrote:
> I want to create a session variable session.orderby so that later on,
> I can do
>
> db(query).select(db.table.ALL,orderby=
db(query).select(left=left,orderby=orderby,*fields)
On Jul 22, 11:58 pm, weheh wrote:
> OK, I lied. I really want to do this
>
> db(query).select(*fields,left=left,orderby=orderby)
>
> where left and orderby are also variables.
>
> db(query).select(*fields) works OK.
>
> However,
>
> db(query).se
What is the name of the app? That affects the name of the cookies.
On Jul 22, 11:46 pm, weheh wrote:
> Sorry, Massimo, but I don't understand your question.
This is now in 1.81.5
On Jul 22, 11:18 pm, Phyo Arkar wrote:
> Thats very good news. I will be trying out soon!
>
> On 7/22/10, Timbo wrote:
>
> > OK, so it's a thread-starvation issue. Let this be the interim fix
> > for web2py. I've got several busy days ahead of me so I'll put out a
> > rea
+1
On Jul 22, 7:08 pm, "mr.freeze" wrote:
> Assuming you meant:
> r.y.y.y.t
> It works because db.a.y is a self referencing field. Inserting into
> db.a doesn't return an int, but a Reference, which has a __getattr__
> that returns the record it references. Any number of y's should work:
> r.y.y.
LOL. We all are somedays
On Jul 22, 6:40 pm, Andrew Thompson wrote:
> On 7/22/2010 7:37 PM, Andrew Thompson wrote:
>
> > Is it possible to redefine the defaults for _class, ul_class, and
> > li_class on a per app basis?
>
> Nevermind, I'm an idiot.
>
> --
> Andrew Thompsonhttp://aktzero.com/
On Jul 22, 2010, at 10:07 PM, mr.freeze wrote:
> That works. Thanks.
I think perhaps sanitizer could use some work. A bare is harmless enough.
And ought to be OK.
>
> On Jul 22, 11:23 pm, Jonathan Lundell wrote:
>> On Jul 22, 2010, at 7:41 PM, mr.freeze wrote:
>>
>>> Negative, it sanitizes
I want to create a session variable session.orderby so that later on,
I can do
db(query).select(db.table.ALL,orderby=session.orderby)
Problem is, when I set
session.orderby=db.table.field
I get a ticket:
Traceback (most recent call last):
File "C:\web2py\gluon\main.py", line 407, in
That works. Thanks.
On Jul 22, 11:23 pm, Jonathan Lundell wrote:
> On Jul 22, 2010, at 7:41 PM, mr.freeze wrote:
>
> > Negative, it sanitizes those too:
> XML('test',sanitize=True,permitted_tags =
> ['a']).xml()
> > 'test'
>
> Only absolute URLs are acceptable. Tryhttp://web2py.com.
>
OK, I lied. I really want to do this
db(query).select(*fields,left=left,orderby=orderby)
where left and orderby are also variables.
db(query).select(*fields) works OK.
However,
db(query).select(*fields,left=left,orderby=orderby)
gives a syntax error just before the left clause:
left=left
I'd already tried that and it didn't seem to work. I'll try again.
Sorry, Massimo, but I don't understand your question.
Thanks. I'll make that work.
On Jul 22, 6:08 pm, Thadeus Burgess wrote:
> It is kinda possible. Save both queries as objects. Left is just a query
> that tells web2py which fields in the tables should be linked together.
>
> For example,
>
> lefton = (db.friend.dog_id == db.dog.id)
> where = db(
On Jul 22, 2010, at 9:32 PM, Phyo Arkar wrote:
> You mean ajax?
> You can do this using Ajax.
> In Jquery:
> $(#div_id).load(Path_To_Your_Page)
No, I meant just serving a regular (dynamic) page. I'm not using Ajax.
>
> On 7/23/10, Jonathan Lundell wrote:
>> It'd be nice to be able to return a
You mean ajax?
You can do this using Ajax.
In Jquery:
$(#div_id).load(Path_To_Your_Page)
On 7/23/10, Jonathan Lundell wrote:
> It'd be nice to be able to return a dynamic page in (controlled) chunks. I
> have no idea how the interface to something like that might work
Hello Web2py!
Here i am having this problem. As web2py do not allow Space in paths ,
trying this having problem "Invalid Request".
i am trying to serve files which are extracted from archives under
web2py /static/ folder. They may or May not include space in extracted
file name or Directory names
On Jul 22, 2010, at 7:41 PM, mr.freeze wrote:
> Negative, it sanitizes those too:
XML('test',sanitize=True,permitted_tags =
['a']).xml()
> 'test'
Only absolute URLs are acceptable. Try http://web2py.com.
>
> On Jul 22, 9:38 pm, Jonathan Lundell wrote:
>> On Jul 22, 2010, at 7:04 PM,
Thats very good news. I will be trying out soon!
On 7/22/10, Timbo wrote:
> OK, so it's a thread-starvation issue. Let this be the interim fix
> for web2py. I've got several busy days ahead of me so I'll put out a
> real fix for Rocket in the coming days.
>
> -tim
>
> On Jul 22, 11:39 am, Micha
It'd be nice to be able to return a dynamic page in (controlled) chunks. I have
no idea how the interface to something like that might work
Negative, it sanitizes those too:
>>> XML('test',sanitize=True,permitted_tags =
>>> ['a']).xml()
'test'
On Jul 22, 9:38 pm, Jonathan Lundell wrote:
> On Jul 22, 2010, at 7:04 PM, mr.freeze wrote:
>
> XML('test',sanitize=True,permitted_tags = ['b']).xml()
> > 'test'
> XML('test',sanitiz
On Jul 22, 2010, at 7:04 PM, mr.freeze wrote:
XML('test',sanitize=True,permitted_tags = ['b']).xml()
> 'test'
XML('test',sanitize=True,permitted_tags = ['a']).xml()
> 'test'
>
> Why does the 'a' element get sanitized?
At first glance, it looks like it might require an attribute from
a
>>> XML('test',sanitize=True,permitted_tags = ['b']).xml()
'test'
>>> XML('test',sanitize=True,permitted_tags = ['a']).xml()
'test'
Why does the 'a' element get sanitized?
Assuming you meant:
r.y.y.y.t
It works because db.a.y is a self referencing field. Inserting into
db.a doesn't return an int, but a Reference, which has a __getattr__
that returns the record it references. Any number of y's should work:
r.y.y.y.y.y.y.y.y.y.y.y.y.y.y.y.y.y.t
't' is the virtual field
It shouldn't. It should throw an error at the print statement because
'a' is not defined.
On Jul 22, 6:33 pm, mdipierro wrote:
> The following code uses:
> 1) a computed field
> 2) a self reference
> 3) a virtual field
>
> >>> db.define_table('a',Field('x'),Field('y','reference
> >>> a'),Field('
On 7/22/2010 7:37 PM, Andrew Thompson wrote:
Is it possible to redefine the defaults for _class, ul_class, and
li_class on a per app basis?
Nevermind, I'm an idiot.
--
Andrew Thompson
http://aktzero.com/
Is it possible to redefine the defaults for _class, ul_class, and
li_class on a per app basis?
--
Andrew Thompson
http://aktzero.com/
Hi,
I had made my custom form, but adding {{=form.custom.submit}} doesn't
let me send the form.
How should I add submit button to the page, so I would get a default
fields validation and form submit functionallity?
Best regards.
How is the app called?
On Jul 22, 6:30 pm, weheh wrote:
> After further muddling about, I'm now wondering if this might be a
> cookie corruption issue, if such a thing is possible. Subsequent to
> this problem report, the UI tab cookie stopped working properly. I
> ultimately gave up trying to fi
The following code uses:
1) a computed field
2) a self reference
3) a virtual field
>>> db.define_table('a',Field('x'),Field('y','reference
>>> a'),Field('z',compute=lambda row: row['x']*3))
>>> class A:
>>> def t(self): return len(self.a.z)
>>> db.a.virtualfields.append(A())
>>> r=db.a.inse
After further muddling about, I'm now wondering if this might be a
cookie corruption issue, if such a thing is possible. Subsequent to
this problem report, the UI tab cookie stopped working properly. I
ultimately gave up trying to find a problem in my code and wiped the
cookie clean. Now, everythin
it contains mostly bug fixes. Most of the fixes are obscure except to
important ones:
1) Scott fixed memcache that broke a few versions ago
2) Mike and Tim found and fixed a process starvation issue with the
built-in web server. This caused occasionally slow response time on
high traffic. The fix i
Yes, you just need to unpack the list:
db(query).select(*fields)
On Jul 22, 5:44 pm, weheh wrote:
> Is there a way to make a list of db fields:
>
> fields=[db.table1.id, db.table2.name, etc.]
>
> and then use that list in a query, e.g.
>
> db(query).select(fields)
>
> ?
>
> I've tried various thi
Thanks
you can do this. register a domain like mydomain.com and access it as
http://mycommunty.mydomain.com
in the model file you can do:
community = request.env.host_name.split('.')[0]
db=DAL('sqlite://storage.%s.sqlite' % community)
and that should be all you need.
On Jul 22, 1:58
All, I just discovered this amazing framework and am immediately
switching to it (from adobe) for a current project I am working on.
It is quite different from the way I have built solutions in the
past. Here is the basic structure of how I need to approach the
problem:
1) I want a user to log in
Is there a way to make a list of db fields:
fields=[db.table1.id, db.table2.name, etc.]
and then use that list in a query, e.g.
db(query).select(fields)
?
I've tried various things but they don't work. I suppose I'd have to
inspect the code to figure it out.
How big is the pickled file?
On Jul 22, 5:08 pm, "topher.baron" wrote:
> web2py community,
>
> I'm currently implementing a web application on localhost running OS
> 10.6.4. When I cPickle.dump a large object to the /tmp directory,
> web2py crashes. The same operations work with smaller objects
good catch. Thanks for letting us know.
On Jul 22, 4:16 pm, marcelielapointe
wrote:
> I finally find the problem!!
>
> I am doing some import in a models, in particular:
>
> from pylab import *
>
> if I comment this line everything works fine
>
> So It's look like it's not a good idea to impo
It is kinda possible. Save both queries as objects. Left is just a query
that tells web2py which fields in the tables should be linked together.
For example,
lefton = (db.friend.dog_id == db.dog.id)
where = db(db.friend.name == "fred")
... continue and do some stuff with the "where" query object
web2py community,
I'm currently implementing a web application on localhost running OS
10.6.4. When I cPickle.dump a large object to the /tmp directory,
web2py crashes. The same operations work with smaller objects.
Does this mean I need to increase the heap? If so, how do I do this?
If not, a
I finally find the problem!!
I am doing some import in a models, in particular:
from pylab import *
if I comment this line everything works fine
So It's look like it's not a good idea to import module in model or
only not doing: from module import *
...
On Jul 22, 5:03 pm, marcelielap
It turns out the error I got it was for a different syntactical
mistake I'd made. The relevant error is slightly different:
TypeError: 'Rows' object is not callable
I assume this is because the .select() method returns a 'Rows' object?
On Jul 22, 4:09 pm, Michael Wolfe
wrote:
> I'm still learn
If I try something like:
print type(TH)
it prints:
where it could have been defined???
On Jul 22, 4:53 pm, marcelielapointe
wrote:
> I think I find something..
>
> in dateutil/rrule.py "MO", "TU", "WE", "TH", "FR", "SA", "SU" are
> define. If I replace TH with either of them, the same ticke
I think I find something..
in dateutil/rrule.py "MO", "TU", "WE", "TH", "FR", "SA", "SU" are
define. If I replace TH with either of them, the same ticket is
issued. If I replace TH with another random string like TW or
something else I got:
NameError: global name 'Tdsd' is not defined
so it seem
I'm still learning web2py, so bear with me. I am trying to write a
somewhat complex query and would like to build it as a series of
smaller, easier to understand queries. web2py seems to support this
beautifully for INNER JOINs and WHERE clauses as explained here:
http://www.thadeusb.com/weblog/2
I'm an idiot. I actually hadn't tried the transaction.product.name
syntax, and lo-and-behold, it works.
web2py is awesome.
On Jul 22, 8:31 pm, scausten wrote:
> There's a really cool feature in the CakePHP web framework whereby you
> can query a database recursively and have a query return not o
There's a really cool feature in the CakePHP web framework whereby you
can query a database recursively and have a query return not only the
records of a given query, but also any other records they refer to,
and I was wondering if there's anything similar in web2py. (There is a
'recursive' flag in
no, I don't use id, I use a string.
I create a new application and everything works fine. So the problem
comes from my app, but where does it comes from? I create a test
controller:
# coding: utf8
# try something like
def index():
table = TABLE(TR(TH('1'),TH('2')),TR(TD('un'),TD('deux')))
Working on one now...
On Jul 22, 8:20 am, Massimo Di Pierro wrote:
> This is useful. I suggest making a web2py slice about this.
>
> Massimo
>
> On Jul 21, 2010, at 9:37 PM, Iceberg wrote:
>
>
>
> > Just a quick thought. Since web2py itself already handles SQLite db
> > well under multi-thread
OK, so it's a thread-starvation issue. Let this be the interim fix
for web2py. I've got several busy days ahead of me so I'll put out a
real fix for Rocket in the coming days.
-tim
On Jul 22, 11:39 am, Michael Ellis wrote:
> Much improved with suggested change. Latencies for .js/.css files re
Thank you.
On Jul 22, 12:10 pm, Bruno Rocha wrote:
> a copy is attached, I Don't know if it is discontinued, but I am
> working to port Pyforum to run on GAE.
>
> 2010/7/22 ionel :
>
> > Hello,
>
> > Is pyforum a discontinued project?
>
> > I need a copy of pyforum but thehttp://www.pyforum.org
Much improved with suggested change. Latencies for .js/.css files reduced
to 100-150 msec. Thanks Tim!
Cheers,
Mike
On Thu, Jul 22, 2010 at 12:27 PM, Timbo wrote:
> Try one quick change for me please...rocket is constructed around line
> 655 in main.py
>
> Add a parameter to the constructor
Try one quick change for me please...rocket is constructed around line
655 in main.py
Add a parameter to the constructor call(s): max_threads=0
Please let me know if that affects the problem.
-tim
On Jul 22, 10:34 am, mdipierro wrote:
> I can reproduce the problem. I did on localhost with two
One more thing... in your tests, you may want to save the
httpserver.log. If you still have problems, it will be useful to
compare cherokee logs vs httpserver logs.
Massimo
On Jul 21, 4:33 pm, Thadeus Burgess wrote:
> I try.
>
> I have several copies of web2py core that I have modified in attemp
I cannot reproduce the problem with this:
TABLE(TR(TH('1'),TH(2)),TR(TD('un'),TD('deux')))
It is possible that instead of a constant number you have the problem
when you pass a record id? Mind that a record id is not an int, it
only looks like an int. You have to do TH(str(id))
On Jul 22, 9:58 a
Hi,
I'm having problem producing a table with HTML helpers.. here is the
code:
table = TABLE(TR(TH('1'),TH(2)),TR(TD('un'),TD('deux')))
return dict(table=table)
The problem is with TH('1'), if I put a number in TH there is no
problem but I want to put a string. Here is the ticket:
Traceback (
I can reproduce the problem. I did on localhost with two different
browsers.
Using firebug I can see it takes 25seconds to download base.css (the
problem is not always with the same file).
While I did the test, I also monitored httpserver.log and I find that
it NEVER takes more than 1.2ms serve bas
Web2py Application Exhibition
Do you have a Web2py app that you'd like to show the world?
If so, you may be interested in the Web2py Application Exhibition.
The WAE is a way to...
1. Demonstrate what can be done with Web2py.
2. Share and learn about useful web2py, python, Javascript, jQuery
etc.
Hello,
Is pyforum a discontinued project?
I need a copy of pyforum but the http://www.pyforum.org is always
down.
Thanks
i.a.
http://bazaar.launchpad.net/~qcdvis/qcdvis/trunk/files/head:/plugin_pbs/
On Jul 22, 8:51 am, Hector Oron wrote:
> Hi,
>
> 2010/7/21 mdipierro :
>
> > Welcome Hector,
>
> Thanks
>
> > using os.system is fine if the the commands are short and independent.
> > I would recommend creating a database t
I get a problem, after I created a fresh new app,I only add following into
db.py,
if not auth.id_group("Human Resource"):
group_id11=auth.add_group(role="Human Resource", description="can access the
admin action")
auth.add_permission(group_id11, 'access to manage')
when I run this app, it se
On Jul 22, 2010, at 6:55 AM, MikeEllis wrote:
> Doesn't fix the symptom
Ah. Well, negative results are still results.
>
> On Jul 21, 8:54 pm, Jonathan Lundell wrote:
>> On Jul 21, 2010, at 2:03 PM, mdipierro wrote:
>>
>>> The fact that you are having the problem with static files is giving
>
Doesn't fix the symptom
On Jul 21, 8:54 pm, Jonathan Lundell wrote:
> On Jul 21, 2010, at 2:03 PM, mdipierro wrote:
>
> > The fact that you are having the problem with static files is giving
> > me an idea for a test.
> > Can you please try the web2py I just posted in trunk?
>
> That seems like a
Hi,
2010/7/21 mdipierro :
> Welcome Hector,
Thanks
> using os.system is fine if the the commands are short and independent.
> I would recommend creating a database table of tasks to be executed
>
> db.define_table('task_queue',Field('status'),Field('command'))
>
> The web app would queue command
yo tengo tiempo pensando en algo como una red para móviles, donde cada uno
de ellos funcione como nodo de conexión descentralizado, para asi ampliar la
cobertura y escalar el servicio.
y con plataformas libres como androi.. el camino lo veo poco empinado.
bueno... yo salgo de vacaciones para el 1
We need to write a draft a roadmap. Alvaro has been saying this for
some time.
For me the priority is to strengthen web2py code and improve
documentation.
plugin_wiki is usable but we need more people to start using it before
we can finalize the its specs and until that is done I am not ready to
g
This is useful. I suggest making a web2py slice about this.
Massimo
On Jul 21, 2010, at 9:37 PM, Iceberg wrote:
Just a quick thought. Since web2py itself already handles SQLite db
well under multi-thread situation, so a quick tweak to your
sqlitehandler.py may be putting the web2py db insta
please try again
On Jul 22, 1:43 am, David Marko wrote:
> Applying latest trunk I'm getting following error on console when
> navigating the first page e.g.http://localhost:8000
>
> ERROR:root:Traceback (most recent call last):
> File "c:\java\google_appengine\web2py\gluon\main.py", line 384, i
>
>
> mail.settings.server= '192.168.200.43:25'
>
>
add port
Ok, thanks, I had it in my head that that was the case for some reson.
The Tomcat will be set to run on 8080 and web2py is on 80 so shouldn't
be a problem, just thought I'd check first in case of major panic
later...
On Jul 21, 12:49 pm, mdipierro wrote:
> Why would IIS be disabled when running
Is there anyone who did something with web2py and couchdb? Can you
share your experience?
David
On 20 jul, 02:54, mdipierro wrote:
> because the crud.create does accept inside therefore the form is
> processed before you set form.vars.ficha. You can do insetad:
>
> controller1:
>
> form=crud.create(db.familia)
> if form.accepts(request.vars,session):
> session.ficha=request.post_vars.fi
Thanks to the manual I know how I can hide a form widget depending on
other form variables with jquery.
However I have no Idea how to change other form properties, for
example the options that can be selected in a drop down menu,
depending on, for example, the selection in a second drop down menu.
Hello,
I can't get the web2py mail function to work despite trying a
multitude of settings (in fact I used a 'brute-force' attack to try
all the possible combinations I could think of), here's the latest in
my db.py:
mail=Mail()
mail.settings.server= '192.168.200.43'
mail.settings.sender= 'the...
Sorry, not version, instance.
On Jul 22, 12:19 pm, Narendran wrote:
> Ok. understood the problem.
> I had to run another version of web2py in the remote (prod) server
> on different port in fact.
>
> On Jul 22, 10:13 am, Narendran wrote:
>
>
>
> > Hi,
> > As widely recommended,
> > 1. I have re
Ok. understood the problem.
I had to run another version of web2py in the remote (prod) server
on different port in fact.
On Jul 22, 10:13 am, Narendran wrote:
> Hi,
> As widely recommended,
> 1. I have removed the parameters_*.py on my prod server.
> 2. Established an ssh connection to my prod
You could run web2py in a Jython environment which can then interface
to Java libraries. You would still have to get into the JEE container
held part of the application but my JEE knowledge is now dated and I
never used JBoss so am not sure what would be involved there.
Ron
77 matches
Mail list logo