Re: [web2py] upgrade failed for 2.8.2

2013-12-02 Thread lucas
> have you changed permissions to web2py folder?, in centos user and > group should be apache, unless you have a modified setup: > > chown -R apache:apache web2py/ > good thought but no, it didn't do the trick. damn, almost. hey massimo, what could have changed between 2.4 and 2.8, probably

[web2py] Testing local site on other machine

2013-12-02 Thread Ruud Schroen
Hi, I'm running web2py on my laptop with Ubuntu and i'd like to test my websites in IE. So i'd like to test my local web2py website my desktop, which is a Windows machine. How do i achieve this? Thanks in advance. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - h

[web2py] admin app killed!

2013-12-02 Thread Martin Weissenboeck
Hi, I have updated my main system to 2.8.2 Now when I call my_server/admin I get an error ticket. But I cannot analyze the error ticket, because it needs admin and I get another error. Afterwards I have copied the whole admin-app from the source over my_server/admin - same result. Any ideas?

Re: [web2py] upgrade failed for 2.8.2

2013-12-02 Thread Marco Mansilla
El Mon, 2 Dec 2013 04:11:05 -0800 (PST) lucas escribió: > > > > have you changed permissions to web2py folder?, in centos user and > > group should be apache, unless you have a modified setup: > > > > chown -R apache:apache web2py/ > > > > good thought but no, it didn't do the trick. damn,

Re: [web2py] Testing local site on other machine

2013-12-02 Thread Marco Mansilla
El Mon, 2 Dec 2013 04:46:51 -0800 (PST) Ruud Schroen escribió: > Hi, > > I'm running web2py on my laptop with Ubuntu and i'd like to test my > websites in IE. > So i'd like to test my local web2py website my desktop, which is a > Windows machine. > > How do i achieve this? > > Thanks in advan

[web2py] Re: SQLFORM.grid builds create/edit pages for wrong table

2013-12-02 Thread Jim S
Perfect. Thanks, don't know how I missed that one. -Jim On Friday, November 29, 2013 1:20:13 PM UTC-6, Niphlod wrote: > > use the field_id argument > > On Friday, November 29, 2013 8:12:53 PM UTC+1, Jim S wrote: >> >> I have the following code: >> >> # Build query >> queries = [] >>

[web2py] Re: Spawning a thread or a process for a long-running task [urgent!]

2013-12-02 Thread Yassen D.
Massimo, thanks a lot for your help! I will upgrade right away then. (I have very limited time, so I was afraid to break things.) My comments: (a) We need to get the import process run instantly on user UI action (link click). Couple of seconds later is okay, but half a minute later is not ok

Re: [web2py] admin app killed!

2013-12-02 Thread Jonathan Lundell
On 2 Dec 2013, at 5:20 AM, Martin Weissenboeck wrote: > I have updated my main system to 2.8.2 > Now when I call my_server/admin I get an error ticket. > But I cannot analyze the error ticket, because it needs admin and I get > another error. > > Afterwards I have copied the whole admin-app

[web2py] How to display the value of a reference field, instead of the id in sqlform.grid part 2

2013-12-02 Thread Gael Princivalle
Hi. Sorry about that, but I'm gone ask for something already asked before, displaying the reference field in the grid instead of the id: https://groups.google.com/forum/#!searchin/web2py/how$20to$20display$20the$20value$20of$20a$20reference$20field$2C$20instead$20of$20the$20id$20in$20sqlform.grid

[web2py] Re: admin app killed!

2013-12-02 Thread JoeCodeswell
Dear web2py Community, There were problems for me as well, but now they cleared up. On winXpSp3, I had my Firefox-25.0.1 opened while i did an extract into C:\web2py. So then [as best as i remember]: - I checked to see if the upgrade happened by refreshing the admin page. *result* Versio

[web2py] Re: How to display the value of a reference field, instead of the id in sqlform.grid part 2

2013-12-02 Thread Gael Princivalle
Ok, I've found how doing it. I've made this change in my fields: fields = (db.enquiries.enquiry_date, db.products.code, db.enquiries.note) Il giorno lunedì 2 dicembre 2013 16:17:37 UTC+1, Gael Princivalle ha scritto: > > Hi. > > Sorry about that, but I'm gone ask for something already asked befo

[web2py] intermittent problem with importing dropbox

2013-12-02 Thread Peter
I have some code that writes a file to dropbox. It includes from dropbox import client, rest, session i when I run the save_file command from the browser the majority of the time it works fine and does what it is supposed to do. But about 1 in 3 times it comes up with a ticket File "/opt/

Re: [web2py] Re: admin app killed!

2013-12-02 Thread Jonathan Lundell
On 2 Dec 2013, at 7:49 AM, JoeCodeswell wrote: > Here's a zip of C:\web2py\applications\admin\errors contents. S" 'dict' object has no attribute 'is_mobile'" S'Traceback (most recent call last):\n File "C:\\web2py\\gluon\\restricted.py", line 217, in restricted\nexec ccode in environment

[web2py] How do I post an image to web2py from HTML5 Canvas

2013-12-02 Thread Michael Hall
If I have the following model: db.define_table('user_images', Field('my_image', 'upload', label=T('My Image')), ) and In my rendered html view I have a canvas, the canvas has produced an image saved in the variable document.getElementById('canvas').src = dataURL; Underneath the i

Re: [web2py] Re: admin app killed!

2013-12-02 Thread Marin Pranjić
Clear your sessions, clear existing error tickets and then try again. Marin On Mon, Dec 2, 2013 at 4:59 PM, Jonathan Lundell wrote: > On 2 Dec 2013, at 7:49 AM, JoeCodeswell wrote: > > > Here's a zip of C:\web2py\applications\admin\errors contents. > > S" 'dict' object has no attribute > 'is_

[web2py] Re: upgrade failed for 2.8.2

2013-12-02 Thread JoeCodeswell
Dear lucas, Other updating problems & analysis for 2.8.2 are at this post, "admin app killed! ". Love and peace, Joe On Sunday, December 1, 2013 8:06:33 PM UTC-8, lucas wrote: > > hey everyone, > > i have been trying to upd

Re: [web2py] Re: admin app killed!

2013-12-02 Thread Jonathan Lundell
On 2 Dec 2013, at 8:05 AM, Marin Pranjić wrote: > Clear your sessions, clear existing error tickets and then try again. There's a patch post-2.8.2 that makes access.py tolerant of a dict. -is_mobile = request.user_agent().is_mobile +is_mobile = request.user_agent().get('is_mobile') BTW

[web2py] Re: Spawning a thread or a process for a long-running task [urgent!]

2013-12-02 Thread Massimo Di Pierro
The scheduler should do what you need. You can start many workers to manage the load. On Monday, 2 December 2013 05:51:26 UTC-6, Yassen D. wrote: > > Massimo, thanks a lot for your help! > > I will upgrade right away then. (I have very limited time, so I was afraid > to break things.) > > My com

[web2py] Re: intermittent problem with importing dropbox

2013-12-02 Thread Massimo Di Pierro
Did you install this? https://www.dropbox.com/developers/core/sdks/python On Monday, 2 December 2013 09:56:30 UTC-6, Peter wrote: > > I have some code that writes a file to dropbox. > > It includes > > from dropbox import client, rest, session > i > > when I run the save_file command from the

Re: [web2py] upgrade failed for 2.8.2

2013-12-02 Thread Massimo Di Pierro
Some things we know have changed: - admin uses versioning for static files therefore you need the new handlers/wsgihandler.py - sessions use a different format, therefore you have to remove all existing session files (or sessions in db) - web2py.js has changed so you must cp applications/welcome/

Re: [web2py] Re: admin app killed!

2013-12-02 Thread Martin Weissenboeck
I have cleared the sessions and the errors and it worked - thank you! 2013/12/2 Jonathan Lundell > On 2 Dec 2013, at 8:05 AM, Marin Pranjić wrote: > > Clear your sessions, clear existing error tickets and then try again. > > > There's a patch post-2.8.2 that makes access.py tolerant of a dict.

[web2py] Re: Issues with cpdb - references invalid table

2013-12-02 Thread Alan Etkin
> returns the correct order, the same as defined in models/db.py, whereas if > I add a print statement 'print table' under loop 'for table in self.db:' > in scripts/cpdb.py it returns the list of tables in alphabetic order. > I belive this is a problem with the DAL class initialization. If y

Re: [web2py] upgrade failed for 2.8.2

2013-12-02 Thread lucas
> Have you read apache logs?, this line: > > WSGIScriptAlias / /opt/web-apps/web2py/wsgihandler.py > > Have in mind that wsgihandler.py is in web2py/handlers in latest > versions of web2py... you might, also, have to fix permissions for this > file to rwxr-xr-x > yes, that did it. i ha

[web2py] LOAD Helper produces only "loading..." on fresh install.

2013-12-02 Thread Chris Hepworth
I have recently installed web2py, so I don't think the issue is out of date files. I have been following the recipe in the documentation, so my code is as follows: index.html: {{extend 'layout.html'}} {{=LOAD('comments','post.load',ajax=True)}} post.load: {{for post in comments:}} On {{=pos

Re: [web2py] upgrade failed for 2.8.2

2013-12-02 Thread lucas
> Some things we know have changed: > - admin uses versioning for static files therefore you need the new > handlers/wsgihandler.py > - sessions use a different format, therefore you have to remove all > existing session files (or sessions in db) > - web2py.js has changed so you must cp applica

[web2py] Re: LOAD Helper produces only "loading..." on fresh install.

2013-12-02 Thread Chris Hepworth
I found my error. On Monday, December 2, 2013 11:06:45 AM UTC-7, Chris Hepworth wrote: > > I have recently installed web2py, so I don't think the issue is out of > date files. I have been following the recipe in the documentation, so my > code is as follows: > > index.html: > {{extend 'layout.ht

Re: [web2py] upgrade failed for 2.8.2

2013-12-02 Thread Marco Mansilla
El Mon, 2 Dec 2013 10:06:38 -0800 (PST) lucas escribió: > > > > Have you read apache logs?, this line: > > > > WSGIScriptAlias / /opt/web-apps/web2py/wsgihandler.py > > > > Have in mind that wsgihandler.py is in web2py/handlers in latest > > versions of web2py... you might, also, have to

[web2py] Re: Suggestions for multiple files upload in form

2013-12-02 Thread Ruud Schroen
Hi, I know this is an old thread, but I have a question. The upload and everything is working fine, but for some reason it doesn't work when bootstrap.min.css (the default one by web2py) is NOT included. This is kinda stupid because i'm using Foundation. Any idea what's going on? On Friday, Oc

[web2py] Re: module-new file - error when saving

2013-12-02 Thread 黄祥
not sure why it's not work, please try to rename your modules files into friendly name. e.g. rental_master.py then from your controller import rental_master def customer(): return rental_master.grid_0(db.customer) best regards, stifan -- Resources: - http://web2py.com - http://web2py.com/book

[web2py] Re: module-new file - error when saving

2013-12-02 Thread 98ujko9
Found the problem, it is my ignorance. Names that start with digits aren't valid identifiers. Thanks. I am new to all this. On Monday, December 2, 2013 8:03:43 PM UTC-5, 黄祥 wrote: > > not sure why it's not work, please try to rename your modules files into > friendly name. e.g. rental_master.py

[web2py] admin interface wrong on 2.8.2

2013-12-02 Thread lucas
hey everyone, got web2py 2.8.2 working on apache and centos. fixed under https://groups.google.com/forum/#!topic/web2py/DexgEESPk38 however, i mentioned that admin interface is all messed up. my admin interface is not right though. the cool interface for admin is missing like the pull-downs

[web2py] Re: admin interface wrong on 2.8.2

2013-12-02 Thread Massimo Di Pierro
In your apache config files you need to replace ^/([^/]+)/static/?(.*) with ^/([^/]+)/static/(?:_[\d]+.[\d]+.[\d]+/)?(.*) in two places. On Monday, 2 December 2013 21:10:10 UTC-6, lucas wrote: > > hey everyone, > > got web2py 2.8.2 working on apache and centos. fixed under > > https://groups.

[web2py] Re: admin interface wrong on 2.8.2

2013-12-02 Thread Dave S
On Monday, December 2, 2013 7:10:10 PM UTC-8, lucas wrote: > > hey everyone, > > got web2py 2.8.2 working on apache and centos. fixed under > > https://groups.google.com/forum/#!topic/web2py/DexgEESPk38 > > however, i mentioned that admin interface is all messed up. my admin > interface is not r

[web2py] Re: admin interface wrong on 2.8.2

2013-12-02 Thread Dave S
On Monday, December 2, 2013 7:46:46 PM UTC-8, Dave S wrote: > > On Monday, December 2, 2013 7:10:10 PM UTC-8, lucas wrote: >> >> hey everyone, >> >> got web2py 2.8.2 working on apache and centos. fixed under >> >> https://groups.google.com/forum/#!topic/web2py/DexgEESPk38 >> >> however, i mentio

[web2py] Re: web2py 2.8.1 is OUT

2013-12-02 Thread Dave S
On Wednesday, November 27, 2013 12:31:05 PM UTC-8, Massimo Di Pierro wrote: > > Changelog > > > - no more winservice (use nssm instead) > - better imap support in DAL > - db().select().as_tree() > - bootstrap 2.3.2 > - codemirror 3.19 > - virtual fields in grid > - improved mongoDB support, thanks

[web2py] most web2py appliances with appengine wont work out of the box.

2013-12-02 Thread ID
Hi all, I'm trying to setup web2py on Appengine, admin and example app works but, most of the apps under appliances wont work out of the box and issues a ticket.. in particular i'm interested to setup a little forum with pyforum2, that too does not work and issues a ticket. :( -- Resources:

[web2py] Re: web2py 2.8.1 is OUT

2013-12-02 Thread Massimo Di Pierro
Please open a ticket about this. We can do it. On Monday, 2 December 2013 22:02:10 UTC-6, Dave S wrote: > > On Wednesday, November 27, 2013 12:31:05 PM UTC-8, Massimo Di Pierro wrote: >> >> Changelog >> >> >> - no more winservice (use nssm instead) >> - better imap support in DAL >> - db().select(

[web2py] one to many tables in views

2013-12-02 Thread Jesse Ferguson
I have two tables set up and i want to show the TimeCard with all the entries for said time card however im unsure of how to create such a view... CONTOLLER: def timecard_index(): tcrows =db(db.timecard).select(orderby=~db.timecard.tc_date) tcinputs =db(db.timecard_entry).select(orderb

[web2py] Online classes

2013-12-02 Thread Massimo Di Pierro
Hello everybody, As you know I teach a certification program about web development with Python and I use web2py. I posted my most recent classes online: https://vimeo.com/75499986 https://vimeo.com/76047107 https://vimeo.com/76608898 https://vimeo.com/77179700 https://vimeo.com/77654974 It is

[web2py] resizing uploaded image file upload using gluon.contrib.imageutils

2013-12-02 Thread 黄祥
hi, i'm trying to resizing uploaded image file upload using gluon.contrib.imageutils but nothing happens (no error occured and the image didn't resized). i'm testing it on windows 7 32 bit using web2py 2.8.2 both source and binary version, python 2.7.6, Pillow-2.2.1.win32-py2.7. my code is :