Can you try it from the shell?
python web2py.py -S welcome
>>> cache.disk.clear()
On May 3, 9:29 pm, mdipierro wrote:
> can you show the complete traceback? Do you have the latest web2py?
> This seems to work for me.
>
> On May 3, 6:25 pm, Avik Basu wrote:
>
> > Hi,
>
> > I have installed a si
can you show the complete traceback? Do you have the latest web2py?
This seems to work for me.
On May 3, 6:25 pm, Avik Basu wrote:
> Hi,
>
> I have installed a site on dreamhost and whenever I issue the command
> "cache.disk.clear" in an action, I get an "invalid function" error.
>
> I thought th
http://stackoverflow.com/questions/2762294/unit-testing-in-web2py
> On Mon, May 3, 2010 at 11:08 PM, Jonathan Lundell wrote:
> web2py probably isn't setting referer on a redirect, and if it did, you'd
> have to interpret the URL.
>
> No. If I have no redirect and call a location with no args the referer is not
> set when I arrive at web2py's default "Interna
Solved previous problem. However, the form won't actually insert into
the database...am I missing something?
On May 3, 5:36 pm, waTR wrote:
> Strange behaviour in view:
>
> I can't seem to use password_two using custom form. It doesn't show up
> as a text-box. It simply shows up as the word "N
You are right
form.custom.widget.password_two is undefined. You must use
On May 3, 7:36 pm, waTR wrote:
> Strange behaviour in view:
>
> I can't seem to use password_two using custom form. It doesn't show up
> as a text-box. It simply shows up as the word "None".
>
> On May 3, 5:20 pm, waTR w
http://visitmix.com/Labs/gestalt/
http://visitmix.com/labs/gestalt/samples/canvas.2d.drawing/canvas.2d.drawing.html
***
You can do
form = SQLFORM(db.artwork, request.args[0], fields=fields,
upload=URL(r=request, c='gae',
f='preview'),_action=)
On May 3, 4:11 pm, howesc wrote:
> Hello,
>
> Is it intentional that when using SQLFORM, and custom views (with
> form.custom.begin), that if i modif
Strange behaviour in view:
I can't seem to use password_two using custom form. It doesn't show up
as a text-box. It simply shows up as the word "None".
On May 3, 5:20 pm, waTR wrote:
> Correction:
> Instead of register["_class"] = "bla", do:
> register.element(_name='fieldNAME')['_class'] = "c
http://tirania.org/blog/archive/2010/May-03.html
ECMA CLI would have given the web both strongly typed and loosely
typed programming languages. It would have given developers a choice
between performance and scriptability. A programming language choice
(use the right tool for the right job) and wou
Correction:
Instead of register["_class"] = "bla", do:
register.element(_name='fieldNAME')['_class'] = "custom_css_classes"
On May 3, 5:18 pm, waTR wrote:
> The way to do it is to do the following in the controller:
>
> register = auth.register()
> login = auth.login()
>
> Then, you can use:
> re
The way to do it is to do the following in the controller:
register = auth.register()
login = auth.login()
Then, you can use:
register["_class"] = "custome_css_classes"
and same for login. Then I simply pass a "return
dict(register=register, login=login)", and I have two forms available
for me t
Is there any way to use form.custom.widget with AUTH.register() and
AUTH.login() ?
I have a design I am trying to plug my code into, and wanted to try
not re-writing the login/register stuff this time.
Hi,
I have installed a site on dreamhost and whenever I issue the command
"cache.disk.clear" in an action, I get an "invalid function" error.
I thought this could be a permissions problem for the cache directory
or cache.shelve, so I added read/write permissions for everyone, but
it didn't seem t
On Mon, May 3, 2010 at 11:08 PM, Jonathan Lundell wrote:
> web2py probably isn't setting referer on a redirect, and if it did, you'd
> have to interpret the URL.
No. If I have no redirect and call a location with no args the referer is
not set when I arrive at web2py's default "Internal error" p
web2py probably isn't setting referer on a redirect, and if it did, you'd
have to interpret the URL.
How about putting the previous location in session before you redirect?
On Mon, May 3, 2010 at 3:05 PM, Miguel Lopes wrote:
> request.env.http_referer is not working for me.
> I checked (http://
request.env.http_referer is not working for me.
I checked (http://www.w3.org/Protocols/HTTP/HTRQ_Headers.html#z14) and the
referer is optionally set by the client. So we can not take it for granted.
Miguel
On Mon, May 3, 2010 at 10:45 PM, mr.freeze wrote:
> I'm not sure if it's reliable or safe
I'm not sure if it's reliable or safe but request.env.http_referer
might be what you're looking for.
On May 3, 4:39 pm, Miguel Lopes wrote:
> Is there a way to find the previous location / address in an action?
>
> For example:
> Currently inwww.domain.com/a/c/f/arg1
> Follow some link to action_
Is there a way to find the previous location / address in an action?
For example:
Currently in www.domain.com/a/c/f/arg1
Follow some link to action_x
def action_x:
if something_is_wrong:
redirect(request.last_location) # including args
...
My goal is to send the user to the page is commi
no, i'm using the source. i had a python problem with the other
project i had been working on, where i upgraded to snow leopard and i
didn't realize it upgraded me to 2.6. but in solving that problem i
changed my python path, and i just tested and it's running 2.5.
so i'm using gae launcher and i
Hello,
Is it intentional that when using SQLFORM, and custom views (with
form.custom.begin), that if i modify attributes after initial form
construction I have to update form.custom.begin myself?
here's my example:
form = SQLFORM(db.artwork, request.args[0], fields=fields,
u
I just read this:
http://stackoverflow.com/questions/2758925/career-advice-for-a-frustrated-newbie-programmer
If you are Satoru Logic of you know anything about him, please contact
me or share your problem with this list. Parhaps we can help.
Massimo
The source (which I cannot find) was a Comic Life file. Unless you
have a Mac that does not help.
On May 3, 1:56 pm, Mariano Reingart wrote:
> Sadly, this PDF imported with inkscape looks bad, and is more dificult
> to edit texts.
>
> Best regards
>
> Mariano Reingarthttp://www.sistemasagiles.com
Sadly, this PDF imported with inkscape looks bad, and is more dificult
to edit texts.
Best regards
Mariano Reingart
http://www.sistemasagiles.com.ar
http://reingart.blogspot.com
On Mon, May 3, 2010 at 1:06 AM, Jason Brower wrote:
> If you don't have the source, you can open and edit it with i
new rocket launched to trunk.
On May 3, 1:39 pm, Timothy Farrell wrote:
> Negative. The latter code is unrelated (though a similar style).
> However, I have changed it to be consistent in the patch I sent to
> Massimo. Look for it in an upcoming commit.
>
> -tim
>
> On 5/3/2010 1:33 PM, Jonat
Negative. The latter code is unrelated (though a similar style).
However, I have changed it to be consistent in the patch I sent to
Massimo. Look for it in an upcoming commit.
-tim
On 5/3/2010 1:33 PM, Jonathan Lundell wrote:
On May 3, 2010, at 9:41 AM, Timothy Farrell wrote:
So chan
That is the same.
On May 3, 1:31 pm, Chris S wrote:
> Wonderful, that's exactly what I was looking for.
>
> Your response does raise one more curiosity for me. I was using a
> dictionary to pass the 'fields' to the view which it doesn't look like
> you were doing (record.field).
> My method requ
On May 3, 2010, at 9:41 AM, Timothy Farrell wrote:
> So changing line 86 from ssl = None to ssl = False should take care of it.
This pattern is repeated around line 130; that might be why mr freeze didn't
see a change.
Wonderful, that's exactly what I was looking for.
Your response does raise one more curiosity for me. I was using a
dictionary to pass the 'fields' to the view which it doesn't look like
you were doing (record.field).
My method requires each of the table entries to have a field where you
specific
On May 3, 1:15 pm, Chris S wrote:
> I'm sure there's a way to do this, but I'm not using the proper search
> terms. I'm wanting to use GAE but want to avoid having to re-upload
> the app just to change a bit of text on the site. My first thought
> was to simply store any dynamic text in a tabl
I'm sure there's a way to do this, but I'm not using the proper search
terms. I'm wanting to use GAE but want to avoid having to re-upload
the app just to change a bit of text on the site. My first thought
was to simply store any dynamic text in a table and edit the table
entry.
This works great
rows=db(db.shares.id>0).select(left=db.prices.on(db.prices.share_id==db.shares.id))
AND
{{for row in rows:}}
{{=row.shares.asx_code}}{{=row.prices.price_close}}
{{pass}}
OR BETTER
{{id=None}}
{{for row in rows:}}
{{if row.shares.id!=id:}}{{if id:}}{{pass}}
{{=row.shares.asx_code}}{{id
Hi Massimo - I should say thanks for the simple and interesting
framework you've made -thanks!
One share can have between zero and (practically) unlimited prices
associated to it, by i's ID.
Initially I want to list all prices associated to each share just to
get an idea of what I'm doing. Later
I'll wait for the patch.
Massimo
On May 3, 12:26 pm, Timothy Farrell wrote:
> Good enough for me. Let's call that the fix.
>
> --tim
>
> On 5/3/2010 12:02 PM, mr.freeze wrote:
>
> > No luck. Changing it has no effect. The debug still prints:
>
> > ssl: None
> > secure: False
>
> > If I chang
Good enough for me. Let's call that the fix.
--tim
On 5/3/2010 12:02 PM, mr.freeze wrote:
No luck. Changing it has no effect. The debug still prints:
ssl: None
secure: False
If I change at line 83 to:
try:
import ssl
has_ssl = True
except ImportError:
has_ssl = False
and l
No luck. Changing it has no effect. The debug still prints:
ssl: None
secure: False
If I change at line 83 to:
try:
import ssl
has_ssl = True
except ImportError:
has_ssl = False
and line 97 to:
self.ssl = has_ssl and isinstance(self.socket, ssl.SSLSocket)
it works.
On May 3,
So changing line 86 from ssl = None to ssl = False should take care of it.
-tim
On 5/3/2010 10:58 AM, Iceberg wrote:
I got same output as Nathan (Mr. Freeze).
The ssl=None seems because my python2.5 on Windows contains no ssl
module at all.
On May3, 11:30pm, "mr.freeze" wrote:
I get:
ss
I got same output as Nathan (Mr. Freeze).
The ssl=None seems because my python2.5 on Windows contains no ssl
module at all.
On May3, 11:30pm, "mr.freeze" wrote:
> I get:
> ssl: None
> secure: False
>
> On May 3, 8:11 am, Timothy Farrell wrote:
>
>
>
> > To help me debug this, would one of you
I get:
ssl: None
secure: False
On May 3, 8:11 am, Timothy Farrell wrote:
> To help me debug this, would one of you do the following:
>
> Add some code at line 99:
>
> print "ssl: ", self.ssl
> print "secure: ", self.secure
>
> These two values should, in all cases be the same. If they are not,
do you have only one price per share or multiple prices? If multiple
prices, do you want to list them all? Only the last one? what is the
criteria? Are you running on GAE?
On May 3, 7:12 am, ztd wrote:
> Another quick question. I've now stored prices.ALL into a variable
> 'prices' and passed to t
Nice. I can use this myself.
On May 3, 8:53 am, selecta wrote:
> I am proud to give you a plugin for displaying force directed graph
> layouts
>
> The main code was written by my colleague Marvin (who is by now a
> web2py adept). I wrapped it into a plugin.
>
> So far I found only two js packages
Are you using the web2py binary distribution? If so that uses its own
python and will not see GAE libs installed. Make sure you run from
source and use Python 2.5
On May 3, 5:08 am, mattynoce wrote:
> i'm on a mac and i have the google app engine launcher installed in my
> applications folder, an
no
On May 3, 1:47 am, elffikk wrote:
> hi,
> is there something like SqlSoup in web2py ? (http://www.sqlalchemy.org/
> docs/reference/ext/sqlsoup.html)
> and another
> will happened something to the rest of database if I will create a
> single table to work with?
I am proud to give you a plugin for displaying force directed graph
layouts
The main code was written by my colleague Marvin (who is by now a
web2py adept). I wrapped it into a plugin.
So far I found only two js packages that can do force directed graph
layouts:
http://jsviz.org/ (no proper inter
To help me debug this, would one of you do the following:
Add some code at line 99:
print "ssl: ", self.ssl
print "secure: ", self.secure
These two values should, in all cases be the same. If they are not,
you'll get a 400. If you're seeing this error, it means one or the
other is not what
The main change between the two versions is where it applies the SSL
connection and adds a check to see if that connection isn't there when
it should be. I've updated to the latest hg and I'm not seeing what you
guys are seeing.
Are any of you running HTTPS?
Rocket does not support IPV6 yet.
Hello,
Mdipierro wrote "calculate=lambda..." not "default=lambda"
(But I didn't try it even if I'm interested in the trick !)
-Mathieu
On Mon, May 3, 2010 at 14:29, Rohan wrote:
> Hi Mdipierro,
>
> Could you please elaborate,I tried
>
> Field('access_key', 'string', readable=False,
Hi Mdipierro,
Could you please elaborate,I tried
Field('access_key', 'string', readable=False, writable=False,
default=lambda r:defaultUserInfo(r['username'], r['email'])),
but keep getting TypeError: () takes exactly 1 argument (0
given) error
Thanks
On Apr 28, 7:01 pm, mdipierro wrote
Another quick question. I've now stored prices.ALL into a variable
'prices' and passed to the view. I want to show each share as a line
with a subline for each price associated to that share. Here is the
code:
{{extend 'layout.html'}}
Share portfolio
{{for share in shares:}}
{{=LI(share.asx_code)
With the above two solutions I cleaned up the code and it now works.
I had changed this:
[IS_NOT_EMPTY(),IS_NOT_IN_DB(db,db.shares.asx_code)]
to this
[IS_NOT_EMPTY(),IS_NOT_IN_DB(db,'shares.asx_code')]
and this:
{{for asx_code in shares:}}
{{=LI(shares.asx_code)}}
{{pass}}
to this:
{{for share i
i'm on a mac and i have the google app engine launcher installed in my
applications folder, and it works fine for uploading and deploying. is
there something else i need to be doing?
matt
On May 2, 6:23 pm, mdipierro wrote:
> You need the Google development api installed.
>
> On May 2, 10:01 am,
51 matches
Mail list logo