I think you should be able to define an autocomplete widget and assign it
to that field in your model definition.
I'm not an appadmin user so don't know for sure.
-Jim
On Friday, September 16, 2022 at 7:03:21 PM UTC-5 snide...@gmail.com wrote:
> It's rather annoying waiting for appadmin to
Solved :
https://stackoverflow.com/questions/8643664/new-database-refuses-to-show-up-in-web2py-appadmin
Le mardi 25 juillet 2017 21:37:47 UTC+2, LC LC a écrit :
>
> Hi,
>
> Why can i see tables like auth_user, auth_group, auth_event in appadmin.
> the tables exist however ..
> Thanks
>
>
--
Hello,
Thanks that all works now. This would be classed as a "schoolboy error" on
my part :-)
Thank you again
Simon
On Sunday, December 11, 2016 at 1:14:47 PM UTC, Anthony wrote:
>
> It has nothing to do with share.js. What you have done results in a
> Javascript error on the page, which causes
It has nothing to do with share.js. However, what you have done results in
a Javascript error on the page, which causes the Javascript code to stop
working. By commenting out the src URL of the script tag, that is
equivalent to setting the URL to that of the current page, so it reloads
the
DaveS, thanks for advising and taking the time to look at this.
After further diags, I think I have figured out what was causing this.
Because I wanted to remove the little share icon at the bottom right, In my
layout.html, I had disabled js/share.js by inserting a comment hash:
script
On Saturday, December 10, 2016 at 11:35:26 AM UTC-8, SimonD wrote:
>
> Hello, I recently upgraded from 2.9.5 to 2.14.6
> I also moved from SQLite to mysql along the way as well as bootstrap 2 to 3
>
> In 2.9.5 - in appadmin, I could sort an entire table either ascending or
> descending by
definitely a bug. a PR is on the way.
On Friday, October 7, 2016 at 8:49:45 PM UTC+2, Niphlod wrote:
>
> ok, it's valid syntax. will investigate...
>
> On Friday, October 7, 2016 at 7:04:51 PM UTC+2, MDSIII wrote:
>>
>> cval = dict(request.vars)
>> cval.update(request.vars)
>> cache.ram('agent',
ok, it's valid syntax. will investigate...
On Friday, October 7, 2016 at 7:04:51 PM UTC+2, MDSIII wrote:
>
> cval = dict(request.vars)
> cval.update(request.vars)
> cache.ram('agent',
> lambda: cache.disk('agent', lambda :cval, time_expire = 0),
> time_expire = 0)
>
> I realize
cval = dict(request.vars)
cval.update(request.vars)
cache.ram('agent',
lambda: cache.disk('agent', lambda :cval, time_expire = 0),
time_expire = 0)
I realize this is sort of rediculous code but it shows all assignment
operations to the object "cval" that happen before it is
how do you store a dict in cache.disk ?
On Friday, October 7, 2016 at 8:59:34 AM UTC+2, MDSIII wrote:
>
> When I store a dict in cache.disk and then request
> /appadmin/ccache I'm getting a key error:
>
> Traceback (most recent call last):
> File "C:\repos\TCL\web2py\gluon\restricted.py", line
Thanks again Anthony!
It's a really beautiful solution, but it resulted again in a NULL value.
However, it worked with the tweak to manually set the date to
request.utcnow:
*# fix appadmin's inability to handle dates correctly (because of ignoring
writable)if request.controller ==
On Monday, November 16, 2015 at 9:43:09 AM UTC-5, Robin Manoli wrote:
>
> Thanks for your replies guys!
>
> Anthony, when I deleted the update value, it stored a NULL value instead.
> Does it mean I need to enter it manually? Or is there an easy fix to this?
>
One alternative to manual entry
The update attribute works only if no value is submitted with the update.
However, in appadmin, the writable attribute is ignored, so the current
value appears in the update form and is therefore submitted with the rest
of the record, resulting in the current value being retained. Try deleting
Thanks for your replies guys!
Anthony, when I deleted the update value, it stored a NULL value instead.
Does it mean I need to enter it manually? Or is there an easy fix to this?
Den måndag 16 november 2015 kl. 13:30:44 UTC+1 skrev Anthony:
>
> The update attribute works only if no value is
Hey,
I'm only just learning so this response may not be helpful?!
The way I understand, appadmin is just a GUI for the database tables you
have, so I don't think that is the problem..
The auth tables can keep track of:
- created_on
- created_by
- modified_on
- modified_by
Add a
Thank you for the answer..Yes I think probably is
format = '%(partenza)s,%(partenza)s'
I am at the end of the program and this was a bad problem. Thank you very
much this forum is good
On Saturday, 7 November 2015 02:46:32 UTC+1, DenesL wrote:
>
> Without trying out the code I think the
Without trying out the code I think the problem is the invalid format
string.
format = '%(partenza,partenza)s'
In a format string each variable is formatted separately as in
format = '%(partenza)s,%(partenza)s'
Look up "String Formatting Operations" in the Python manual for full
details.
By
if it's slow it's for YOUR application, not the largest majority out there.
Edit
https://github.com/web2py/web2py/blob/master/applications/welcome/controllers/appadmin.py#L210
to "10" in your own if you feel comfortable with 10 lines per page.
On Monday, September 21, 2015 at 1:36:41 PM
If your CSV file is not RFC-4180 compliant, I would expect it not to work.
RFC-4180 calls for CR+LF linefeeds. Your program may just be outputting a
single linefeed without the carriage return.
On Monday, August 31, 2015 at 6:00:45 PM UTC-7, Gary Fung wrote:
>
> worked for me doing the same
worked for me doing the same windows comma separated (.csv) option.
On Tuesday, May 20, 2014 at 11:49:44 AM UTC-7, Michael Beller wrote:
>
> I'm also using Excel on a Mac and had the same problem. However, if I
> select "Windows Comma Separated (.csv)" option rather than the default
> "Comma
Yes, it is very nice and useful.
But I was worried because I thought than anyone could access to appadmin if
I forgot to clear the session in the browser when access with google
account.
Thanks Samuel
El viernes, 9 de enero de 2015, 16:46:27 (UTC+1), samuel bonill escribió:
You can use
Yes!!
It is. The only issue is that the browser can store the google session so I
have to be carefull width this, because you can logout your google account
without finishing the appadmin session.
Finally thanks, Massimo.
El viernes, 9 de enero de 2015, 6:05:52 (UTC+1), Massimo Di Pierro
Checking the code again. appadmin.py calls check_credentials to decide if
you have access. On GAE it does (in gluon/fileutils.py/check_credentials):
from google.appengine.api import users
if users.is_current_user_admin():
return True
elif gae_login:
First of all thanks so much for your attention Massimo.
So I have done a complete example of what I mean.
I have deployed an application in GAE: http://web2gae.appspot.com
It has a user with administration privileges called:
superad...@example.com width password: superadmin
I have created a
you try go to the admin app /admin and press the [logout] button?
On Wednesday, 7 January 2015 11:34:19 UTC-6, Jacinto Parga wrote:
Well, but I log out the application. Then I clean the browser history and
just put in the browser
* https://myapp.appspot.com/appadmin
I have no [logout] button when I am in https://myapp.appspot.com/appadmin
because I have not logged in. I can access to this page through google
count access
I have tried to deploy the application through a terminal with the local
server admin app logged out, but it had no effect.
I'll make
I partially agree. Problem is you signed out of google but you did not sign
out of admin. appadmin authorizes you if you are logged into admin. The
fact you logout from google does not automatically sign you out from admin.
Can you reproduce the problem if you sign our from admin?
On
Well, but I log out the application. Then I clean the browser history and
just put in the browser
* https://myapp.appspot.com/appadminI am required to sign with google
account.*
I do so, and I can access the appadmin complete fucntionality, but I had
not logged in the application at all,
Ah yes!
The _after_delete was defined the same way as _after_insert:
_after_delete: lambda fields, id:
so I had to remove the id, and change it to self:
*_after_delete: lambda self:*
Den onsdagen den 10:e december 2014 kl. 14:38:57 UTC+1 skrev Anthony:
Have you defined any _after_delete
Have you defined any _after_delete functions for the table in question?
On Wednesday, December 10, 2014 4:02:58 AM UTC-5, Robin Manoli wrote:
Hey,
this happens when I try to delete a row from appadmin, or an sqlform:
Traceback (most recent call last):
File /web2py/gluon/restricted.py,
I encounter exactly the same issue if you try to open the db administration
page in a app.
Le dimanche 7 septembre 2014 01:19:31 UTC+2, Luciano Laporta Podazza a
écrit :
Same issue :(, as mentioned before, tried testing default apps and my app
and it redirects to admin page.
On Sat, Sep
This is now solved in 2.9.8
On Sunday, 7 September 2014 03:45:45 UTC-5, olivier hubert wrote:
I encounter exactly the same issue if you try to open the db
administration page in a app.
Le dimanche 7 septembre 2014 01:19:31 UTC+2, Luciano Laporta Podazza a
écrit :
Same issue :(, as
Tested, works like a charm!.
Thanks!
On Sep 7, 2014 12:34 PM, Massimo Di Pierro massimo.dipie...@gmail.com
wrote:
This is now solved in 2.9.8
On Sunday, 7 September 2014 03:45:45 UTC-5, olivier hubert wrote:
I encounter exactly the same issue if you try to open the db
administration page
ok. it hasn't anything to do with the more security change. It has to do
with the new session storage behaviour. Filing an issue right now,
shouldn't be hard to fix
On Saturday, September 6, 2014 1:23:00 AM UTC+2, Dragan Matic wrote:
+1 Here. It does the same thing to me, 2.9.7 appadmin
Possible fix in trunk. Can you help test it?
On Saturday, 6 September 2014 06:56:54 UTC-5, Niphlod wrote:
ok. it hasn't anything to do with the more security change. It has to do
with the new session storage behaviour. Filing an issue right now,
shouldn't be hard to fix
On Saturday,
Right now! :), I'll get back to you with results.
Cheers.
On Sat, Sep 6, 2014 at 8:11 PM, Massimo Di Pierro
massimo.dipie...@gmail.com wrote:
Possible fix in trunk. Can you help test it?
On Saturday, 6 September 2014 06:56:54 UTC-5, Niphlod wrote:
ok. it hasn't anything to do with the
Same issue :(, as mentioned before, tried testing default apps and my app
and it redirects to admin page.
On Sat, Sep 6, 2014 at 8:14 PM, Luciano Laporta Podazza
lucianopoda...@gmail.com wrote:
Right now! :), I'll get back to you with results.
Cheers.
On Sat, Sep 6, 2014 at 8:11 PM,
are you behind a proxy ?
On Friday, September 5, 2014 9:34:12 PM UTC+2, Luciano Laporta Podazza
wrote:
Hello,
I was developing an application with web2py
2.9.5-trunk+timestamp.2014.03.29.21.54.41 and appadmin worked fine until I
upgraded to latest 2.9.7.
Now when I access appadmin for
Hi Niphlod,
No, I'm working locally and no proxies at all. Why you ask?
On Fri, Sep 5, 2014 at 4:58 PM, Niphlod niph...@gmail.com wrote:
are you behind a proxy ?
On Friday, September 5, 2014 9:34:12 PM UTC+2, Luciano Laporta Podazza
wrote:
Hello,
I was developing an application with
I've just get back to 2.9.5 and appadmin works. I'm confused :P
On Fri, Sep 5, 2014 at 4:59 PM, Luciano Laporta Podazza
lucianopoda...@gmail.com wrote:
Hi Niphlod,
No, I'm working locally and no proxies at all. Why you ask?
On Fri, Sep 5, 2014 at 4:58 PM, Niphlod niph...@gmail.com wrote:
because the only change we made was making the access to appadmin more
secure when web2py is behind a proxy.
However, if you get redirected to admin it shouldn't matter, as the
change would affect you accessing admin also.
Seeing the code of appadmin.py (assuming is the latest from 2.9.7) the
+1 Here. It does the same thing to me, 2.9.7 appadmin redirects to web2py
admin. 2.9.6 is working correctly.
On Friday, September 5, 2014 10:06:24 PM UTC+2, Niphlod wrote:
because the only change we made was making the access to appadmin more
secure when web2py is behind a proxy.
However,
This is a bug. Can you please open a ticket?
On Monday, 16 June 2014 10:39:33 UTC-5, Greg Vaughan wrote:
Heading says it all... no problems using localhost IPv4...
Is this expected behaviour? Seems rather strange if so...
--
Resources:
- http://web2py.com
- http://web2py.com/book
I'm also using Excel on a Mac and had the same problem. However, if I
select Windows Comma Separated (.csv) option rather than the default
Comma Separated Values (.csv) in the Save As ... dialog box the import
through the appadmin interface works.
On Friday, November 22, 2013 5:49:37 AM
They are generated by web2py. It's strange it has something to do with the
IDs...
Op dinsdag 13 mei 2014 00:20:38 UTC+2 schreef Dave S:
On Sunday, May 11, 2014 8:05:15 AM UTC-7, Stefan van den Eertwegh wrote:
Hi all,
I have a web2py project and a sqlite database and every table shows
On Sunday, May 11, 2014 8:05:15 AM UTC-7, Stefan van den Eertwegh wrote:
Hi all,
I have a web2py project and a sqlite database and every table shows this
error: 'Column auth membership.id not found (SQL TABLE)'
Ofcourse every table its own error.
Does anyone know the solution?
Not
the core chapter is long, but full of gems :
http://web2py.com/books/default/chapter/29/04/the-core#Static-asset-management
On Saturday, March 15, 2014 9:58:10 PM UTC+1, SimonD wrote:
Hi LightDot,
Thanks for the info. I have a well thumbed printed 5th edition book and to
be honest, this is
On Friday, March 14, 2014 11:19:56 PM UTC+1, Dewes wrote:
Maybe in apache2, on default config you have this line:
AliasMatch ^/([^/]+)/static/(.*)
/var/www/web2py/applications/$1/static/$2
Change it to:
AliasMatch ^/([^/]+)/static/(?:_[\d]+.[\d]+.[\d]+/)?(.*)
Thanks to all other contributors.
Massimo nailed it, I think, with the proposal to use Chromes diagnostics. I
must get properly acquainted with Chrome...
The core problem was: a folder missing under admin/static (called _2.9.4).
Although I think the other Apache config solution may have
Er... creating folders is NOT the solution. You don't have any folders
missing.
The _2.9.4 comes from *virtual* static asset management. This number will
change now and then, as static files get updated, so please don't go
creating actual folders for this.
Search the book and this group for
Btw, this seems to be one of the more elusive features of web2py, when it
comes to finding information about it... @simonD, can I ask what did you
first think when you saw _2.9.4 in the path, but no corresponding folder?
Did you assume anything else besides a missing folder? Did you search the
Hi LightDot,
Thanks for the info. I have a well thumbed printed 5th edition book and to
be honest, this is not too well documented in there. A quick look at the
6th edition didn't help. But I will probe the 5th edition again.
The reference I did find appears related to nginx, rather than Apache
Anybody else experiencing this?
On Friday, 14 March 2014 06:39:08 UTC-5, SimonD wrote:
Hello, I have seen a previous post on an apparently broken Admin screen,
but I think this is a different issue (or just a noobie question).
I have done my app development on 2.3.2 (on Ubuntu 10.04 LTS).
I
I remember see something on previous version, IIRC the thing was in
apache's vhost config.
On Friday, March 14, 2014 4:27:04 PM UTC+2, Massimo Di Pierro wrote:
Anybody else experiencing this?
On Friday, 14 March 2014 06:39:08 UTC-5, SimonD wrote:
Hello, I have seen a previous post on an
Thanks,
The vhost configs (I assuming that we are talking about
sites-available/default ?), is as per the setup script as kindly included
in web2py. It is unchanged apart from the installation directory (i.e.
other than www-data). I have changed all references of www-data to a new
directory
Massimo has a problem when we use the script, web2py not posing on
localhost port.
Ovidio Marinho Falcao Neto
ITJP.NET.BR
ovidio...@gmail.com
itjp.net...@gmail.com
Brasil
2014-03-14 11:27 GMT-03:00 Massimo Di
Can you open the page with chrome? In the javascript console (under network
activity) it will tell you which files return a 404 error (if any). Then
you can check if the files are there or not.
On Friday, 14 March 2014 11:06:09 UTC-5, SimonD wrote:
Thanks,
The vhost configs (I assuming that
Sorry I do not understand.
On Friday, 14 March 2014 11:30:04 UTC-5, Ovidio Marinho wrote:
Massimo has a problem when we use the script, web2py not posing on
localhost port.
Ovidio Marinho Falcao Neto
ITJP.NET.BR
me neither but it may be related to static_version. A simple screenshot
from firebug or chrome developers tools will tell us.
On Friday, March 14, 2014 5:43:41 PM UTC+1, Massimo Di Pierro wrote:
Sorry I do not understand.
--
Resources:
- http://web2py.com
- http://web2py.com/book
Maybe in apache2, on default config you have this line:
AliasMatch ^/([^/]+)/static/(.*)
/var/www/web2py/applications/$1/static/$2
Change it to:
AliasMatch ^/([^/]+)/static/(?:_[\d]+.[\d]+.[\d]+/)?(.*)
/var/www/web2py/applications/$1/static/$2
At least that solved my
No I am not being redirected to admin login page first. I have edited
admin/models/0.py:
EXPIRATION = 48 * 60 * 60 # logout after 48 hours of inactivity
A while could be 24 hours.
On Tuesday, March 4, 2014 4:28:38 PM UTC-5, Anthony wrote:
On Tuesday, March 4, 2014 4:06:58 PM UTC-5, User
Changing the admin login expiration only affects the admin app itself, not
appadmin, which delegates access to admin. If you want to change the
expiration for appadmin, then you'll have to edit appadmin.py
at
Are you being asked to log in to admin, or are you already logged in at the
time?
On Tuesday, March 4, 2014 3:37:23 PM UTC-5, User wrote:
Whenever I visit my appadmin page url it redirects me to the admin page on
the first try. If I go to my appadmin page a second time it will correctly
I am already logged in, but haven't visited the site in a while.
On Tuesday, March 4, 2014 3:44:31 PM UTC-5, Anthony wrote:
Are you being asked to log in to admin, or are you already logged in at
the time?
On Tuesday, March 4, 2014 3:37:23 PM UTC-5, User wrote:
Whenever I visit my
On Tuesday, March 4, 2014 4:06:58 PM UTC-5, User wrote:
I am already logged in, but haven't visited the site in a while.
How long is a while? By default, I believe the admin login lasts for only
60 minutes. When you go to appadmin, you say you first get redirected to
admin. My question is
Just come across the same problem - using ver 2.7.4 with pythonanywhere.com
The issue seems to be with the csv files created by Excel (I am on Mac
OSX). I have a simple 2-column list of ISO country codes and nationalities
on an Excel spreadsheet. Saving from Excel to CSV creates a file that,
On Friday, November 22, 2013 2:49:37 AM UTC-8, Andy W wrote:
Just come across the same problem - using ver 2.7.4 with
pythonanywhere.comhttp://www.google.com/url?q=http%3A%2F%2Fpythonanywhere.comsa=Dsntz=1usg=AFQjCNE87nZNBtnO7Cp-WuDu5NNkjqvjrA
The issue seems to be with the csv files
Hard to say without an example.
On Thursday, 8 August 2013 00:07:38 UTC-5, DJ wrote:
Not able to upload data using CSV import tool, get the following error
(perhaps, web2py csv import tool needs to read it in using 'rU' option?) -
Running Version 2.5.1, Python 2.7, MacOSX. Tested it using
how much long have to be this int ? 138300L has a sense only in python, not
the dal string represented in the form as a text ^_^
On Wednesday, March 6, 2013 10:42:32 PM UTC+1, mweissen wrote:
I have tried in appadmin
db.protocol.id138300
or
db.protocol.id138300L
and I get
invalid
The request.vars.file turn out to indicate that a file is uploaded from my
iPhone. Issue solved.
Doing some tests showed me a point to be aware of. Showing the images in a
HTML page can give a difference between windows browser (Firefox and
Chrome) and my iPhone. It turns out that the iPhone
Can you somehow log request.vars.file on upload? The issue is to determine
whether the file is there or not.
On Saturday, 20 October 2012 12:42:55 UTC-5, Richard wrote:
Hi,
I want to use Web2Py as much as possible. For a holiday blog I want to
upload photo's from my iPhone using appadmin.
Ah, of course, thank you.
On Wednesday, 12 September 2012 17:07:48 UTC+1, Niphlod wrote:
format is missing for the clients table .
how should web2py show the clients records in the dropdown of the
newly/currently editing record of promotions ?
Il giorno mercoledì 12 settembre 2012
I'm having the same trouble with the following table definition (version
2.0.8)
db.define_table('clients',
Field('name'))
db.define_table('promotions',
Field('client', 'reference clients'),
Field('name'),
format is missing for the clients table .
how should web2py show the clients records in the dropdown of the
newly/currently editing record of promotions ?
Il giorno mercoledì 12 settembre 2012 17:28:50 UTC+2, scausten ha scritto:
I'm having the same trouble with the following table
thanks. in trunk.
On Saturday, 18 August 2012 05:28:02 UTC-5, paolo betti wrote:
I think import from CSV file in appadmin does not works so I tried to
correct it. :-)
I attach new appadmin.py (filename plugin_art_appadmin.py) and patch file,
hope they can help you.
Regards.
PB
--
Can you make a more concrete example?
On Sunday, 19 August 2012 13:48:42 UTC-5, Alan Etkin wrote:
I think this is got to have something to do with changes in trunk, for the
behavior has changed since 1.99.7 stable
When editing plugin tables with appadmin, some default widgets (as for
Thanks. Fixed.
On Sunday, 19 August 2012 14:16:47 UTC-5, Alan Etkin wrote:
Can you make a more concrete example?
A table definition
db.define_table(plugin_pyodel_attendance,
Field http://localhost:8000/examples/global/vars/Field(student,
reference auth_user,
default=auth.user_id),
Happy to be useful, web2py is a great framework. :-)
PB
Il giorno domenica 19 agosto 2012 17:14:00 UTC+2, Massimo Di Pierro ha
scritto:
thanks. in trunk.
--
Good idea, though I think something like AngularJS http://angularjs.org/might
be a better option or maybe
Batman.js http://batmanjs.org/ (two way data binding and template-less
views).
On Friday, June 15, 2012 12:51:52 AM UTC-4, pbreit wrote:
I was thinking a neat project for someone looking
I've also been hearing good things about EmberJS http://emberjs.com/lately...
On Fri, Jun 15, 2012 at 4:49 PM, Anthony abasta...@gmail.com wrote:
Good idea, though I think something like AngularJS might be a better
option
or maybe Batman.js (two way data binding and template-less views).
On
salut Ioane! )
Thank you very much, Ionel!
-rif
sâmbătă, 2 iunie 2012, 18:30:30 UTC+3, ionel a scris:
Hello Massimo,
This is the language file for appadmin in Romanian.
Thank you,
i.a.
Pretty standard stuff:
# Eclipse
if False:
request = current.request
session = current.session
response = current.response
T = current.t
cache = current.cache
from gluon.tools import *
db = DAL('postgres://.', pool_size=20)
auth = Auth(globals(), db)
mail =
I normally see:
from gluon.tools import Auth
auth = Auth(db)
auth.define_tables()
Yes. auth is being created in models immediately after creating
instance of DAL.
On Mar 8, 11:02 am, Bruno Rocha rochacbr...@gmail.com wrote:
where are you creating the instance of auth? in models?
On Wed, Mar 7, 2012 at 11:46 PM, weheh richard_gor...@verizon.net wrote:
Getting the
We might need to see the code in your model file that sets up Auth().
I know this is not the best practice, but to avoid that i'd define the
first domain unexistent action and use a redirect statement to send
the client to the correct address.
On 30 dic 2011, 23:52, Plumo richar...@gmail.com wrote:
I am using routers for multiple domains like this:
routers =
I think he means to ask why you are putting the table def in a class?
Much simpler to let the DAL do the work.
On Sep 7, 4:40 am, Manuele manuele.pese...@gmail.com wrote:
On 05/09/2011 21:21, pbreit wrote: Is there some reason your table
definitions depart so significantly from what is shown
Yeah, I was just wondering why your table definitions don't look more like
this:
db.define_table('page',
Field http://web2py.com/book/default/docstring/Field('title'),
Field http://web2py.com/book/default/docstring/Field('body', 'text'),
Field
Also, from book.http://web2py.com/book/default/chapter/06#Dependencies
*Table* represents a database table. You do not directly instantiate Table;
instead,DAL.define_table instantiates it.
1.
db.define_table('mytable', Field
http://web2py.com/book/default/docstring/Field('myfield')
Though the book also describes directly instantiating Table when creating a
dummy table for inheritence purposes
(http://web2py.com/book/default/chapter/06#Table-Inheritance), which is how
it is being used in this case.
On Wednesday, September 7, 2011 9:55:06 PM UTC-4, rochacbruno wrote:
ok everything goes fine without specifying unique=True option... but
it why?
anyway the traceback didn't help in any way... could it be a sort of bug??
thankyou
Manuele
On 05/09/2011 18:31, Manuele wrote:
Hi,
if you simply cut paste the following code in a model of a generic
app maybe
please do.
On Jul 31, 9:20 am, Alan Etkin spame...@gmail.com wrote:
Hi. I have a table with +3 records in a web2py app and the admin
interface stops with a ValueError in dal.py when trying a .id0
query. It seems to be related to some cache/time managing at the
admin's action. I solved the
This general behaviour irritates me as well :-) ...
The problem is the 'requires' for the table_name field is set at the time
the permissions table is created:
table.table_name.requires =
IS_EMPTY_OR(IS_IN_SET(self.db.tables))
and at that time, db.tables only includes the names of the tables that have
already been defined.
As
I will take Jonathan's patch. Sorry I was slow but I was travelling
and not I am little behind.. :-(
On Mar 14, 2:18 pm, mattynoce mattyn...@gmail.com wrote:
jonathan, you do have a fair point -- i already have to edit that file each
time i upgrade, as you say, to change the application and
Sounds like the problem is with your route changes. I think the
routes_onerror needs to be inside of the routers dict. Make sure to restart
web2py after you edit routes.py.
routers = dict(
BASE = dict(
routes_onerror = [
(r'*/400', r'/init/default/doesnotexist'),
On Mar 13, 2011, at 5:19 PM, pbreit wrote:
Sounds like the problem is with your route changes. I think the
routes_onerror needs to be inside of the routers dict. Make sure to restart
web2py after you edit routes.py.
routers = dict(
BASE = dict(
routes_onerror = [
Without sessions you do not have CSRF protection.
crud.create,
cruf.update
and form.accepts(request,session)
are never supposed to work
form.accepts(request)
should work because no CSRF protection.
On Mar 11, 2:38 am, sherdim sher...@gmail.com wrote:
Hello!
In the recent versions of web2py
This should go somewhere in the book.
On Mar 11, 8:09 am, Massimo Di Pierro massimo.dipie...@gmail.com
wrote:
Without sessions you do not have CSRF protection.
crud.create,
cruf.update
and form.accepts(request,session)
are never supposed to work
form.accepts(request)
should work
1 - 100 of 104 matches
Mail list logo