If you don't change this line both in production and in test
auth.define_tables(migrate=False, username=True, signature=False)
the error that you are getting will NEVER pop up.
If migrate=False, web2py doesn't attempt to create the auth tables, so the
error
"table_auth_user already exists"
DOE
On 28 April 2014 21:38, Miguel Andrés Moya Rojas
wrote:
Hello! My issue is this: I want to use the autocomplete widget (
> SQLFORM.widgets.autocomplete) but my field is a list:string, and now it
> shows all data in only one field, resulting in an awkward input. How can I
> use this widget with a l
Hi - I'm very late to this thread but just wanted to say thank you to Paolo
... your package massively helped me get up and running quickly on a new
project without having to hack away at the old code. I'd also be happy to
contribute via Github if there are areas that need work?
On Monday, 23 D
Hey guys! Nowadays I'm using a some filter_outs but they got update and
insert erros on record versioning.
I'm solving update issue using before_update like this:
def remove_filter(s,field):
field_obj = s.query.db[str(s.query).split('.')[0][1:]][field]
field_obj.filter_out = '
Yes I use pgAdmin3. I set "migrate=False" on every table and in the
connection string I set "migrate_enabled=False". No fake_migrate... I just
deactivate the migration stuff of web2py.
I didn't read the book about migration for a long time so there is maybe
new way of doing thing... But so far I d
are you storing your images in the datastore or in blobstore, or in google
cloud storage? if blobstore you can use
https://developers.google.com/appengine/docs/python/images/functions#Image_get_serving_url
to store a URL that serves it directly from blobstore.
cfh
On Monday, April 28, 2014
>
> Nice explanation Anthony. Thank you.
>
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Go
Just one week!!
Is there a way to listen a live stream, hangout something?
Richard
On Mon, Apr 28, 2014 at 8:21 PM, Simon Ashley wrote:
> Wouldn't be adverse to canvassing the idea of a weekend get together
> somewhere along the east coast ...
>
>
> On Saturday, 26 April 2014 19:47:21 UTC+10,
you can try to use markmin in T for styling. You need to write:
T.M('*%s* %%{result} %%{found}', symbols=num_offers)
29.04.14 21:28, Louis Amon написав(ла):
I'm trying to print something like that in my view :
*31* results found
(notice the bold number)
I used the pluralization engine
Hi Simone,
are you sure that what you're reporting is exactly what's happening ?
>
That's exactly what I observe and it bothered me because I expected the
behavior you describe in your reply.
I haven't had this problem for a long time. Both web2py_development and
web2py_deployment run on my
Mac
I am on the way to develop a small purchase requisition application.
The main idea is: the user select from a list of materials a material
number and enter the quantity.
Finally he will confirm his requisition and send it to a external system.
To create the purchase requisitions I use a simp
Hello
I found this nice description to do Unit Testing in web2py:
http://www.web2py.com/AlterEgo/default/show/260
In the example a controller function is called like this:
resp = list_active_games()
In my code however there are some REST functions for example:
@request.restful()
def test():
I would like to use Daemon mode of web2py to limit the number of web2py
instances I run.
I would also like specific web2py instances to serve specific applications.
Something like:
ServerName example.com
DocumentRoot /www/example1
WSGIDaemonProcess web2py1 user=www-user group=www-group
Hello Simon,
I'd like to attend but it is probably expensive to get there. Are you one
of the organizers?
Massimo
On Tuesday, 29 April 2014 17:00:07 UTC-5, Simon Ashley wrote:
>
> Anyone interested in attending http://2014.pycon-au.org/ in Brisbane, in
> August?
>
--
Resources:
- http://web2
According to the documentation, you can't. Have you tried using a
'represent' on the 'materials' table to show the matnr instead of the id?
On Wednesday, April 30, 2014 7:47:30 AM UTC-7, Beat Kohler wrote:
>
> I am on the way to develop a small purchase requisition application.
> The main idea i
I want to use OAuth + Google and want to know if things will work if a node
is offline. My app model is as follows.
I will have about 15 laptops in the field.
Each laptop will have a local copy of the app installed.
The laptop may/may not have Internet access.
I plan on using Couchbase for the
If each node must authenticate with OAuth with it will requires internet
connection.
Give a look here: https://developers.google.com/accounts/docs/OAuth2
2014-04-30 16:30 GMT-03:00 Brando :
> I want to use OAuth + Google and want to know if things will work if a
> node is offline. My app model
I try to use request.is_local to divide production enviroment and
development. But with this behaviour, it fail when i go to shell.
Is ' request.env.remote_addr ' the solution?
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source
I have a website that uses SQLFORM.grid. Some (random) times the grid
starts in page # >1000, >100, etc (random pages) instead of page #1.
I first thought it was because I was using two grids in the same page, but
now that I am rendering them through LOAD, I don't know what is happening.
It ha
please try (not tested) :
Field('MATNR_MATERIALS', 'reference MATERIALS', requires = IS_IN_DB(db,
db.MATERIALS.id, '%(MATNR)s') )
best regards,
stifan
>
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.goo
No, not an organiser, but thinking/ willing to organise some off agenda
web2py functions for those who are interested
(papers are about to close, so maybe a bit late for something official).
The main issue where you are is the travelling time (30 hours each way ex
Chicago), rather than the expen
Are you just trying to determine if you're in the shell or not? If so, you
can do:
if request.env.cmd_options.shell:
print "You're in the shell"
Anthony
On Wednesday, April 30, 2014 5:22:16 PM UTC-4, Cássio Botaro wrote:
> I try to use request.is_local to divide production enviroment and
You could create a view of the table "Situation" which groups by id_person
and returns max(id_status). Then you can do a normal join using the view
to establish the relationship between the other two tables.
You can have a view in web2py by creating the table as normal, but marking
it as migra
Im gonna try to explain it better.
I have an application with a controller that has a function that produces
an error. ex: myapp/default/index
on routes.py im redirecting the errors to otherapp/default/display_errors
to watch the ticket i have to go to
"http://localhost:8000/admin/default/ticket
24 matches
Mail list logo