Hi All,
I want to use fbconnect with web2py. I found couple of threads in this
group
1.
http://groups.google.com/group/web2py/browse_frm/thread/84f27e0a06312da2/df12a6fac159242e?lnk=gst&q=fbconnect#df12a6fac159242e
2.
http://groups.google.com/group/web2py/browse_frm/thread/31e9149ad731067d/938e0
hi Jon,
Can you please share updates on integration between fbconnect and
auth.user()?
Thanks
On Feb 2, 4:34 pm, Jon Romero wrote:
> But then how auth.user is updated?
>
>
>
>
>
> >All auth does on successful login is:
> >from gluon.storage import Storage
> >session.auth=Storage()
> >session.au
Hi All,
Currently my retrieve password application sends new password directly
to user. Anyone can reset password of any other user as long as they
know the email id. So I want to customize the process and want to send
a mail to user asking user to verify email and reset password from
some link pr
I wonder what is the best way to store session of auth users
What I want is to retrieve an old session of a user when he loges in
again (restoring all his customizations etc)
To achieve this I could
A) store the session in a table once the user loges out, but then I
would loose changes if the sess
On the same lines, I wonder if someone could simply pickle everything is
session and save it in teh database under there user id.
BR,
Jason
On Mon, 2010-04-19 at 03:18 -0700, selecta wrote:
> I wonder what is the best way to store session of auth users
>
> What I want is to retrieve an old sessio
Is there now a quick way to start web2py without removing simplejson
from debian?
Tnx.
On ápr. 11, 16:23, mdipierro wrote:
> What's your advice about this?
>
> Out r version of simplejson is patched to serialize dates. We could
> upgrade to the latest and re-patch and for now this problem will g
I use virtualenvwrapper
http://www.doughellmann.com/docs/virtualenvwrapper/ which
seems to work like a charm.
export WORKON_HOME=$HOME/.virtualenvs
source /usr/bin/virtualenvwrapper.sh # put those 2 lines in your
$HOME/.bashrc
mkvirtualenv web2py
>From here, you just have to type :
workon web2py
I got the some traceback as before :(
>>> sys.path
['', '/home/szimszon/.virtualenvs/web2py/lib/python2.5/site-packages/
setuptools-0.6c11-py2.5.egg', '/usr/lib/pymodules/python2.5', '/home/
szimszon/.virtualenvs/web2py/lib/python2.5', '/home/
szimszon/.virtualenvs/web2py/lib/python2.5/plat-linux2
I'm trying to figure out how to get links created in web2py that point to an
anchor name here is the code I'm using:
{{=DIV(SPAN(gripe.created_on, _class='gripe-date'),
A(SPAN(SPAN('Comments:'),
SPAN(gripe.comments, _class='comment-num
that should work
On Apr 19, 1:06 pm, Jason Brower wrote:
> On the same lines, I wonder if someone could simply pickle everything is
> session and save it in teh database under there user id.
> BR,
> Jason
>
>
>
>
>
> On Mon, 2010-04-19 at 03:18 -0700, selecta wrote:
> > I wonder what is the best
Hi there!
It's known that other communities like rails and django do sprints.
Not sure if here has been one time ago, but for what i read i think that no.
I would to ask here to the web2py like to do a sprint.
We could suggest subjects to focus, as:
- fixing bugs
- making improvement and
+1 if you can pick the day soon enough.
On Mon, 2010-04-19 at 15:14 +0200, Albert Abril wrote:
> Hi there!
>
> It's known that other communities like rails and django do sprints.
> Not sure if here has been one time ago, but for what i read i think
> that no.
>
> I would to ask here to the web2py
You probably want,
XML('#comments', sanitize=False)
--
Thadeus
On Mon, Apr 19, 2010 at 7:38 AM, G. Clifford Williams
wrote:
> I'm trying to figure out how to get links created in web2py that point to an
> anchor name here is the code I'm using:
>
> {{=DIV(SPAN(gripe.created_on,
There is no hook for this, but should this not be always the default?
If so I am happy to add it to trunk. Any counterindication?
On Apr 19, 12:32 am, Alexey Nezhdanov wrote:
> Hi.
> Sometimes I have to execute this line prior to making a query:
> oradb.executesql("ALTER SESSION set NLS_DATE_
The session ID is only unique between your web browser and your application.
Try this test using two different web browsers.
--
Thadeus
On Mon, Apr 19, 2010 at 1:21 AM, Adi wrote:
> Update:
>
> This seems to work in user():
>
> if request.args(0) == 'login':
> session.clear()
>
> Am I
This is a feature. The web2py session (mapped to a file or db record)
is one thing, the auth session (logical) is another. The web2py
session is linked to your browser session. The auth session affects
whether you are logged in or not. You may want the server to remember
you or not whether you are
fbconnect has not been integrated with Auth. It would be easy to do
but has not been done yet.
On Apr 19, 2:42 am, Rohan wrote:
> hi Jon,
>
> Can you please share updates on integration between fbconnect and
> auth.user()?
>
> Thanks
>
> On Feb 2, 4:34 pm, Jon Romero wrote:
>
>
>
> > But then ho
Yes.
auth.settings.reset_password_requires_verification = True
On Apr 19, 5:10 am, Rohan wrote:
> Hi All,
>
> Currently my retrieve password application sends new password directly
> to user. Anyone can reset password of any other user as long as they
> know the email id. So I want to customize
actually it is :) I just haven't got the time to upgrade the code :\
You can see that is FULLY integrated on this site: http://beyourstar.gr
After facebook login, you get an auth.user :D
On Apr 19, 5:21 pm, mdipierro wrote:
> fbconnect has not been integrated with Auth. It would be easy to do
>
I am all for it but I would focus on
>- develop apps (a better cms, twitter clones..)
>- write howto's at your blogs
and not on
>- fixing bugs
Because bugs are normally fixed within 24 hours anyway and I would not
want people to fix things that they think are bugs but may not be.
NOO!
URL(r=request, f='gripe',anchor=comments,args=gripe.id)
On Apr 19, 9:12 am, Thadeus Burgess wrote:
> You probably want,
>
> XML('#comments', sanitize=False)
>
> --
> Thadeus
>
> On Mon, Apr 19, 2010 at 7:38 AM, G. Clifford Williams
>
> wrote:
> > I'm trying to figure out how to get l
That's much better. Thanks!
On Apr 16, 2:04 pm, mdipierro wrote:
> never hardcode a path:
>
> import os
>
> return
> response.stream(os.path.join(request.application,'uploads',rows[0].filedata
> ),'rb'))
>
> response stream makes sure that RANGE request are also supported.
>
> On Apr 16, 12:57 p
Or have a "settings" table that is linked by user id? They only get
the site customizations if they are logged in?
--
Thadeus
On Mon, Apr 19, 2010 at 8:01 AM, selecta wrote:
> that should work
>
> On Apr 19, 1:06 pm, Jason Brower wrote:
>> On the same lines, I wonder if someone could simply
wow? Is this implemented as a gluon/contrib/login_method?
On Apr 19, 9:26 am, Jon Romero wrote:
> actually it is :) I just haven't got the time to upgrade the code :\
>
> You can see that is FULLY integrated on this site:http://beyourstar.gr
>
> After facebook login, you get an auth.user :D
>
> O
On Apr 19, 2010, at 5:38 AM, G. Clifford Williams wrote:
> I'm trying to figure out how to get links created in web2py that point to an
> anchor name here is the code I'm using:
>
>{{=DIV(SPAN(gripe.created_on, _class='gripe-date'),
>A(SPAN(SPAN('Comments:'),
>
Also, you can set the X-Sendfile header if your webserver supports it.
Basically, you set this header as the location of the file you want to
serve, the webserver will then discard everything in response.body,
and serve the file itself. You get the benefits of back-end
authorization, and the speed
I agree with bugs, because the naturallity of opensource, it was only as
proposal of finding bugs as others communities do.
In all the points, personally my favourite is on dev apps.
Also, I understand that write howto's, or making great layouts (design)
would be so much useful too.
Maybe somethin
sadly no :(
Take a look at it here:
http://codepad.org/tadGosTd
I am using my prototype activerecord for some database calls (that
should explain the find_by_id).
On Apr 19, 5:31 pm, mdipierro wrote:
> wow? Is this implemented as a gluon/contrib/login_method?
>
> On Apr 19, 9:26 am, Jon Romero
#1.77.1
Replaced CherryPy with Rocket web server, thanks Tim
CacheOnDisk allows to specify a folder
IS_DATE/DATETIME can handle any year since 0
SQLTABLE(...,headers='fieldname:capitalize')
Field().with_alias, thanks Nathan and Mengu
has_membership(group=...,role=...), thank Jonathan
db.define_tabl
I do not see this using db.auth_user at all. Did you rename it
db.users?
On Apr 19, 9:50 am, Jon Romero wrote:
> sadly no :(
>
> Take a look at it here:http://codepad.org/tadGosTd
>
> I am using my prototype activerecord for some database calls (that
> should explain the find_by_id).
>
> On Apr 1
yes, sorry :)
db.define_table('users',
Field('username', 'string', unique=True, label="Username [*]"),
Field('password', 'password', requires=CRYPT(), readable=False,
label="Password [*]"),
Field('registration_key',length=128, writable=False, readable=False),
Field(
Of course, where i told *spring* i would mean *sprint*.
Sorry for my.. (not agile) english.
On Mon, Apr 19, 2010 at 4:39 PM, Albert Abril wrote:
> I agree with bugs, because the naturallity of opensource, it was only as
> proposal of finding bugs as others communities do.
> In all the points, per
Same weakness exists.
On Mon, Apr 19, 2010 at 12:10 PM, Rohan wrote:
> Hi All,
>
> Currently my retrieve password application sends new password directly
> to user. Anyone can reset password of any other user as long as they
> know the email id. So I want to customize the process and want to sen
What link are you using?
You should be using
http:///user/request_reset_password
and you should
auth.settings.actions_disabled=['retrieve_password']
On Apr 19, 9:22 am, "Abdul R. Gani" wrote:
> Same weakness exists.
>
>
>
> On Mon, Apr 19, 2010 at 12:10 PM, Rohan wrote:
> > Hi All,
>
> >
OK. when you make the slice please call it auth_user. ;-)
On Apr 19, 10:00 am, Jon Romero wrote:
> yes, sorry :)
>
> db.define_table('users',
> Field('username', 'string', unique=True, label="Username [*]"),
> Field('password', 'password', requires=CRYPT(), readable=False,
> label
Will do :D
On Apr 19, 6:10 pm, mdipierro wrote:
> OK. when you make the slice please call it auth_user. ;-)
>
> On Apr 19, 10:00 am, Jon Romero wrote:
>
>
>
> > yes, sorry :)
>
> > db.define_table('users',
> > Field('username', 'string', unique=True, label="Username [*]"),
> > Fi
No, I'm all for it. Actually it sounds more like bugfix since atm web2py
can't make datetime queries on Oracle.
On Mon, Apr 19, 2010 at 6:16 PM, mdipierro wrote:
> There is no hook for this, but should this not be always the default?
> If so I am happy to add it to trunk. Any counterindication?
taking a second look at the source code
self._execute("ALTER SESSION SET NLS_DATE_FORMAT = '-
MM-DD';")
self._execute("ALTER SESSION SET NLS_TIMESTAMP_FORMAT =
'-MM-DD HH24:MI:SS';")
Now you propose adding:
self._execute("ALTER SESSION set NLS_DATE_FOR
Since upgrading to latest version (from prior version) I can't enter
a time into the sql form using either the time helper object or
manually by typing. The field back ground show red like an error.
I'm using mysql 5.1.45 with tables using engine=innodb, and a table
definition shown below:
db.d
Hello guys,
I have noticed for sometime now that I can no longer access
web2py.com. i live in Lagos, Nigeria, and this never used to be a
problem for me. I want to download the current version of web2py
(1.77.1) but cant do so due to this problem. Can anyone please direct
me to any alternative down
Most likely your IP has been blocked by Massimo's aggressive security script.
Until yall can figure out what happened, I have mirrored 1.77.1 here:
http://static.thadeusb.com/web2py%201.77.1/
--
Thadeus
On Mon, Apr 19, 2010 at 1:50 PM, Pystar wrote:
> Hello guys,
> I have noticed for somet
Try from Google Code. It's the dev version though.
http://code.google.com/p/web2py/
On Mon, Apr 19, 2010 at 2:50 PM, Pystar wrote:
> Hello guys,
> I have noticed for sometime now that I can no longer access
> web2py.com. i live in Lagos, Nigeria, and this never used to be a
> problem for me. I
There was a bug in 1.77.1:
the new layout uses ez.css and it changes the z-index of the content.
As a result the date/datetime/time popup appear under the windows.
I have not fixed this but please check it under IE since I did not get
a chance to try that. z-index in IE behaves funny.
Massimo
good catch. fixed in 1.77.2
On Apr 19, 12:14 pm, dave wrote:
> Since upgrading to latest version (from prior version) I can't enter
> a time into the sql form using either the time helper object or
> manually by typing. The field back ground show red like an error.
>
> I'm using mysql 5.1.45 w
I can't run it (1.77.1) even if I installed the simplejson 1.9.2 in
virtualenv:
>>> sys.path
['', '/home/szimszon/.virtualenvs/web2py/lib/python2.5/site-packages/
setuptools-0.6c11-py2.5.egg', '/home/szimszon/.virtualenvs/web2py/lib/
python2.5/site-packages/simplejson-1.9.2-py2.5.egg'...
On ápr.
try copy simplejson into gluon/contrib/simplejson for now.
On Apr 19, 3:23 pm, szimszon wrote:
> I can't run it (1.77.1) even if I installed the simplejson 1.9.2 in
> virtualenv:
>
> >>> sys.path
>
> ['', '/home/szimszon/.virtualenvs/web2py/lib/python2.5/site-packages/
> setuptools-0.6c11-py2.5.
Okay, copy "/usr/share/pyshared/simplejson" to gluon/contrib seems to
work for me.
BigTNX. (1.77.2 :)
On ápr. 19, 22:25, mdipierro wrote:
> try copy simplejson into gluon/contrib/simplejson for now.
>
> On Apr 19, 3:23 pm, szimszon wrote:
>
>
>
> > I can't run it (1.77.1) even if I installed th
a simple test loading one by one the same link, leaving concurrency
and advanced testing to Tim and others :)
just wanted to feel the improvement, and I have to say Tim did his job
very well
web2py 1.76.5 vs 1.77.1 load test
10 requests:
1.76.5 - 0.3016 seconds
1.77.1 - 0.2736 seconds
100 re
Mind that this is not the end of the story. The simplejson that ships
with web2py was modified to handle date/datetime/time. By replacing
with the latest official simplejson you will may not be able to
serialize DAL records.
One option is to include latest web2py in web2py and re-apply the
patch.
I've been trying to install an app through admin, and it's been failing.
(Problem #1: there's no feedback at all when this happens, just a message that
the install failed; I had to run a debugger to find out why.)
It turned out that fix_newlines was raising an exception because it was trying
to
When I compile an app, and the install it, it appears that controllers show up
twice: once in controllers/ as one .pyc per controller file, and again in
compiled/, this time once per function. What's going on, and how are these
files used?
Also, the manual says:
> Because views can extend and
Greetings,
I am (still) using 1.76.5, running under Ubuntu 7.10.
During file upload (whether from a form or as part of a cron job that
extract files attached to emails) I am finding that some long filenames
are causing the store() function to choke:
Traceback (most recent call last):
File "ap
I was not aware of this limit.
In gluon/sql.py you should replace:
newfilename = newfilename[:500] + '.' + extension
with something like
newfilename = newfilename[:120] + '.' + extension
perhaps this should be the default?
Massimo
On Apr 19, 5:16 pm, Rowdy wrote:
> Greetings,
>
> I am (still
:-)
On Apr 19, 3:57 pm, elffikk wrote:
> a simple test loading one by one the same link, leaving concurrency
> and advanced testing to Tim and others :)
> just wanted to feel the improvement, and I have to say Tim did his job
> very well
>
> web2py 1.76.5 vs 1.77.1 load test
>
> 10 requests:
>
web2py does something clever for view but very stupid for controllers.
The good:
For each action is collapses its view, all extended views (layout for
example) and included views into a single pyc file.
The bad:
For each action it generates one pyc that contains a copy of the
entire controller.
User yanni has reported this problem with IE6
http://i.imgur.com/ivWKA.jpg
I do not have a windows machine but if anybody can suggest a css fix I
will be happy to include it.
Massimo
--
Subscription settings: http://groups.google.com/group/web2py/subscribe?hl=en
mdipierro wrote:
I was not aware of this limit.
In gluon/sql.py you should replace:
newfilename = newfilename[:500] + '.' + extension
with something like
newfilename = newfilename[:120] + '.' + extension
perhaps this should be the default?
Massimo
That is exactly what I was looking for, an
Any objection to make this 200?
Massimo
On Apr 19, 6:22 pm, Rowdy wrote:
> mdipierro wrote:
> > I was not aware of this limit.
>
> > In gluon/sql.py you should replace:
> > newfilename = newfilename[:500] + '.' + extension
>
> > with something like
>
> > newfilename = newfilename[:120] + '.' + e
mdipierro wrote:
Any objection to make this 200?
Massimo
The limit seems to be NTFS with a maximum of 226 characters.
I have accumulated nearly 60,000 files in a legacy application, and the
longest extension is 5 characters (".batch").
No objection from me.
Rowdy
--
Subscription settings
On Apr 19, 2010, at 4:10 PM, mdipierro wrote:
> web2py does something clever for view but very stupid for controllers.
>
> The good:
> For each action is collapses its view, all extended views (layout for
> example) and included views into a single pyc file.
>
> The bad:
> For each action it gen
I noticed the web2py.com Documentation link now points to the book.
What will happen to the existing documentation - AlterEgo, etc?
--
Subscription settings: http://groups.google.com/group/web2py/subscribe?hl=en
> Why does the compiled version include the .pyc files in controllers/ (outside
> of compiled/)? It doesn't seem like those get used, at least not by
> run_controller_in.
I think you refer to line 298 of compileapp.py. I do not recall why it
is there. I will try remove it and see what breaks.
>
It is linked from the book.
On Apr 19, 7:04 pm, Richard wrote:
> I noticed the web2py.com Documentation link now points to the book.
> What will happen to the existing documentation - AlterEgo, etc?
>
> --
> Subscription settings:http://groups.google.com/group/web2py/subscribe?hl=en
On Apr 19, 2010, at 5:05 PM, mdipierro wrote:
>> Why does the compiled version include the .pyc files in controllers/
>> (outside of compiled/)? It doesn't seem like those get used, at least not by
>> run_controller_in.
>
> I think you refer to line 298 of compileapp.py. I do not recall why it
I tried remove it and I an error in listdir.
Massimo
On Apr 19, 7:22 pm, Jonathan Lundell wrote:
> On Apr 19, 2010, at 5:05 PM, mdipierro wrote:
>
> >> Why does the compiled version include the .pyc files in controllers/
> >> (outside of compiled/)? It doesn't seem like those get used, at least
hi,
just downloaded 1.77.2 (from
http://www.web2py.com/examples/static/web2py_src.zip
),
but it shows that is version 1.77.1
content of version file:
Version 1.77.1 (2010-04-19 15:50:56)
--
Subscription settings: http://groups.google.com/group/web2py/subscribe?hl=en
I have a newbie question: How can I create a form to delete selected
entries from a database? Can I use SQLFORM for this?
I have tables roughly like this in db.py
db.define_table('person',
Field('name'))
db.define_table('posts',
Field('title'),
Field('author',db.person))
and in default.py a fun
This would delete all posts by current user for example:
db(db.posts.author==auth.user_id).delete()
On Apr 19, 7:12 pm, claudio wrote:
> I have a newbie question: How can I create a form to delete selected
> entries from a database? Can I use SQLFORM for this?
>
> I have tables roughly like this
Something when wrong in the build script. To avoid confusion I will
post a 1.77.3.
Massimo
On Apr 19, 8:18 pm, elffikk wrote:
> hi,
>
> just downloaded 1.77.2
> (fromhttp://www.web2py.com/examples/static/web2py_src.zip
> ),
> but it shows that is version 1.77.1
> content of version file:
> Vers
Display the following code inside your layout.html file.
http://pastebin.com/exyxkACz
--
Thadeus
On Mon, Apr 19, 2010 at 6:15 PM, mdipierro wrote:
> User yanni has reported this problem with IE6
> http://i.imgur.com/ivWKA.jpg
> I do not have a windows machine but if anybody can suggest a cs
On Apr 19, 2010, at 6:16 PM, mdipierro wrote:
> I tried remove it and I an error in listdir.
Odd, since listdir starts out with:
if path[-1:] != '/':
path = path + '/'
Which one did you remove that caused the error?
>
> Massimo
>
> On Apr 19, 7:22 pm, Jonathan Lundell wrote:
>>
On Mon, Apr 19, 2010 at 20:15, mdipierro wrote:
> User yanni has reported this problem with IE6
> http://i.imgur.com/ivWKA.jpg
> I do not have a windows machine but if anybody can suggest a css fix I
> will be happy to include it.
http://www.dieie6.com/
--
Álvaro Justen - Turicas
http://blog.j
I double checked. The problem was not listdir but the following path
+file (should have been os.path.join(path,file).
Fixed and reposting. Thank Jonathan!
Massimo
On Apr 19, 8:34 pm, Jonathan Lundell wrote:
> On Apr 19, 2010, at 6:16 PM, mdipierro wrote:
>
> > I tried remove it and I an error in
SQLFORM has an argument called "deletable" if you set it to True when
you initialize it, you will have an option like "delete this record".
and when you submit the form with that option checked then the record
will be deleted.
On 20 Nisan, 03:12, claudio wrote:
> I have a newbie question: How can
As a halfway fix, how about the patch below?
On Apr 19, 2010, at 2:48 PM, Jonathan Lundell wrote:
> I've been trying to install an app through admin, and it's been failing.
> (Problem #1: there's no feedback at all when this happens, just a message
> that the install failed; I had to run a debu
By the way, thank you for tagging these releases:
For general info: you can check releases by reviewing the .hgtags
file in the repository
http://code.google.com/p/web2py/source/browse/.hgtags
Since Massimo has prefixed the tags with "R-", this leaves the
possibility to tag specific fixes (sep
Had a long day. I will look at this more in detail tomorrow.
On Apr 19, 10:16 pm, Jonathan Lundell wrote:
> As a halfway fix, how about the patch below?
>
> On Apr 19, 2010, at 2:48 PM, Jonathan Lundell wrote:
>
>
>
> > I've been trying to install an app through admin, and it's been failing.
> >
ee
why it needs to, as long as it computes n correctly.)
>
> >> BTW, the comment for listdir seems to confuse add_dirs with drop. Or
something. And a pair of typos: s/b "regex pattern to filter files"
>
> >> --
> >> Subscription
settings:http://groups.google.com/g
t; >>> There are a few cases when in can be removed (and I just did in trunk)
> > >>> but most of them are required else listdir does not work properly.
>
> > >> listdir appends a '/' if there isn't one already. (Though I don't see
> why it ne
Rohan,
Someone pointed out gaema (http://code.google.com/p/gaema/) on the
group a couple of weeks ago as a tool that integrates google, twitter,
facebook, and others with google app engine. i'm in the process of
adapting it to work with web2py auth (for GAE and non GAE apps). If
all goes well lo
On Apr 19, 2:43 pm, Cody Harlow wrote:
> Try from Google Code. It's the dev version though.
>
> http://code.google.com/p/web2py/
The "tip" may be development, but Massimo has started tagging the
checkings, so you can ALWAYS get the latest release from Google Code
repository:
On your machine, jus
I found some code on http://codepad.org/tadGosTd
I want to know if below piece of code is sufficient for creating a
record in auth.user table and creating a session for a user connected
using facebook connect?
logged_user = Users.find_by_fb_id(user['uid'])
user_id = db.users.inser
Oh, well.
May be that's an Oracle bug then. I use my custom 'console.py' script here,
but output should be clear enough:
BTW - time_start column was created by web2py with this line:
Field('time_start','datetime'),
sn...@nezhdanov:~/VTC/pinger/elixir$ ./console.py
select time_start from pinge
Ah, one more little comment though. In two cases select yielded an empty
list - that is intentional.
On Tue, Apr 20, 2010 at 9:37 AM, Alexey Nezhdanov wrote:
> Oh, well.
> May be that's an Oracle bug then. I use my custom 'console.py' script here,
> but output should be clear enough:
>
> BTW - t
Okay. I'll wait :)
1.77.3 isn't working yet...
On ápr. 19, 22:58, mdipierro wrote:
> Mind that this is not the end of the story. The simplejson that ships
> with web2py was modified to handle date/datetime/time. By replacing
> with the latest official simplejson you will may not be able to
> ser
85 matches
Mail list logo