there's one additional detail before anyone can reply. If the user inserts
JoHN DOe, the data on the database must be saved preserving the case
sensitivity the user used? i.e. when the user comes back should he see JoHN
DOe the way he inserted it or John Doe ?
Il giorno lunedì 17 dicembre
Il 14/12/12 02:49, Andrew W ha scritto:
Does your dbms support count(distinct ) ?
What happens if you only put one column in COUNT(DISTINCT
vista.municipio) ?
thank you Andrew and Niphold,
using just one field for the distinct option works fine... I just
thought a little bit better what I
Thanks
--
For administrative reasons, when a user changes his e-mail address in
default/user/profile, I want to inform the admin by mail.
Is there a way to adjust the default user function, or should I define a
separate profile function do something like:
def profile():
let's give webassets a try: it's a dependency hell (I highly doubt this
will be shipped with web2py).
However, contrib module are made for those kind of things.
Shallow first analysis according to
http://elsdoerfer.name/docs/webassets/builtin_filters.html
JS:
- rjsmin (strips just newline and
I'm also not a sysadmin, but I did go through the process of setting up
web2py on webfaction recently as well. I also found that script but it
seemed to be overly complicated. In particular, there is no need to
download, build run nginx, as you can use webfaction's instance. If there
is an
This thread has a more detailed exampled of a script:
https://groups.google.com/forum/?fromgroups=#!searchin/web2py/uwsgi$20webfaction/web2py/PWpwayGa4Io/bBVyehyZ3ogJ
On Monday, December 17, 2012 12:32:21 PM UTC, Neil wrote:
There are a few other posts in this group about selecting good uwsgi
Just bumping this as I am still struggling with view and edit for joined
SQLFORM.grid's
On Wednesday, 28 November 2012 11:17:36 UTC, Michael Hall wrote:
I have a SQLFORM.grid with a join, however when I insert, edit or update a
record displayed in the grid I am only ever given a form for the
Holy shit...
Where did you say you got all that info from?
Is this what that module needs?
I thought it's just a stand-alone pythonic-module doing everything...
Guess I was a bit optimistic...
What about coffeeCup?
- is it just something like edit the less file in static/less/file.less
and
Another general issue regarding that:
How would web2py behave using various modular javascript loaders?
Do I HAVE to configure my web server so serve the static folder?
How about AMD solutions (such as require.js and r.js), how would they
behave?
Is there a way to rout those requests through
I am prettysure web2py does not call str.format either. Must be in user's
code.
On Monday, 17 December 2012 01:24:56 UTC-6, viniciusban wrote:
On Sat, Dec 15, 2012 at 1:17 AM, Lewis lewis...@hotmail.com javascript:
wrote:
After attempting to delete a category that still references
assuming
db.define_table('person',Field('fullname'))
db.define_table('thing',Field('name'),Field('belongsto','reference
person'))
you can define a function to capitalized a name
def capitalize(name): return ' '.join(t.capitalize() for t in (name or
'').split())
You can use to change
probably related:
using web2py 2.3.1 stable, centos 6.3, httpd apache 2
(2, 3, 1, datetime.datetime(2012, 12, 14, 15, 24, 12), 'stable')PythonPython
2.6.6: /usr/bin/pythonTRACEBACK
1.
2.
3.
4.
5.
6.
7.
8.
9.
Traceback (most recent call last):
File /opt/web-apps/web2py/gluon/main.py, line
hi, i have a problem from to update web2py to latest version, the error is
the next:
Ticket ID
10.0.0.28.2012-12-17.11-32-22.3cb0b23c-4656-47da-8acd-5a44016ed107
type 'exceptions.ValueError' invalid literal for int() with base 10: '-1
day,'
Function argument list
1225 was just fixed!
On Monday, 17 December 2012 03:44:00 UTC-6, Andrew W wrote:
Thanks
--
Please make a clean installation. Looks like you have a new compileapp.py
but an old languages.py.
Something went beck during unzipping.
massimo
On Monday, 17 December 2012 08:40:46 UTC-6, lucas wrote:
probably related:
using web2py 2.3.1 stable, centos 6.3, httpd apache 2
(2, 3, 1,
auth.settings.profile_onaccept.append(lambda form:
mail.sent(to='administra...@example.com', subject='email change',
message=%(first_name)s %(last_name)s changed email to %(email)s %
form.vars))
On Monday, 17 December 2012 05:11:30 UTC-6, Annet wrote:
For administrative reasons, when a user
I am trying to set the fields to display in my grid...I am following the
slice at http://www.web2pyslices.com/slice/show/1471/sqlformgrid , however,
I am having an error with fields...I am using it as follows and I getting
an error as below:
links = [lambda row: A('View
Dear Bruno.
Yes works fine without powerTable
The problem occur when i use powerTable.
Regards
--- On Mon, 12/17/12, Bruno Rocha rochacbr...@gmail.com wrote:
From: Bruno Rocha rochacbr...@gmail.com
Subject: Re: [web2py] 'Row' object has no attribute powerTable
To: web2py@googlegroups.com
Date:
That line is definitively not commented in the web2py source code for 2.3.1
and 2.3.2
On Monday, 17 December 2012 08:48:34 UTC-6, cabildocl wrote:
hi, i have a problem from to update web2py to latest version, the error
is the next:
Ticket ID
Replace
fields =
(db.file_transaction.file_id,db.file_transaction.source_office_id, \
db.file_transaction.destination_office_id,
db.file_transaction.transaction_date_time)
with
fields =
[db.file_transaction.file_id,db.file_transaction.source_office_id, \
It is the same as 2.3.2 but fixed a major bug with NEWINSTALL being ignored
and therefore not creating the welcome.w2p for the new scaffolding app.
If you are using 2.3.1 you may still be using an older welcome instead of
the cool new one. Upgrade to 2.3.2 to fix this.
Massimo
--
I'm running a file like this:
python ~/web/web2py/web2py.py -S paideia -M -R
applications/paideia/bin/runtest.py
Then I launch a subprocess from runtest.py like this:
proc = subprocess.Popen(py.test {}.format(test_dir),
stdout=subprocess.PIPE,
After a bit of hacking I put together a working test runner for pytest.
Here it is:
Run this app's tests via py.test
place this file in applications/appname/bin/
run with: python your web2py dir/web2py.py -S paideia -M -R
applications/appname/bin/runtest.py
import os
import sys
import
Sorry, the question title should read How to *pass* a web2py environment
along . . . I can't seem to correct the title!
On Monday, December 17, 2012 11:11:47 AM UTC-5, Ian W. Scott wrote:
I'm running a file like this:
python ~/web/web2py/web2py.py -S paideia -M -R
Nice, Ian.
I'm overworking these days. I'll touch this next week.
On Mon, Dec 17, 2012 at 2:41 PM, Ian W. Scott scotti...@gmail.com wrote:
After a bit of hacking I put together a working test runner for pytest. Here
it is:
Run this app's tests via py.test
place this file in
Tested with a clean install of trunk, fixed. Thanks
On Monday, 17 December 2012 06:51:04 UTC-8, Massimo Di Pierro wrote:
1225 was just fixed!
On Monday, 17 December 2012 03:44:00 UTC-6, Andrew W wrote:
Thanks
--
Hi Folks!
I have a bunch of domain using the same application so I have something
like:
routers = dict(
BASE = dict(
domains = {
'domain1.net' : 'app/principal',
'www.domain1.net' : 'app/principal',
'domain2.net.br' : 'app/principal',
I am trying to set up an environment variable (lets say
WEB2PY_USE_DB_TESTING), so that in my db.py:
if not os.environ.get(WEB2PY_USE_DB_TESTING,None):
db = DAL('sqlite://storage.sqlite')
else:
db = DAL('sqlite://../fts/testdb.sqlite')
(as this resource points out:
I am not sure, the only thing that I know is that Nginx is not showing up
until I stop and restart it. Maybe it was needing a reload as you said at
last...
Richard
On Fri, Dec 14, 2012 at 3:01 PM, Niphlod niph...@gmail.com wrote:
tly with the install and this line is the culprit ?
--
Hi,
I am trying to understand how to use the included WebClient to test a
JSONRPC interface. One showstopper for me at the moment is that I see the
following in WebClient.post:
# time the POST request
data = urllib.urlencode(data)
t0 =
Thanks, this was very helpful.
On Monday, December 17, 2012 4:05:02 AM UTC+1, Massimo Di Pierro wrote:
Which you can find here:
http://web2py.com/examples/static/epydoc/web2py.gluon.validators.IS_STRONG-class.html
On Sunday, 16 December 2012 17:49:51 UTC-6, Jonathan Lundell wrote:
On 16
Just a cautionary note for anyone planning to upgrade to 2.2.1
I don't have an answer for this.
--
You cannot expose it. You can re-recreate it.
from gluon.shell import
env; globals().update(env('yourappname',import_modules=True))
On Monday, 17 December 2012 10:11:47 UTC-6, Ian W. Scott wrote:
I'm running a file like this:
python ~/web/web2py/web2py.py -S paideia -M -R
Thanks for reporting this. It was a major issue which deserved a new web2py
release.
On Monday, 17 December 2012 11:06:42 UTC-6, Ron McOuat wrote:
Tested with a clean install of trunk, fixed. Thanks
On Monday, 17 December 2012 06:51:04 UTC-8, Massimo Di Pierro wrote:
1225 was just fixed!
apologies.
when doing tests to check the error makes that line. This is the code that
shows me the error
El lunes, 17 de diciembre de 2012 12:08:57 UTC-3, Massimo Di Pierro
escribió:
That line is definitively not commented in the web2py source code for
2.3.1 and 2.3.2
Code listing
This is the correct way to retrieve it:
os.environ.get(WEB2PY_USE_DB_TESTING,None):
I think that the problem is that
os.environ[WEB2PY_USE_DB_TESTING]= 1
is not setting it. Not sure why. Perhaps it is setting it in the wrong
shell.
Did you try:
export WEB2PY_USE_DB_TESTING=1
On Monday, 17
Sorry I do not understand. Do you still have an error? What is the error?
On Monday, 17 December 2012 11:55:27 UTC-6, cabildocl wrote:
apologies.
when doing tests to check the error makes that line. This is the code that
shows me the error
El lunes, 17 de diciembre de 2012 12:08:57
the problem is that it throws me this error.
Ticket ID
10.0.0.28.2012-12-17.11-32-22.3cb0b23c-4656-47da-8acd-5a44016ed107
type 'exceptions.ValueError' invalid literal for int() with base 10: '-1
day,'
This began to occur when upgrade web2py. Now I tried again an older version
but the
Did you make any updates to your app's existing static assets, such as
jquery version, jquery-ui version, etc.? Or did you just use your entire
old app with a clean 2.2.1 web2py?
Regards,
Ales
On Monday, December 17, 2012 6:46:40 PM UTC+1, Cliff Kachinske wrote:
Just a cautionary note for
I'm not sure what narrow is by the period is 30 seconds. I'm seeing
weirder behavior now. The task completes successfully but it quits being
executed at a random time. The only way for me to fix it is to restart the
scheduler process. I enabled the debug logging and here are the last two
runs
Please I need the complete traceback. I think you have a datetime field
which you later converted in date or time format. The data is still
datetime and therefore you cannot take it out.
On Monday, 17 December 2012 12:17:44 UTC-6, cabildocl wrote:
the problem is that it throws me this error.
much thanks 3 you've definitely developed one of the best web frameworks
i've used so far
On Tuesday, June 12, 2012 3:17:46 AM UTC-10, Massimo Di Pierro wrote:
The official web2py book is now free for everybody:
https://dl.dropbox.com/u/18065445/web2py/web2py_manual_4th.1.pdf
Massimo
--
Yes. It does not matter where you put, as longs the user running the we
server (www-data?) and read/write permissions.
On Monday, 17 December 2012 12:39:50 UTC-6, rh wrote:
Is it possible to run web2py outside of the web root?
For example:
On disk the there is:
public web root =
Bah, I actually asked a Webfaction staff member if this were possible and I
was told no, that the frontend Nginx server could only be used on
static/PHP sites.
Now that I'm looking into it I'm seeing one major issue that without proper
configuration of Nginx for web2py, it would be serving
Make sure you tell others. The more the merrier. ;-)
Massimo
On Monday, 17 December 2012 13:16:12 UTC-6, Unyo wrote:
much thanks 3 you've definitely developed one of the best web frameworks
i've used so far
On Tuesday, June 12, 2012 3:17:46 AM UTC-10, Massimo Di Pierro wrote:
The
Massimo,
Thanks for your quick reply. For most part, web2py worked with IPython
Notebook like DAL, which is pretty good.
My interest is to to reuse web2py for managing notebooks without developing
Tornado apps myself as I am new to python and web2py.
W.
On Sunday, December 16, 2012 10:13:16 PM
Now I see it in the source release. Thanks,
On Sunday, December 16, 2012 10:02:53 PM UTC-5, Massimo Di Pierro wrote:
anyserver.py ships with web2py in the main folder. Run it with -h for
info. ;-)
On Sunday, 16 December 2012 16:57:12 UTC-6, wwwgong wrote:
Hi Massimo,
The ease of running
What I've done for that is set up another webfaction application of type
static to server all the css, images, audio, videos, etc. That creates a
new folder, for example:
/home/[USER]/webapps/static_web2py_myapp
Then, in my web2py/applications/[my_app]/ folder, I put a symbolic link
called
I'm getting the jquery stuff from ajax.googleapis.com. Don't know if it's
the latest.
I updated all the js, css, and image files.
On Monday, December 17, 2012 1:44:03 PM UTC-5, LightDot wrote:
Did you make any updates to your app's existing static assets, such as
jquery version, jquery-ui
Hmm, interesting. I'll give it a try and compare RAM usage/performance
after I've had more time to record data tinkering with the custom Nginx
install.
On Monday, December 17, 2012 11:34:51 AM UTC-8, Neil wrote:
What I've done for that is set up another webfaction application of type
static
Dear.
Why when i run:
def test():
return db(db.pagos.id_clientes==session.cliente_id).select(db.pagos.id,db.pagos.fecha,db.pagos.monto,db.pagos.comments,orderby=~db.pagos.fecha)
Works fine.
But when i use powerTable occur the error:
Hi,
anybody have any ideas?
tablerow.components.insert(2, TD(IMG(_src=URL('static',
'delete-article.png'), _onclick=confirmation(rowdata.asset_id),
_width=15)))
Kenneth
Den måndagen den 17:e december 2012 kl. 00:40:10 UTC+2 skrev Kenneth:
Hello,
I'm using webgrid in an application and
Who's going to know if it's the newest if not you?? :) How are you calling
the jquery stuff, you could post at least that... The cause of your
troubles might be as simple as incompatible jquery and jquery-ui versions,
but you're not telling us enough information to troubleshoot. For example,
I have slightly modified the WebClient to support jsonrpc. I am not sure
everything is correctly covered, but it is suiting my needs.
In case you are interested, you can see the changes here:
https://github.com/gonvaled/web2py/tree/webclient_add_jsonrpc
The biggest problem I had was
that
Is it possible to display all rows in grid, but make editable only a row
that belongs to a particular user? Tried searching if someone else did it,
but couldn't find any reference...
Tried following code, without success:
def check(row): return (row.created_by == 1) #auth.user_id
def
you could attach the log to the message, so the thread doesn't get long:P
I see 2 rounds only COMPLETED, then a huge gap
2012-12-16 21:39:30,330 - web2py.scheduler - INFO - task completed
(COMPLETED)
2012-12-16 23:12:23,296 - web2py.scheduler - DEBUG - new scheduler_run
record
this is how i use onclick for confirmation purpose in a grid:
lambda row: A('Copy',
_class='btn',
_onclick='return confirm(Duplicate %s?)' % row.po_number,
_href=URL('duplicate_po',args=[row.id])),
On Monday, December 17, 2012 2:46:59 PM UTC-5, Kenneth wrote:
Hi,
anybody
Sorry about that. I just tried to attach the log and it keeps giving me an
error. The scheduler_task record is marked QUEUED and the last
scheduler_run record is marked COMPLETED. The task just isn't being run for
some reason.
On Monday, December 17, 2012 12:29:34 PM UTC-8, Niphlod wrote:
was an error with a registry. thanks
El lunes, 17 de diciembre de 2012 16:16:00 UTC-3, Massimo Di Pierro
escribió:
Please I need the complete traceback. I think you have a datetime field
which you later converted in date or time format. The data is still
datetime and therefore you cannot
I have now tried with two different browsers to attach the log with no
success. I keep getting error (340) occurred while communicating with the
server. Do you want me to just email you the log?
On Monday, December 17, 2012 12:45:45 PM UTC-8, Mike D wrote:
Sorry about that. I just tried to
I have a grid where I want to show all payments for a customer. It is
driven by this query:
((db.payment.id 0) (db.payment.salesorder==db.salesorder.id)
(db.salesorder.customer == customerid))
It shows the correct rows. However the view button links to the salesorder
and I want it
no probl, the email is kinda obvious, at gmail.com
On Monday, December 17, 2012 9:54:38 PM UTC+1, Mike D wrote:
I have now tried with two different browsers to attach the log with no
success. I keep getting error (340) occurred while communicating with the
server. Do you want me to just
every request done to /app/static/file.something is automatically served by
web2py (matching a file into applications/app/static/file.something).
On Monday, December 17, 2012 2:55:19 PM UTC+1, Arnon Marcus wrote:
Another general issue regarding that:
How would web2py behave using various
On Monday, December 17, 2012 2:50:09 PM UTC+1, Arnon Marcus wrote:
Holy shit...
Where did you say you got all that info from?
quoted the link and scanning the source code
Is this what that module needs?
I thought it's just a stand-alone pythonic-module doing everything...
Guess I
@servicios_publicos.json
def login(usuario, password):
respuesta = {}
user = auth.login_bare(usuario, password)
if not user:
respuesta['estado'] = 'Error'
respuesta['mensaje'] = 'Nombre de usuario o contraseña incorrecta'
else:
respuesta['estado'] = 'OK'
This is telling me that your system doesn't support sha512?
On Monday, December 17, 2012 3:31:48 PM UTC-7, samuel bonilla wrote:
@servicios_publicos.json
def login(usuario, password):
respuesta = {}
user = auth.login_bare(usuario, password)
if not user:
Make sure you have OpenSSL installed.
On Monday, December 17, 2012 4:04:51 PM UTC-7, Derek wrote:
This is telling me that your system doesn't support sha512?
On Monday, December 17, 2012 3:31:48 PM UTC-7, samuel bonilla wrote:
@servicios_publicos.json
def login(usuario, password):
I know it does for direct script-tag requests and also for that
web2py-python-api-usage done in the layout.html/ajax_whatever.html thing...
I mean how would a javascript-based loader do that?
I'm not that well versed in requier.js, but from what I read, the A in
AMD stands for asynchronous, so
That sounds very cool, thanks for the detailed answered, this makes my head
a little calmer now...
BTW, I actually DID mean coffeCup, It refers to the python module I
referenced in my second post here:
http://42coffeecups.com/
It does coffeeScript-to-javascript transipling.
I think this one
as long as the resource loader asks for /app/static/something.js there is
no absolute problem. AMD if used to load js files works his magic
completely on client-side (vodoo-magic is requesting 5 js scripts at the
same time without waiting and organize the evaluation in the right order).
From
Swt! :)
I like this kind of voodoo...
10x a lot for clearing that out.
On Mon, Dec 17, 2012 at 3:24 PM, Niphlod niph...@gmail.com wrote:
as long as the resource loader asks for /app/static/something.js there is
no absolute problem. AMD if used to load js files works his magic
BTW, I actually DID mean coffeCup, It refers to the python module I
referenced in my second post here:
http://42coffeecups.com/
that page lends to something I can't trace to some source code doing that.
I found only tddspry and django couchdb adapter and some sites they made in
There appears to be an exception in bootstrap.min.js
e(...).on is not a function
The debugger reports the problem occurring in column zero.
On Monday, December 17, 2012 12:50:30 PM UTC-5, rochacbruno wrote:
do you have JS error message?
Bruno Rocha
http://rochacbruno.com.br
mobile
Em
In this case I usually make editable=False and then make my own 'Edit' link
button for just those records the user is allowed to change.
On Monday, December 17, 2012 8:09:47 PM UTC, Adi wrote:
Is it possible to display all rows in grid, but make editable only a row
that belongs to a
Hi.
I have a grid object that I'm using to update records.
I'd like to be able to limit the input value of field B based on the fixed
value of field A when the update button is clicked for that record.
For example:
step, outcome
1, A
1, B
1, C
2, C
2, D
3, A
3, D
...
So if step==1 for a
Hi Eric,
You can just use JS. And load the data through ajax too (if there is a
lot).
Search for cascading or cascading drop down lists on this group and on
web2pyslices.com to get yourself started.
On Monday, December 17, 2012 11:48:00 PM UTC, Eric Seidler wrote:
Hi.
I have a grid object
Hello People,
I am looking into converting my mysql database setup into a mongodb and
I was wondering about how at the moment db.py does translate the tables.
Because I would like to have some control/understanding about it.
--
Hi,
I am trying to get some metrics on my installation. For that I have
disabled the database (db=None) and I am requesting a very simple
controller:
def hello1():
return Hello World
I have a multi-threaded test program which is sending requests to web2py
(using WebClient). I have let my
Thank you very much!
On Tuesday, 12 June 2012 13:17:46 UTC, Massimo Di Pierro wrote:
The official web2py book is now free for everybody:
https://dl.dropbox.com/u/18065445/web2py/web2py_manual_4th.1.pdf
Massimo
--
Thanks Villas.
That did it :) I thought I could do it directly through editable, so spent
some time trying in different ways, but didn't realize that created_by
(field i was filtering on) was readable=writable=False, hahaha...
Thanks for a quick answer
On Monday, December 17, 2012 6:46:41
Hi,
My application uses some objects which are quite slow to setup. I create
this object in the models file, so that they are available for all
controllers.
Specifically, most of my processing is delegated to a celery queue (based
on rabbitmq). The interface to this queue is wrapped by a
Or another question, is there a way to use domain names redirect using
pattern-based rewrite?
Regards,
Tito
On Mon, Dec 17, 2012 at 2:07 PM, Tito Garrido titogarr...@gmail.com wrote:
Hi Folks!
I have a bunch of domain using the same application so I have something
like:
routers = dict(
One of your need could be achieve with this plugin:
http://dev.s-cubism.com/plugin_lazy_options_widget
You may find some thread on this list on how to avoid to use suggest
dependency plugin to trigger the conditional dropdown.
Richard
On Thu, Dec 13, 2012 at 1:46 PM, Eric Seidler
Hello Simone
Here some improvement :
*The following is an example configuration, to reduce the CPU load it is
recommended to run one worker process only and to enable keep-alive
connections:*
*worker_processes
http://wiki.nginx.org/NginxHttpCoreModule#worker_processes 1;*http
http://www.boottheme.com/#generatetheme
--
Interesting. If dal works everything should work then. I will take a look
asap.
On Monday, 17 December 2012 13:19:03 UTC-6, wwwgong wrote:
Massimo,
Thanks for your quick reply. For most part, web2py worked with IPython
Notebook like DAL, which is pretty good.
My interest is to to reuse
you point me to the file? Is it this one?
https://github.com/gonvaled/web2py/blob/webclient_add_jsonrpc/gluon/contrib/webclient.py
On Monday, 17 December 2012 14:01:18 UTC-6, Daniel Gonzalez wrote:
I have slightly modified the WebClient to support jsonrpc. I am not sure
everything is
another advantage:
2.3.1 is 45 mb
2.3.2 is 15 mb
smaller is nicer...:)
On Monday, December 17, 2012 6:11:19 PM UTC+3, Massimo Di Pierro wrote:
It is the same as 2.3.2 but fixed a major bug with NEWINSTALL being
ignored and therefore not creating the welcome.w2p for the new scaffolding
Do you have model files at all?
tricks for speedup:
- use web2py 2.3.2 (the 2.2.1 had some tricks for speedup)
- bytecode compile the app
- use a production web sever like nginx
- remove language files
I also would expect more then 100reqs/sec.
On Monday, 17 December 2012 18:23:57 UTC-6, Daniel
On Monday, December 17, 2012 2:08:29 PM UTC+11, Massimo Di Pierro wrote:
Agreed. Can you help us write it?
I just tried my first pull request so you should see that in the
web2py-book repository on github. I hope.
--
Are you sure about this? I cannot explain it. What's in the extra +30MB?
On Monday, 17 December 2012 21:27:44 UTC-6, apps in tables wrote:
another advantage:
2.3.1 is 45 mb
2.3.2 is 15 mb
smaller is nicer...:)
On Monday, December 17, 2012 6:11:19 PM UTC+3, Massimo Di Pierro wrote:
It
Works fine, just a comment:
curl -POST --data-binary @localfilename
to avoid loss of CR / LF in text files
Thank you very much.
El sábado, 15 de diciembre de 2012 20:20:11 UTC+1, Massimo Di Pierro
escribió:
auth.settings.allow_basic_login = True
Hello everyone,
I'm developing a backend site with web2py. I have 2 web services, one to
register a user and a second one to login the user.
This is the first one:
def register(user, email, password):
db.auth_user.insert(username=user, email=email,
Dear.
After looking some solution in google, i found this solution:
https://groups.google.com/forum/?fromgroups=#!topic/web2py-usuarios/gvxQAC3Xfts
I added this lines to my controller:
@auth.requires_login()def pagos():
class Virtual(object):
Hi Adi,
very many thanks. That was exactly what I was looking for.
Kenneth
this is how i use onclick for confirmation purpose in a grid:
|
lambdarow:A('Copy',
_class='btn',
_onclick='return confirm(Duplicate %s?)'%row.po_number,
_href=URL('duplicate_po',args=[row.id])),
|
are you using virtual fields?
In powertable virtualfields properties is implemented with this
@virtualsettings decorator, but only nedded if you are using virtual fields
Bruno Rocha
http://rochacbruno.com.br
mobile
Em 18/12/2012 02:53, FERNANDO VILLARROEL fvillarr...@yahoo.com
escreveu:
Dear.
Hi Massimo!
It works thanks, the slice I am following is very useful and popular that
error must be edited.
Teddy L.
On Mon, Dec 17, 2012 at 5:09 PM, Massimo Di Pierro
massimo.dipie...@gmail.com wrote:
Replace
fields =
Hi,
Previously I was working on sqlite database with web2py. Now I've installed
postgresql-9.1.7-1-windows-x64, created a user role (testuser) and database
(testdb) and tested connectivity using psql; all went fine.
Then I've define following statement in db.py:
*db =
Does SQLFORM.grid support adding and display of a virtual field...am
getting an exception...my code:
db.file_subject_issue.file_name = Field.Virtual(lambda row:
get_file_name(row.file_subject_issue.file_id))
fields = [db.file_subject_issue.file_id,
db.file_subject_issue.date_created,
100 matches
Mail list logo