If you are on GAE, couldn't sesions be stored in the memcache.That way you
would never have the trouble of clearing anything.
On Wed, Sep 29, 2010 at 2:17 PM, Jason Brower wrote:
> I think there is a way to save the sessions to a database. It's in the
> book if I am not mistaken.
> BR,
> Jason
Have been reading a bit about semantic web off late and it sounds quite
promising Are there plans to extend our DAL to embrace SPARQL too,( well if
it is possible).
There seem to be no links !
On Wed, Sep 29, 2010 at 6:40 AM, david.waldrop wrote:
> Over the past month I have built Meeting Monkey. It is meant as a
> meeting facilitation tool to aid in helping groups think, decide and
> act together. Please take a look and share with others you think may
>
The code is there. You are encouraged to look
> at it. I do that with my students.
>
> On Sep 28, 6:44 am, b vivek wrote:
> > I have spent the last few weeks with web2py and found it to be really
> good.
> > In the process I have also built a small application for a cli
I have spent the last few weeks with web2py and found it to be really good.
In the process I have also built a small application for a client with it,
which is supposed to be deployed sometime next week.Now I am planning to
build something bigger, larger using web2py.
Would it be good dig through
Solved without it.. thanks!
On Sun, Sep 26, 2010 at 4:26 PM, b vivek wrote:
> Hi , I am using the plugin_wiki to generate a tag cloud . The cloud actions
> return looks something like this:-
>
> return DIV(_class='plugin_wiki_tag_cloud',*[SPAN(A(tag.name
> ,_href=UR
Hi , I am using the plugin_wiki to generate a tag cloud . The cloud actions
return looks something like this:-
return DIV(_class='plugin_wiki_tag_cloud',*[SPAN(A(tag.name
,_href=URL(r=request,c='default',f='taglist',args=('tag',tag.id))),_style='font-size:%sem'
% (0.8+1.0*tag.links/mc),_class='my
Ok seems like I got it again is it not '_ah/queue/default'.. will have to
got through the documentation of appengine I believe.. Sorry again for the
trouble
On Sun, Sep 26, 2010 at 12:23 AM, b vivek wrote:
> Sorry for that but I was able to solve it. I had missed to create the
res('200 OK',[('Content-Type','text/plain')])
return ['']
env['PATH_INFO'] = env['PATH_INFO'].encode('utf8')
return gluon.main.wsgibase(env, res)
However I wanted to know if this dummy url is a functi
So this is what I did:-
1. I decided to use mecache to store sessions and modified my db.py file as
below:-
if request.env.web2py_runtime_gae:
from gluon.contrib.memdb import MEMDB
from google.appengine.api.memcache import Client
session.connect(request, response, db = MEMDB(Client()))
Can I please have a look at your "news" action in the default controller
On Sat, Sep 25, 2010 at 11:04 PM, Tom Atkins wrote:
> I've just copied and pasted from the online book the wiki application in
> chapter 3. It all works great.
>
> I've added the function for the rss feed to controlle
Hii !
I just deployed an app on appspot, and I have a routes.py file which looks
like this:-
routes_in=(('/','/mysite/default/homepage'),)
routes_out=(('/mysite/default/homepage','/'),)
I have not rewritten any other paths. The site is working fine as of now but
GAE's logs show an error like the
1]}}
> {{=elem.title}}
>
> On Sep 24, 2:43 am, b vivek wrote:
> > Ok this is simple I know , but I am sort of not getting it. I have a
> table
> > named 'spam' and I need the latest three entries of it .. so i do the
> > below:-
> >
> > def
Ok this is simple I know , but I am sort of not getting it. I have a table
named 'spam' and I need the latest three entries of it .. so i do the
below:-
def home:
latestthreespams=db().select(db.spam.ALL,orderby=~db.spam.created_on,limitby=(0,3))
return dict(jingle=latestthreespams)
now I
No massimo, does not work from terminal, works ok from browser though..!
On Thu, Sep 23, 2010 at 10:08 AM, mdipierro wrote:
> works ok from browser but does this work for you?
>
> wget http://groups.google.com/group/web2py/feed/rss_v2_0_msgs.xml
>
Thanks a lot Massimo!.. as always :-)
On Wed, Sep 22, 2010 at 6:58 PM, mdipierro wrote:
> This should now be fixed in trunk.
>
> On Sep 22, 12:20 am, b vivek wrote:
> > I am sorry Massimo.. but I dont get you... Do you mean it is still to be
> > worked upon
> >
I am sorry Massimo.. but I dont get you... Do you mean it is still to be
worked upon
On Wed, Sep 22, 2010 at 10:43 AM, mdipierro wrote:
> This on the TODO like. Do not log obvious warnings if running on GAE.
>
> Massimo
>
> On Sep 22, 12:03 am, b vivek wrote:
> >
1. Hi!
I just uploaded an app on appspot and it works fine.. but when I check
the dashboard.. I get few errors been displayed like below. Well for the
drivers not found, I understand that they are obviously not there on GAE.
But is there a place I could go an disable web2py from look
Anything for paypal.. looks like google checkout is only for US and UK.. or
any other options for setting up a store and the payment mechanism I
know I might be bugging at times!
On Sat, Sep 18, 2010 at 10:21 PM, mdipierro wrote:
> yes, it was used for PyCon 2009 and 2010 payments without an
Solved!.. looks like App Engine just needed a few hours for this!
On Fri, Sep 17, 2010 at 12:36 PM, b vivek wrote:
> Hii am trying to upload a site to GAE , after the site is uploaded , when I
> go to app admin and try to insert a new membership, I get this errors:-
>
> *NeedIndexEr
properties:
- name: first_name
- name: last_name
- kind: plugin_comments_comment
properties:
- name: record_id
- name: tablename
- name: created_on
direction: desc
Does that not mean that the indexes have been created already before
uploading
On Fri, Sep 17, 2010 at 12:42 PM, b vi
I have attached the screenshot of the admin console in the datastore
indexes. Does this mean it is still building the indexes!
On Fri, Sep 17, 2010 at 12:36 PM, b vivek wrote:
> Hii am trying to upload a site to GAE , after the site is uploaded , when I
> go to app admin and try to in
Hii am trying to upload a site to GAE , after the site is uploaded , when I
go to app admin and try to insert a new membership, I get this errors:-
*NeedIndexError**: **The index **for **this query **is not **ready to
serve**. **See the Datastore Indexes page **in **the Admin Console**.
**This que
Hi!
This might seem silly, but here it goes.I was making a sort of blogging app.
where ass of now after login/logout a person is redirected to the home page,
using this:-
auth.settings.login_next=URL('homepage')
auth.settings.logout_next=URL('homepage')
Instead of this, I want him to be redirected
Oh thanks Massimo!
On Fri, Sep 17, 2010 at 8:58 AM, mdipierro wrote:
> there is link from the book page. Many of the plugins are obsolete
> since they are incorporated in plugin_wiki (chapter 13 of the book)
>
> On Sep 16, 9:32 pm, b vivek wrote:
> > Hii! I just came acr
Hii! I just came across this and found some wonderful plugins here
http://web2py.com/plugins/default/comments like the comments plugin.. I
wonder why is there no link from the main site http://web2py.com to these
pages. It would be really helpful if these links were there on ha main page
too, part
Thanks for that explanation Bruno!
On Fri, Sep 17, 2010 at 7:11 AM, Bruno Rocha wrote:
> Hi Tom
>
> The views in web2py should receive an serializable object to render it
> properly and "transform" in to html or something else (it is a very
> simplified explanation)
>
> You could return any seri
This looks cool... Thanks Mariano and Massimo of course!
On Thu, Sep 16, 2010 at 9:46 AM, Mariano Reingart wrote:
> Bruno, I'm glad you liked PyFPDF, and thanks Massimo for this great
> framework and his openess to accept contributions :-)
>
> In short, you can convert HTML to PDF (ie. reports an
Use this:-
class MyList(object):
def __init__(self, *a): self.a = list(a)#this has to be a list, was a
tuple earlier
def __len__(self): return len(self.a)
def __getitem__(self, i): return self.a[i]
def __setitem__(self, i, j): self.a[i] = j
b=MyList(3,4,5)
print b[1]
b[1]=7#self-ex
Ok I got it!.. it is there in the examples.. thanks for the great docs
On Sat, Sep 11, 2010 at 4:38 PM, b vivek wrote:
> Hi!I am trying to understand the cache functionality provided by web2py
> through the docs. I came across this line in the docs which talk about
> caching the res
Hi!I am trying to understand the cache functionality provided by web2py
through the docs. I came across this line in the docs which talk about
caching the results of a database select.
Could someone be kind enough and free enough to please tell me an example of
this:-
"Note that the result of a da
Oh Thanks I got it ... the solution suggested by Martin works perfectly
instead of ordering by record id ,it should be ordered by datetime field and
the tilde works fine!
On Fri, Sep 10, 2010 at 4:23 PM, b vivek wrote:
> It would be great if somebody could please let me know how to find the
It would be great if somebody could please let me know how to find the id of
the last inserted row in a table using DAL
On Fri, Sep 10, 2010 at 4:09 PM, b vivek wrote:
> Sorry for the late reply Martin, but even if I add the datetime field in
> here,and order by the datetime field , wont
g. You try? with max(id) or add some
> datetime field and order by this field like Field('created_on',
> 'datetime',
> default=datetime.datetime.today(),writable=False,readable=False)
>
> On 9 sep, 03:06, b vivek wrote:
> > Ok so if
same command when used on GAE gives me the first row,rather than the
last one.
Thanks
Vivek
On Thu, Sep 9, 2010 at 11:27 AM, Andrew Thompson wrote:
> On 9/9/2010 12:24 AM, b vivek wrote:
>
> Hi I wanted to retrieve the latest data entered in a table and thus used
> the below syntax f
Hi I wanted to retrieve the latest data entered in a table and thus used the
below syntax for data look up
homepage=db().select(db.homepage.ALL,orderby=~db.homepage.id,limitby=(0,1))
This is expected to retrieve the last row entered in the table homepage .
While this works perfectly, it does not
Hii just came across this twitter function to get tweets :-
def get_tweets()
user='web2py'
import urllib
import gluon.contrib.simplejson as sj
page = urllib.urlopen('http://twitter.com/%s?format=json' % user).read()
tweets=XML(sj.loads(page)['#timeline'])
return dict(tweets
Ok got it.. There is indeed a typo in the docs. The tilde has not been used
in the example:-
it would go like this:-
for row in db().select(db.person.ALL, orderby=~db.person.name):
print row.name
It works now for me!
Thanks
Vivek
On Tue, Sep 7, 2010 at 12:25 PM, b vivek wrote
The docs mention it , but looks like there is some typo.. it is said that a
tilde has to be used but the example does not show it:-
This is what is in the docs:-
>>> for row in db().select(db.person.ALL, orderby=db.person.name):
print row.name
But this would not reverse the table . Can so
You can just go to app.yaml and under the skip files section, delete this
line :-
(applications/(admin|examples)/.*)|
or comment it out. If you are trying out the Google SDK on localhost , you
will be able to see admin section and examples section , which you were not
able to see till now and after
Ok I got it .. I have to use https instead of http!
On Sun, Sep 5, 2010 at 10:47 AM, b vivek wrote:
> Please have a look at the skip_files section of my app.yaml
> skip_files: |
> ^(.*/)?(
> (app\.yaml)|
> (app\.yml)|
> (index\.yaml)|
> (index\.yml)|
> (#.*#)|
/.*) |
(applications/.*?/errors/.*)|
(applications/.*?/cache/.*)|
(applications/.*?/sessions/.*)|
)$
I have commented out (application/(admin|examples) an now I get Admin is
disabled because insecure channel
Thanks
Vivek
On Sun, Sep 5, 2010 at 10:32 AM, b vivek wrote:
> Hii,
> Yes the
Hii,
Yes there has been enough written on this , and am sure I am definitely
doing something really wrong. So here I go. I just wrote a small app and
tried deploying it on appspot.I did the below in order
1. changed app.yaml's first line to the appidentifier registered with GAE
2.python dev_appser
here must be a typo in your code since element(xxx) just calls
>> elements(xxx)[0]. Please email a sample string a to reproduce the
>> problem. Google scrambled your message and I cannot check it.
>>
>> On Sep 2, 2:25 am, b vivek wrote:
>>
>>> Hii, I just ho
know of) but you can add one easily:
>
> def index():
>form = SQLFORM.factory(Field('thing'),Field('stuff'))
>submit = form.element('input',_type='submit')
>reset =
> INPUT(_type='button',_onclick='jQuery(this).parents("
Hi !
The SQL Form and the Crud both are really good, but while generating forms
is there any way , they generate a reset button too.
Thanks
Vivek
Well for a[0][0][0] to work you would never need to use the 'elements' , the
point is
d=a.element('div#target') works while d=a.elements('div#target') does not ,
while according to the docs it should
On Thu, Sep 2, 2010 at 6:20 PM, Vasile Ermicioi wrote:
> you get a list of elements that have no
Ok, I am unable to use the shell for checking out mysql db. I have the
mysqldb driver installed and it works properly when I edit the controller
and the model and can see the tables being created in mysql .. however when
i use the shell, it does not work.. here are the commands I gave at the
shell
Hii, I just hopped onto web2py. And it is just beautiful. I am going through
the book and am stuck up at one place.There is an example there:-
>>> a = DIV (DIV (
DIV ('a', _id='target',_class='abc')))
>>> d = a.elements('div#target')
>>> d[0] = 'changed'
>>> print a
changed---(4)
Now when I try th
*
This does not work for mysql bulk insert:-
db.person.bulk_insert([{'name':'Alex'}, {'name':'John'}, {'name':'Tim'}])
The argument has to be dictionaries and not a list of dictionaries
Someone could correct this in the documentation..
This works:-
db.newperson.bulk_insert({'name':'Alex'},{'na
However I am able to run it through the terminal and opening the shell
through
python web2py.py -S admin
But not through the web based shell..
Vivek!
On Thu, Sep 2, 2010 at 3:21 PM, b vivek wrote:
> Ok, I am unable to use the shell for checking out mysql db. I have the
> mysqldb
51 matches
Mail list logo