[web2py] Re: appadmin table view

2022-09-17 Thread Jim S
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

[web2py] Re: appadmin

2017-07-25 Thread LC LC
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 > > --

[web2py] Re: Appadmin sort not working

2016-12-11 Thread SimonD
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

[web2py] Re: Appadmin sort not working

2016-12-11 Thread Anthony
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

[web2py] Re: Appadmin sort not working

2016-12-11 Thread SimonD
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

[web2py] Re: Appadmin sort not working

2016-12-10 Thread Dave S
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

[web2py] Re: appadmin/ccache and dict in cache.disk

2016-10-07 Thread Niphlod
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',

[web2py] Re: appadmin/ccache and dict in cache.disk

2016-10-07 Thread Niphlod
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

[web2py] Re: appadmin/ccache and dict in cache.disk

2016-10-07 Thread MDSIII
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

[web2py] Re: appadmin/ccache and dict in cache.disk

2016-10-07 Thread Niphlod
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

[web2py] Re: appadmin not updating: update=request.utcnow

2015-11-20 Thread Robin Manoli
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 ==

[web2py] Re: appadmin not updating: update=request.utcnow

2015-11-16 Thread Anthony
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

[web2py] Re: appadmin not updating: update=request.utcnow

2015-11-16 Thread Anthony
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

[web2py] Re: appadmin not updating: update=request.utcnow

2015-11-16 Thread Robin Manoli
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

[web2py] Re: appadmin not updating: update=request.utcnow

2015-11-16 Thread Red Beard
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

[web2py] Re: () appadmin

2015-11-07 Thread Alessio Varalta
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

[web2py] Re: () appadmin

2015-11-06 Thread 'DenesL' via web2py-users
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

[web2py] Re: appadmin 10 roew show - not 100!

2015-09-21 Thread Niphlod
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

[web2py] Re: AppAdmin: CSV import bug

2015-09-01 Thread Derek
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

[web2py] Re: AppAdmin: CSV import bug

2015-08-31 Thread Gary Fung
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

[web2py] Re: /appadmin/manage/auth GAE access

2015-01-09 Thread Jacinto Parga
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

[web2py] Re: /appadmin/manage/auth GAE access

2015-01-09 Thread Jacinto Parga
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

[web2py] Re: /appadmin/manage/auth GAE access

2015-01-08 Thread 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:

[web2py] Re: /appadmin/manage/auth GAE access

2015-01-07 Thread Jacinto Parga
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

[web2py] Re: /appadmin/manage/auth GAE access

2015-01-07 Thread Massimo Di Pierro
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

[web2py] Re: /appadmin/manage/auth GAE access

2015-01-07 Thread Jacinto Parga
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

[web2py] Re: /appadmin/manage/auth GAE access

2015-01-07 Thread Massimo Di Pierro
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

[web2py] Re: /appadmin/manage/auth GAE access

2015-01-07 Thread Jacinto Parga
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,

[web2py] Re: Appadmin delete problem

2014-12-14 Thread Robin Manoli
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

[web2py] Re: Appadmin delete problem

2014-12-10 Thread Anthony
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,

Re: [web2py] Re: Appadmin redirect after upgrading to 2.9.7

2014-09-07 Thread olivier hubert
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

Re: [web2py] Re: Appadmin redirect after upgrading to 2.9.7

2014-09-07 Thread Massimo Di Pierro
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

Re: [web2py] Re: Appadmin redirect after upgrading to 2.9.7

2014-09-07 Thread Luciano Laporta Podazza
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

Re: [web2py] Re: Appadmin redirect after upgrading to 2.9.7

2014-09-06 Thread Niphlod
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

Re: [web2py] Re: Appadmin redirect after upgrading to 2.9.7

2014-09-06 Thread Massimo Di Pierro
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,

Re: [web2py] Re: Appadmin redirect after upgrading to 2.9.7

2014-09-06 Thread Luciano Laporta Podazza
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

Re: [web2py] Re: Appadmin redirect after upgrading to 2.9.7

2014-09-06 Thread Luciano Laporta Podazza
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,

[web2py] Re: Appadmin redirect after upgrading to 2.9.7

2014-09-05 Thread Niphlod
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

Re: [web2py] Re: Appadmin redirect after upgrading to 2.9.7

2014-09-05 Thread Luciano Laporta Podazza
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

Re: [web2py] Re: Appadmin redirect after upgrading to 2.9.7

2014-09-05 Thread Luciano Laporta Podazza
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:

Re: [web2py] Re: Appadmin redirect after upgrading to 2.9.7

2014-09-05 Thread Niphlod
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

Re: [web2py] Re: Appadmin redirect after upgrading to 2.9.7

2014-09-05 Thread Dragan Matic
+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,

[web2py] Re: appadmin is disabled because insecure channel using default ipv6 local ::1 on windows with w2p 2.95

2014-06-19 Thread Massimo Di Pierro
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

[web2py] Re: AppAdmin: CSV import bug

2014-05-20 Thread Michael Beller
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

[web2py] Re: Appadmin error - 'Column auth membership.id not found (SQL TABLE)'

2014-05-13 Thread Stefan van den Eertwegh
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

[web2py] Re: Appadmin error - 'Column auth membership.id not found (SQL TABLE)'

2014-05-12 Thread 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 this error: 'Column auth membership.id not found (SQL TABLE)' Ofcourse every table its own error. Does anyone know the solution? Not

[web2py] Re: Appadmin on 2.9.4

2014-03-17 Thread Niphlod
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

Re: [web2py] Re: Appadmin on 2.9.4

2014-03-15 Thread Niphlod
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]+/)?(.*)

[web2py] Re: Appadmin on 2.9.4

2014-03-15 Thread SimonD
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

[web2py] Re: Appadmin on 2.9.4

2014-03-15 Thread LightDot
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

[web2py] Re: Appadmin on 2.9.4

2014-03-15 Thread LightDot
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

[web2py] Re: Appadmin on 2.9.4

2014-03-15 Thread SimonD
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

[web2py] Re: Appadmin on 2.9.4

2014-03-14 Thread Massimo Di Pierro
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

[web2py] Re: Appadmin on 2.9.4

2014-03-14 Thread shapovalovdenis
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

[web2py] Re: Appadmin on 2.9.4

2014-03-14 Thread SimonD
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

Re: [web2py] Re: Appadmin on 2.9.4

2014-03-14 Thread Ovidio Marinho
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

[web2py] Re: Appadmin on 2.9.4

2014-03-14 Thread Massimo Di Pierro
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

Re: [web2py] Re: Appadmin on 2.9.4

2014-03-14 Thread Massimo Di Pierro
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

Re: [web2py] Re: Appadmin on 2.9.4

2014-03-14 Thread Niphlod
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

Re: [web2py] Re: Appadmin on 2.9.4

2014-03-14 Thread Dewes
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

[web2py] Re: appadmin redirects to admin on first try?

2014-03-05 Thread User
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

[web2py] Re: appadmin redirects to admin on first try?

2014-03-05 Thread Anthony
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

[web2py] Re: appadmin redirects to admin on first try?

2014-03-04 Thread Anthony
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

[web2py] Re: appadmin redirects to admin on first try?

2014-03-04 Thread User
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

[web2py] Re: appadmin redirects to admin on first try?

2014-03-04 Thread Anthony
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

[web2py] Re: AppAdmin: CSV import bug

2013-11-22 Thread Andy W
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,

[web2py] Re: AppAdmin: CSV import bug

2013-11-22 Thread Dave S
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

[web2py] Re: AppAdmin: CSV import bug

2013-08-08 Thread Massimo Di Pierro
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

[web2py] Re: appadmin and long int

2013-03-06 Thread Niphlod
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

[web2py] Re: appadmin upload from iPhone gives empty record.

2012-10-22 Thread Richard
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

[web2py] Re: appadmin upload from iPhone gives empty record.

2012-10-20 Thread Massimo Di Pierro
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.

[web2py] Re: Appadmin not showing default widgets for plugin tables

2012-09-13 Thread scausten
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

[web2py] Re: Appadmin not showing default widgets for plugin tables

2012-09-12 Thread scausten
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'),

[web2py] Re: Appadmin not showing default widgets for plugin tables

2012-09-12 Thread Niphlod
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

[web2py] Re: Appadmin possible bug in CSV import and related patch

2012-08-19 Thread Massimo Di Pierro
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 --

[web2py] Re: Appadmin not showing default widgets for plugin tables

2012-08-19 Thread Massimo Di Pierro
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

[web2py] Re: Appadmin not showing default widgets for plugin tables

2012-08-19 Thread Massimo Di Pierro
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),

[web2py] Re: Appadmin possible bug in CSV import and related patch

2012-08-19 Thread paolo betti
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. --

[web2py] Re: Appadmin in Backbone.js?

2012-06-15 Thread Anthony
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

Re: [web2py] Re: Appadmin in Backbone.js?

2012-06-15 Thread Alec Taylor
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

[web2py] Re: appadmin in Romanian (for Massimo)

2012-06-03 Thread CtrlSoft
salut Ioane! )

[web2py] Re: appadmin in Romanian (for Massimo)

2012-06-03 Thread rif
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.

[web2py] Re: appadmin ticket

2012-03-08 Thread weheh
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 =

[web2py] Re: appadmin ticket

2012-03-08 Thread pbreit
I normally see: from gluon.tools import Auth auth = Auth(db) auth.define_tables()

[web2py] Re: appadmin ticket

2012-03-07 Thread weheh
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

[web2py] Re: appadmin ticket

2012-03-07 Thread pbreit
We might need to see the code in your model file that sets up Auth().

[web2py] Re: appadmin when routing domains

2012-01-03 Thread Alan Etkin
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 =

[web2py] Re: appadmin and db.Table definition

2011-09-07 Thread Cliff
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

[web2py] Re: appadmin and db.Table definition

2011-09-07 Thread pbreit
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

Re: [web2py] Re: appadmin and db.Table definition

2011-09-07 Thread Bruno Rocha
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')

Re: [web2py] Re: appadmin and db.Table definition

2011-09-07 Thread Anthony
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:

[web2py] Re: appadmin and db.Table definition

2011-09-05 Thread Manuele
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

[web2py] Re: appadmin exception on large queries

2011-07-31 Thread Massimo Di Pierro
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

[web2py] Re: appadmin - insert new auth_permission

2011-07-26 Thread David Marko
This general behaviour irritates me as well :-) ...

[web2py] Re: appadmin - insert new auth_permission

2011-07-26 Thread Anthony
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

[web2py] Re: appadmin troubles

2011-03-14 Thread Massimo Di Pierro
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

[web2py] Re: appadmin troubles

2011-03-13 Thread pbreit
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'),

Re: [web2py] Re: appadmin troubles

2011-03-13 Thread Jonathan Lundell
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 = [

[web2py] Re: appadmin insert broken if session.forget()

2011-03-11 Thread Massimo Di Pierro
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

[web2py] Re: appadmin insert broken if session.forget()

2011-03-11 Thread DenesL
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   2   >