http://web2py.com/book/default/chapter/08?search=remember+me
Thanks for your reply. I apologize for not searching in the book
myself, at the moment I have to juggle with bandwidth to get things
done :-(
Kind regards,
Annet.
On 20/07/2011 00:34, Anthony wrote:
Objects defined in your models and controllers do not survive from
request to request (unless, of course, you store them somewhere, like
the session). In your code, the Set object is created when you visit
/default/index, but the select happens when you visit
You can add new types to the DAL that use GAE entities.
Here is what I used to create an unindexed string type:
from google.appengine.ext import db as gae
db._adapter.types['noindex'] = (lambda: gae.StringProperty(multiline=True,
indexed=False))
On Jul 20, 7:21 am, Bruno Rocha rochacbr...@gmail.com wrote:
try:
def editablefunction():
id = request.vars.row_id
column = request.vars.column
db(db.order_lines.id==id).update(column=value)
* db.commit()*
Didn't work.
More info: There is a very quick 'Saving' appearing in the
I was looking for a library to export data to OpenOffice Excel.
I found 2 such open source projects.
For OOO ---
http://ooolib.sourceforge.net/
For Excel ---
http://www.python-excel.org/
What I intend to do is, keep the classes in web2py folder, import the
classes in controller, then parse the
Hi Anthony,
I have not tested the trunk yet, but I have change those two lines
other_request.vars = Storage(vars)
other_request.get_vars = Storage(vars)
I still get an error:
invalid view (default/crud_in_comp.load)(in index.html)
On 20/07/2011 08:44, Manuele Pesenti wrote:
ok, in this case I need to pass a db set that cannot be stored in
session (right?)... what's the right way to do that?
would it be the case to use tha global declaretion such as is
explained here for example?
Can you open a ticket and give an example of SQLTABLE that fail?.
2011/7/19 Anthony abasta...@gmail.com
On Tuesday, July 19, 2011 7:48:35 PM UTC-4, Carlos wrote:
So 'truncate' is not being respected when using the previous 'headers'
format (simple dict of strings).
Oh, I see, you're right
be aware that google code hosting now supports git..
On Jul 20, 4:44 am, luckysmack luckysm...@gmail.com wrote:
Well i was going to for the original. But it being so out of date, i
thought i would just take the mercurial branch and use a tool to
convert the code and its branches with history
On Wed, Jul 20, 2011 at 5:45 AM, Vineet vineet.deod...@gmail.com wrote:
I was looking for a library to export data to OpenOffice Excel.
I found 2 such open source projects.
For OOO ---
http://ooolib.sourceforge.net/
For Excel ---
http://www.python-excel.org/
What I intend to do is, keep
On 9 July 2011 03:47, niknok nikolai...@gmail.com wrote:
**
I have another unique column in my table that I would like to use as index
for record representation. How do I tell web2py to use another index?
Ttrying to use like:
db.mytable.thisfield.represent = lambda id:
On 20 July 2011 14:09, Johann Spies johann.sp...@gmail.com wrote:
I use this:
db.define_table('akb_doccenter_location',
Field('location'))
Apologies, I did not complete the message before sending: the model includes
a Field(uuid), obviously.
Regards
Johann
--
May
after some digging around I found the prettydate function in
gluon.tools.
If I from gluon.tools import prettydate directly in the page.html
view I no longer get an error. If I do the same thing but only in the
controller it still does not work.
Any ideas what characteristics of my app may cause
Do you have a /views/default/crud_in_comp.load view? If not, for now you'll
need one, as generic views aren't working in non-ajax components at the
moment (this should be fixed soon).
Anthony
On Wednesday, July 20, 2011 5:38:18 AM UTC-4, sebastian wrote:
Hi Anthony,
I have not tested the
adding a default default/crud_in_comp.load made the trick.
On Wed, Jul 20, 2011 at 2:12 PM, Anthony abasta...@gmail.com wrote:
Do you have a /views/default/crud_in_comp.load view? If not, for now you'll
need one, as generic views aren't working in non-ajax components at the
moment (this
No, the Set object has to be defined during the same request as the select,
so you should either define it in a model file (as in the plugin_gmap
example), or in the /plugin_openplayers/index function (where the select
happens). Alternatively, you could define a function that does the work of
On Jul 13, 8:49 am, Anthony abasta...@gmail.com wrote:
Second problem:
In trying to find out if setting ajax to True was causing my first
problem, I stumbled over a second. Setting 'ajax=False' or not
setting ajax at all causes an exception. Could this be a bug? If so,
please let
On Wednesday, July 20, 2011 8:11:56 AM UTC-4, Vincent wrote:
after some digging around I found the prettydate function in
gluon.tools.
If I from gluon.tools import prettydate directly in the page.html
view I no longer get an error. If I do the same thing but only in the
controller it
On Wednesday, July 20, 2011 10:05:11 AM UTC-4, Iceberg wrote:
Hi Anthony,
I encounter same problem. STFW and I read your two posts. One is
above, the other is here:
http://groups.google.com/group/web2py/msg/25bd655665bf47bf
I am curious to see a bug exists for 2 weeks. That is
Thank you for the prompt responses.
On Jul 19, 4:12 pm, Roberto Perdomo roberto...@gmail.com wrote:
Hello, it's me again.
Well, I discovered that the problem of loading the table with load is in
the event live plugin_powertable.py. I've replaced the event live for
bind, and, works, but just
what thing replace in web2py the context process and midelware of
django.
I'm still having a problem getting two powertables on one page. If I
comment out the code for the second powertable, everything is fine,
but it seems the first powertable can't find its data. Please refer
to code posted above. I think this has something to do with
instantiation, specifically, I
hello
i have a simple view with some html and no db defined in the background
*EXAMPLE VIEW*
select
option value=volvoVolvo/option
option value=saabSaab/option
option value=mercedesMercedes/option
option value=audiAudi/option
/select
{{=LI(A('something', _href=URL('show', args=??))}}
if i
i think that you code is wrong, try with:
return dict( ownedByUser = ownTable.create(), sharedWithUser
= sharedWithUser.create() )
you were doubling ownTable on the dict.
2011/7/20 Chris Baron topher.ba...@gmail.com
I'm still having a problem getting two powertables on one page. If I
On Wednesday, July 20, 2011 11:17:51 AM UTC-4, Ramos wrote:
i have a simple view with some html and no db defined in the background
*EXAMPLE VIEW*
select
option value=volvoVolvo/option
option value=saabSaab/option
option value=mercedesMercedes/option
option value=audiAudi/option
mdipierro mdipierro@... writes:
On Oct 25, 11:30 am, Vincent vinc...@... wrote:
Not sure how I missed that.
I am getting this error,
os.chdir('/Users/vmd/Dropbox/web2py/web2py.app')
from gluon.main import *
install the web2py source version if you are going this
Hi Guys,
If you're running one of the web2py binary versions, web2py runs its own
Python interpreter, so it won't have access to the Python installed on your
system (or any of its modules). If you want to use the Python on your
system, just run the source version of web2py -- it's just as easy as the
@auth.requires_login()
def hello():
return dict(message='hello %(first_name)' % auth.user)
is missing an s after %(first_name) :
@auth.requires_login()
def hello():
return dict(message='hello %(first_name)s' % auth.user)
Run 2 copies of web2py, one for the script and the other for the web site.
If the database is SQLite you will end up with blocking problems if the
background task takes too long.
I have already corrected that - sorry for the confusion...
On Jul 20, 10:23 am, Roberto Perdomo roberto...@gmail.com wrote:
i think that you code is wrong, try with:
return dict( ownedByUser = ownTable.create(), sharedWithUser
= sharedWithUser.create() )
you were doubling ownTable on the
On Wednesday, July 20, 2011 10:56:18 AM UTC-4, ariel.glez.m wrote:
what thing replace in web2py the context process
I'm not too familiar with Django and its context processors -- it looks like
they automatically add particular variables/objects to your template context
before rendering.
Yes. It was a problem to maintain a patched fork of simplejson and it
used to cause conflicts. Now we have
json in gluon/serializers.py which hanldes date/datetimes.
On Jul 19, 11:33 am, Carl m...@carlroach.com wrote:
sometime between Web2py v1.89.1 and v1.93.2 encoder.py was changed so
it
Sorry,
Powertable is 'alpha' and I have too much work to do to improve it.
I am trying to solve things..
BTW: I am comming with a new grid system, a complete one, based on CRUD
http://labs.blouweb.com/PowerGrid/default/noimages
(in tests)
The CAS server supports but 1 and 2 but defaults to 2 which is more
portable. It should work with third party clients out of the box.
On Jul 19, 8:09 pm, Bruno Bemfica brunobemf...@gmail.com wrote:
Hi, I'm new on Web2Py and Python, and I have a question: There's any
way to make apps developed
I think you are looking for the wrong solution to the problem.
You should just use
from gluon.template import render
mail.sent(to=...,message=render(content=...,context={..}))
On Jul 18, 4:47 am, Manuele Pesenti manuele.pese...@gmail.com wrote:
hi *,
I woulld like to reuse a controller
excellent.
I'm using @service.jsonrpc as a decorator to controller functions and
setting service=Service(globals()) in db.py
what needs to change to move to the new approach?
p.s. the 3rd edition hardcopy arrived last week... my, how it's grown!
excellent production!
On 20 July 2011 18:20,
Hello everybody,
I apologize I have been not active on the list for a few days does to
a series of circumstances: travel, power outage, jetlag. Anyway, looks
like Anthony, Jonathan and a few others manage to answer almost all
the questions which proves I am not needed and that is good. ;-)
form.validate() and form.process() patch that I sent. ( need to be tested,
validates etc..)
On Wed, Jul 20, 2011 at 2:39 PM, Massimo Di Pierro
massimo.dipie...@gmail.com wrote:
Hello everybody,
I apologize I have been not active on the list for a few days does to
a series of circumstances:
There are a couple of bugs I reported a couple of weeks ago:
http://code.google.com/p/web2py/issues/detail?id=324
http://code.google.com/p/web2py/issues/detail?id=319
Both contain suggested patches to fix them, and #324 is specially
important for many people.
2011/7/20 Massimo Di Pierro
Hi Anthony,
thanks for clarifying that. I guess my question is then:
why does it work in the default application without having to do from
gluon.tools import prettydate in the page.html view?
Or more explicitly, what could cause the prettydate function to be
in the namespace in the page.html
Hi
I am a beginner in web2py, after going through the manual.. the very
first thing I am trying to do is using Google Apps/ Google Accounts as
Authentication instead of regular user-names and passes.
Please help. Please provide exact steps what i need to do.
Thanks
Nikhil
Please send me an example of code that breaks issue 319.
On Jul 20, 12:45 pm, José Luis Redrejo Rodríguez jredr...@debian.org
wrote:
There are a couple of bugs I reported a couple of weeks
I'm not sure about that -- maybe Massimo can answer.
On Wednesday, July 20, 2011 2:18:23 PM UTC-4, Vincent wrote:
Hi Anthony,
thanks for clarifying that. I guess my question is then:
why does it work in the default application without having to do from
gluon.tools import prettydate in
Hi Massimo, i sent a mail a few days ago asking about some way to
provide simultaneous multi-language support to our application. If
you (or somebody) could give some suggestion would be nice.
http://groups.google.com/group/web2py/browse_thread/thread/d6525c6623aad50c
thanks in advance
On 20
just an old wish of mine:
- make web2py to work with latest pyamf version,
- and there is a bug in latest version which is not fixed in trunk
thank you
On Jul 20, 12:32 pm, Herman herman...@gmail.com wrote:
is missing an s after %(first_name) :
Fixed, well-spotted thank you.
Hi, thanks for your work with powertables.
Today i resolved the problem, editing plugin_powertable.py.
I have replace live for bind, but not only load the details for the first 10
records. The solution was load the table with all records (iDisplayLength =
-1), but recentlly discovered that live
Bruno, if you can send me PowerGrid for test it, i'd appreciate it, looks
great.
2011/7/20 Roberto Perdomo roberto...@gmail.com
Hi, thanks for your work with powertables.
Today i resolved the problem, editing plugin_powertable.py.
I have replace live for bind, but not only load the details
On the one hand If you only want to display two languages at the same time
at all times then translations are not required.
If on the other hand you want people to be able to switch between languages
like this http://voiceofaccess.org , then translations are required but
displaying both
The thing is that in Spain, there are some bilingual regions with their own
language besides the official language. Sometimes they require that an app
be in the main language (spanish) and their specifical language and the
capatility to switch between them, and rarely (this case), have both
Hello list members,
sometimes is useful to exctract the date or the time from a Filed
object without traversing the rows returned by a select statement.
I provide an examlpe:
db.define_table('test',Field('data','datetime'))
def getdates():
rows = db(db.test).select(db.test.data.date())
Gee... Massimo aren't you on vacation? Stop bothering us! ;-) ;-)
mic
2011/7/20 Massimo Di Pierro massimo.dipie...@gmail.com:
Hello everybody,
I apologize I have been not active on the list for a few days does to
a series of circumstances: travel, power outage, jetlag. Anyway, looks
like
I think there are a few possibilities. First, your MultiT function could
work, but you'd have to use str(T(text)) instead of T(text). The reason is
that T() returns a lazyT object, not the translated string (it isn't
translated until rendering). You can force the translation by calling the
PLUGIN PowerGrid
ONLY FOR TESTERS!! It is an Pre Alpha Version.
No Documentation yet (use it by example)
It would be full of JavaScript Bugs and need documentation, if you can help
with documentation please let me know your bitbucket user.
DEMO: http://labs.blouweb.com/PowerGrid/default/index
First I dont know if someone already did it.
I have been playing with suse studio for a while and I thought to build a
vm/install iso for a base and test web2py server.
So I do some brainstorming
It will be based on a minimal server (opensuse 11.4) install.
I was thinking/brainstorming to do
oh yea? well thats handy. am i able to fork/clone a mercurial repo as
a git repo?
On Jul 20, 4:33 am, blackthorne francisco@gmail.com wrote:
be aware that google code hosting now supports git..
On Jul 20, 4:44 am, luckysmack luckysm...@gmail.com wrote:
Well i was going to for the
Hello Mate,
When using Facebook Connect for login purpose there is no
Callback(onaccept) method that Web2py can call and execute right after
the user login to the application. The Callback is only available for
Web2Py Auth.
I was wondering why that Web2py limitation ?
From the application level
Thanks Johann!
On Jul 20, 8:11 pm, Johann Spies johann.sp...@gmail.com wrote:
On 20 July 2011 14:09, Johann Spies johann.sp...@gmail.com wrote:
I use this:
db.define_table('akb_doccenter_location',
Field('location'))
Apologies, I did not complete the message before
Have you looked at
http://code.google.com/p/web2py/source/browse/gluon/contrib/login_methods/gae_google_account.py?
See http://web2py.com/book/default/chapter/08?search=GAE+login.
Anthony
On Wednesday, July 20, 2011 2:12:33 PM UTC-4, Nikhil Rishi wrote:
Hi
I am a beginner in web2py,
Hi Joaco,
Thanks for your reply.
The information given by you is very helpful.
Thanks again.
--Vineet
On Jul 20, 4:56 pm, Joaquin Orbe joaquino...@gmail.com wrote:
On Wed, Jul 20, 2011 at 5:45 AM, Vineet vineet.deod...@gmail.com wrote:
I was looking for a library to export data to OpenOffice
On Jul 20, 2011, at 7:05 PM, luckysmack wrote:
oh yea? well thats handy. am i able to fork/clone a mercurial repo as
a git repo?
Why git, btw? Seems like sticking with hg would be more straightforward.
On Jul 20, 4:33 am, blackthorne francisco@gmail.com wrote:
be aware that google
URL for ref.83 is broken - http://sial.org/howto/openssl/self-signed
typo in apt-get below:
sudo apt-egt -y install libapache2-mod-proxy-html
Hey guys,
Just wanted to say hi to all of you, I recently started using web2py,
actually i was going to start it on Django but I read lots of good
things about web2py so I am planning on using it.
I have done some python programming but I am new to web development
with python.
Thanks
Furqan
Hi,
I'm trying to call web2py.gluon.main.wsgibase depending on whether a
url path matches.
The code is like this:
[...]
os.chdir(web2py_dir)
import web2py.gluon.main
os.chdir(current_dir)
[...]
if [...]:
httpd =
In file
views/plugin_wiki/comment.html:
there is
{{from gluon.tools import prettydate}}
On Jul 20, 1:39 pm, Anthony abasta...@gmail.com wrote:
I'm not sure about that -- maybe Massimo can answer.
On Wednesday, July 20, 2011 2:18:23 PM UTC-4, Vincent wrote:
Hi Anthony,
thanks for
I agree it would be useful.
It will be tricky to implement.
Moreover
row = db().select(db.table.field.date()).first()
would not go into row.field but into row[db.table.field.date()]
it would be much easier to just provide a function row.field.asdate()
or row.field.astime()
On Jul 20, 5:03
LOL
On Jul 20, 5:22 pm, Michele Comitini michele.comit...@gmail.com
wrote:
Gee... Massimo aren't you on vacation? Stop bothering us! ;-) ;-)
mic
2011/7/20 Massimo Di Pierro massimo.dipie...@gmail.com:
Hello everybody,
I apologize I have been not active on the list for a few days
I'm not a fan of images and instead try to steer towards a scripting
approach. There are a bunch of scripts in the Web2py distro and I and others
have also created some scripts:
https://bitbucket.org/pbreit/web2py-automation
http://code.google.com/p/web2py/source/browse/#hg%2Fscripts
I think 1 is fixed in trunk. Did you try? What is the bug not fixed in
trunk?
On Jul 20, 1:48 pm, Vasile Ermicioi elff...@gmail.com wrote:
just an old wish of mine:
- make web2py to work with latest pyamf version,
- and there is a bug in latest version which is not fixed in trunk
thank you
I think for now Anthony's proposal is the way to go. Open a ticket in
google code and we can think of other options.
On Jul 20, 5:53 pm, Anthony abasta...@gmail.com wrote:
I think there are a few possibilities. First, your MultiT function could
work, but you'd have to use str(T(text)) instead
There was discussion
http://www.turnkeylinux.org/forum/general/20110107/tklpatch-web2py-framework
On Jul 20, 8:04 pm, Mike Veltman mike.velt...@gmail.com wrote:
First I dont know if someone already did it.
I have been playing with suse studio for a while and I thought to build a
vm/install
I posted this problem a view days ago:
http://groups.google.com/group/web2py/browse_thread/thread/4f37d6ab1d2d752a
It's not an issue, but it's still bothering me ;-)
Kind regards,
Annet.
74 matches
Mail list logo