[web2py] [ANN] NotaLogger: Notarization Code Generator and Logging Service

2013-08-04 Thread Maurice Ling
*Hi everyone I am pleased to announce **"NotaLogger: Notarization Code Generator and Logging Service". A common challenge to examine notarized (signed and dated) records is the trust that the date is accurate (not a backdate); hence, heavy responsibility will lie on the notarizer. NotaLogger r

[web2py] Re: Google crawler error

2013-08-04 Thread James Burke
Thanks for your assistance. I found the cause! some recycled code in layout.html from another project, included a non-existent css file. =( {{if request.user_agent()['browser']['name'] != 'IE':}} {{ response.files.append(URL('static','css/badevday_no_ie.css')) }} {{pass}} On Monday, Au

[web2py] Re: track_changes for modules stops working after some time - some observation

2013-08-04 Thread David Marko
I have this problem for years. Working on Windows 7/8 , python 2.7.5 and latest web2py from trunk. The same behaviour observed when running rocket or mod_wsgi (under Apache). I'm always putting track_changes into model. Details of the behaviour are described in my initial post in this discussi

Re: [web2py] Simplest form of internal messaging

2013-08-04 Thread Robert O'Connor
A message queue is also needed potentially...if this is real time...also this is python...a monkey can do this... On Aug 4, 2013 9:29 PM, "Alex Glaros" wrote: > Can anyone help me think of a primitive form of internal messaging between > users of an app? No external email, nothing fancy because

[web2py] Re: IS web2py good for largescale

2013-08-04 Thread Alex Glaros
Hi Joe Barnhart, can you please tell me how much hosting costs per month for your app? bandwidth, disk, etc. thanks, Alex Glaros On Saturday, August 3, 2013 12:18:07 PM UTC-7, Joe Barnhart wrote: > > I'm not the OP, but I am also risking web2py on a "large" project... > > In my case I'm repla

[web2py] Re: IS web2py good for largescale

2013-08-04 Thread Ray (a.k.a. Iceberg)
Looks like using a memcache (which using finite memory) is the only way to go in this case? On Monday, August 5, 2013 6:42:09 AM UTC+8, Massimo Di Pierro wrote: > > If the query depends on user input than yes. > select(cache=(...)) uses the SQL QUERY as key. If it is possible for the > QUERY tha

[web2py] Simplest form of internal messaging

2013-08-04 Thread Alex Glaros
Can anyone help me think of a primitive form of internal messaging between users of an app? No external email, nothing fancy because I have limited programming skill. The only requirement is that a user can leave a message for another user, and the other user can reply. Example: 1. User

Re: [web2py] Re: auth.user question

2013-08-04 Thread Mark Finkelstein
This makes sense. This was what I was wondering. Thanks for the answer! On Sun, Aug 4, 2013 at 7:27 PM, Anthony wrote: > auth.user is stored in the session and is not refreshed from the database > on every request, which would be inefficient. Presumably you don't > typically drop your db tables

[web2py] Re: Google crawler error

2013-08-04 Thread Christian Foster Howes
there is some variable in index.html that is none, but you are trying to access it as a Storage or dict i bet. does you app expect/require login? is there something that is set conditionally based on the user agent? On Saturday, August 3, 2013 9:07:45 PM UTC-7, James Burke wrote: > > Hi, > >

[web2py] Re: deployment to google app engine did not include my static files

2013-08-04 Thread Christian Foster Howes
if you get a chance, can you describe how threadsafe==True was failing on GAE? i'm hoping to focus on making that work here in the next couple of weeks thanks, christian On Sunday, August 4, 2013 12:16:02 PM UTC-7, davedigerati wrote: > > and I only updated the app name in app.yaml and ru

[web2py] Re: IS web2py good for largescale

2013-08-04 Thread Anthony
> > For example when you do rows = db(query).select(cache=(cache.ram,3600),cacheable=True) > > Is there any way to specify the key, or to empty the cache after some time? > Not currently a way to specify the key, though I suppose we could add that option. Here's the code that generates the key:

[web2py] Re: auth.user question

2013-08-04 Thread Anthony
auth.user is stored in the session and is not refreshed from the database on every request, which would be inefficient. Presumably you don't typically drop your db tables in production. Anthony On Sunday, August 4, 2013 4:58:40 PM UTC-4, Mark Finkelstein wrote: > > Yes, I thought this was so, m

[web2py] Upload image and make a thumbnail question.

2013-08-04 Thread Michael Gheith
Hello web2py community! I used to be able to use the following web2py slice successfully in the past (about a year ago): http://www.web2pyslices.com/slice/show/1387/upload-image-and-make-a-thumbnail Now it's not working with the latest build of web2py. Is anyone able to successfully get this s

[web2py] Re: IS web2py good for largescale

2013-08-04 Thread Massimo Di Pierro
If the query depends on user input than yes. select(cache=(...)) uses the SQL QUERY as key. If it is possible for the QUERY that you are caching to always be different because depends on user this input you have a memory leak. Actually more than that. You have a DoS vulnerability because a user

[web2py] Re: list:string repeats same error message in SQLFORM grid

2013-08-04 Thread Massimo Di Pierro
Your first solution should also have worked. I will look into it. On Sunday, 4 August 2013 16:40:57 UTC-5, step wrote: > > Answering my own question, with jQuery I found a way to display just a > single error message div for a list:string type field. I added this code to > the view: > {{if g

[web2py] Re: IS web2py good for largescale

2013-08-04 Thread Hugo Costa
My cousin is making a social network using web2py and he worked with Rails, for example. I'd use it, I think it has a clean and easy code. But that's up to you. If you want to know what social network it is, http://tymr.com Sexta-feira, 2 de Agosto de 2013 4:04:27 UTC+1, hello world escreveu: >

[web2py] Re: IS web2py good for largescale

2013-08-04 Thread Loïc
Thank you Anthony. Maybe I missed a point in the book, but does memory leak with cache.ram also applies to select caching? For example when you do rows = db(query).select(cache=(cache.ram,3600),cacheable=True) Is there any way to specify the key, or to empty the cache after some time? What is

[web2py] Sapo Ink and Web2py

2013-08-04 Thread Hugo Costa
Hello! So, my friend who was using *Twitter Bootstrap *changed to Sapo Ink, and he loved it. I currently have my apps in Bootstrap, but I wanted to change them to the Sapo's framework. Anyone knows what should I delete to make this work? I have some of the features, I'v

[web2py] Re: list:string repeats same error message in SQLFORM grid

2013-08-04 Thread step
Answering my own question, with jQuery I found a way to display just a single error message div for a list:string type field. I added this code to the view: {{if grid.update_form or grid.create_form:}} {{#hide all list:string error divs but the first one, and move it before the data}}

[web2py] Re: groupby in sqlform.grid resulted into unsupported query

2013-08-04 Thread Massimo Di Pierro
Which web2py version. This may be fixed in trunk. I see that ORDERBY is missing. I think that is the problem. Please check trunk and let us know. If still a problem, please open an issue. On Sunday, 4 August 2013 15:13:48 UTC-5, villas wrote: > > I made a few tests but it appears that groupby pr

[web2py] Re: auth.user question

2013-08-04 Thread Mark Finkelstein
Yes, I thought this was so, my issue is more with the fact that after dropping the databases, this seems to give an invalid value, as shown in my first post? I may be wrong. On Sunday, August 4, 2013 3:07:46 PM UTC-4, Anthony wrote: > > If the user is not logged in, auth.user will return None, s

Re: [web2py] Re: Deploying on Open Shift Error

2013-08-04 Thread Naveena Elsa Benjamin
I am using python 2.7 version windows 64 bit On Sun, Aug 4, 2013 at 8:58 AM, dhmorgan wrote: > so are you now running web2py from source, using Python 2.6 or 2.7 ? > > > > On Sunday, August 4, 2013 1:36:24 AM UTC-5, ndave wrote: > >> Hi, >> >> I tried doing what was said but it didn't work out

[web2py] Re: groupby in sqlform.grid resulted into unsupported query

2013-08-04 Thread villas
I made a few tests but it appears that groupby produces buggy SQL when used with grid, so I'm not sure what you can do there. Maybe someone else could try it Here is a simple example: def testgrid(): return dict(grid=SQLFORM.grid(db.auth_user, groupby=db.auth_user. first_name,orderby=db.

[web2py] Re: deployment to google app engine did not include my static files

2013-08-04 Thread davedigerati
Aaand, I've wasted the board's time, very sorry. I had hard-coded a link (see other posting re: problems injecting css sheets) and forgot to rebuild with URL(). and on my image that was not loading, just giving a broken link I had malformed a URL request, which interestingly worked f

[web2py] Re: 1071, Specified key was too long; max key length is 767 bytes in 2.6.0-development+timestamp.2013.07

2013-08-04 Thread Niphlod
https://github.com/web2py/web2py/pull/159 fixes it On Sunday, August 4, 2013 4:21:03 PM UTC+2, Massimo Di Pierro wrote: > > Please open a ticket about this. > > -- --- You received this message because you are subscribed to the Google Groups "web2py-users" group. To unsubscribe from this grou

[web2py] Re: read a field from a row based on a (wait for it...) variable

2013-08-04 Thread Anthony
> > (actually would've just put the .nine into the select and save a line) > That wouldn't save a line -- still have to specify the field even if the row contains only one field. > > BUT what if my field name is a variable like so? > row = db((db.squares.game_code==session.game_code) & >

[web2py] Re: IS web2py good for largescale

2013-08-04 Thread Anthony
On Sunday, August 4, 2013 11:26:25 AM UTC-4, Loïc wrote: > Hello Massimo > > Could you please elaborate the following sentence, and if possible give an > example of what we should do/avoid? > > "built-in system is ok if you have one web2py instance and if you reuse > the same keys else you can h

[web2py] Re: deployment to google app engine did not include my static files

2013-08-04 Thread davedigerati
and I only updated the app name in app.yaml and runtime to 2.7 and threadsafe to False since true was bombing and I need this dang thing running an hour ago... On Sunday, August 4, 2013 3:12:16 PM UTC-4, davedigerati wrote: > > as you can see from here: http://sportssquaresonline.appspot.com/ >

[web2py] deployment to google app engine did not include my static files

2013-08-04 Thread davedigerati
as you can see from here: http://sportssquaresonline.appspot.com/ it did upload most of the static files, specifically 30, but the ones I added, both images and a css file, it did not. any idea why??? deployed both through the web2py admin feature and the GAE Launcher -- --- You received this

[web2py] Re: how to call a controller funtion on click of a button?

2013-08-04 Thread Anthony
There's www.web2pyslices.com for recipes, articles, and plugins/modules/apps (recently added). It also has Q&A functionality, though most questions get asked here (and to some extent on Stack Overflow). Anthony On Sunday, August 4, 2013 1:46:44 PM UTC-4, davedigerati wrote: > > STUPENDOUS! Tha

[web2py] Re: auth.user question

2013-08-04 Thread Anthony
If the user is not logged in, auth.user will return None, so you can't do auth.user.id. Instead, you should use auth.user_id, which will return None if not logged in. Anthony On Sunday, August 4, 2013 12:04:16 PM UTC-4, Mark Finkelstein wrote: > > I get the following error for trying that: > p

Re: [web2py] Re: Problem with function [pyfpdf] add_font() on GAE.

2013-08-04 Thread Brez Yl
I found some solution... it isn't the best one, but it works... The problem is with using pickle on GAE. The best solution would be to overload/rewrite the add_font() function where for GAE, in such a way, that it would write to a datastore instead of a filesystem. Additionaly ValueError: insec

[web2py] Re: how to call a controller funtion on click of a button?

2013-08-04 Thread davedigerati
STUPENDOUS! Thank you Anthony! Is there a wiki or Q&A site somewhere for these little tidbits of knowledge? The manual is fantastic but too exhaustive for a quick answer for me anyway... if not maybe I'll build one on web2py;) On Sunday, August 4, 2013 8:21:52 AM UTC-4, Anthony wrote: > > >

[web2py] Re: Quick contract job

2013-08-04 Thread davedigerati
Thanks Dmitri, I'm in the final stages of this one but have others on the horizon, please contact me at my email in the OP and I'll add you to my list of potential teammates - cheers On Sunday, August 4, 2013 12:13:19 PM UTC-4, Dmitri Husti wrote: > > Hi, > Success? > Your deadline is over, do y

[web2py] read a field from a row based on a (wait for it...) variable

2013-08-04 Thread davedigerati
I have my row returning data, and I know I can grab the value of a field as long as I know what the field name IS like so row = db((db.squares.game_code==session.game_code) & (db.squares.row_num==row_vis)).select() winner= row[0].nine but what if my field name is a variable like so?

[web2py] Re: more buttons on the SQLFORM, how to add them into templates using form custom layout ...?

2013-08-04 Thread Anthony
On Saturday, August 3, 2013 6:21:22 AM UTC-4, David Marko wrote: > I would like to add more buttons to SQLFORM using the syntax below. How > can I address these buttons on template when I render content manualy? For > common submit filed I'm using {{=form.custom.submit}} ... how to address > th

Re: [web2py] Re: Problem with function [pyfpdf] add_font() on GAE.

2013-08-04 Thread Christian Foster Howes
perhaps try printing the string fh at line 42 of gluon/contrib/fpdf/fpdf.py ? maybe that will shed some light do you know if the path to the font you are adding in your controller is correct for GAE? i don't remember off the top of my head the default file path on GAE. cfh On 8/4/13 9

[web2py] Re: Problem with function [pyfpdf] add_font() on GAE.

2013-08-04 Thread Brez Yl
I think, the file is ok, for pdf/pyfpdf (as I said, it works good on devservers). But maybe it is, in some way wrong for GAE... I'm confused. But thanks for suggestion. On Sunday, August 4, 2013 6:42:28 PM UTC+2, Christian Foster Howes wrote: > > after a quick moment of asking google i saw the s

[web2py] Re: Problem with function [pyfpdf] add_font() on GAE.

2013-08-04 Thread Christian Foster Howes
after a quick moment of asking google i saw the suggestions that your error indicates something wrong with the pickled itemwhich i think in this case is the font file. is your font file in the right format to be loaded by fpdf? (i have no familiarity with this error or fpdf so i'm just th

[web2py] Re: Quick contract job

2013-08-04 Thread Dmitri Husti
Hi, Success? Your deadline is over, do you need someone else for web2py? Im not a professional but most of the questions you posted I could answer :P. Best regards Dmitri Husti Am Donnerstag, 1. August 2013 06:11:59 UTC+2 schrieb davedigerati: > > I have been learning web2py for a project and wh

[web2py] Re: auth.user question

2013-08-04 Thread Mark Finkelstein
I get the following error for trying that: print db.auth_user[auth.user.id] AttributeError: 'NoneType' object has no attribute 'id' I thought `auth.user` is supposed to be used to check if the user is logged in? On Sunday, August 4, 2013 10:35:14 AM UTC-4, Massimo Di Pierro wrote: > > If you ar

Re: [web2py] Re: Deploying on Open Shift Error

2013-08-04 Thread dhmorgan
so are you now running web2py from source, using Python 2.6 or 2.7 ? On Sunday, August 4, 2013 1:36:24 AM UTC-5, ndave wrote: > > Hi, > > I tried doing what was said but it didn't work out for me. I am trying to > install in windows 8 and it just didn't work and I keep getting the same > err

[web2py] Re: IS web2py good for largescale

2013-08-04 Thread Loïc
Hello Massimo Could you please elaborate the following sentence, and if possible give an example of what we should do/avoid? "built-in system is ok if you have one web2py instance and if you reuse the same keys else you can have a memory leak (keys do not expire with cache.ram)." Thank you --

[web2py] Re: web2py administrative interface

2013-08-04 Thread Annet
> uhm. ok. but ctrl+s will work in any platform web2py is running on, > because it's browser based, not system dependant. ctrl+s is a pretty > standard combination for saving the current document in any text editor > beyond window's notepad. > I am not sure it is on Mac, Pages and TextEdit wa

[web2py] Re: auth.user question

2013-08-04 Thread Massimo Di Pierro
If you are not logged in db.auth_user[auth.user.id] is None. On Sunday, 4 August 2013 09:10:09 UTC-5, Mark Finkelstein wrote: > > I have two lines of code that read as follows: > > if auth.user: > if db.auth_user[auth.user.id]['image']=='' or db.auth_user[auth.user. > id]['image']==None: > >

[web2py] Re: IS web2py good for largescale

2013-08-04 Thread Massimo Di Pierro
To me there are three issues with scalability: - database, it is always the bottle neck but there is no differencd between web2py and rails in principle. They can use the same database architecture. - filesystem. web2py by default uses the filesystem more than rails (to store sessions for example

[web2py] Re: 1071, Specified key was too long; max key length is 767 bytes in 2.6.0-development+timestamp.2013.07

2013-08-04 Thread Massimo Di Pierro
Please open a ticket about this. On Saturday, 3 August 2013 07:06:13 UTC-5, Adi wrote: > > Upgraded from 2.5.1 to 2.6.0, and it seems that auth.wiki is causing this. > If I comment it out, everything else works fine. > > #auth.wiki(resolve=False) > #wiki = Wiki(auth=auth, render='html') > > > Tic

[web2py] Re: more buttons on the SQLFORM, how to add them into templates using form custom layout ...?

2013-08-04 Thread Massimo Di Pierro
I do not understand. :-( On Saturday, 3 August 2013 05:21:22 UTC-5, David Marko wrote: > > I would like to add more buttons to SQLFORM using the syntax below. How > can I address these buttons on template when I render content manualy? For > common submit filed I'm using {{=form.custom.submit}}

[web2py] auth.user question

2013-08-04 Thread Mark Finkelstein
I have two lines of code that read as follows: if auth.user: if db.auth_user[auth.user.id]['image']=='' or db.auth_user[auth.user.id ]['image']==None: Recently, while logged in, I dropped all the tables, refreshed the page and then got an Internal Error saying if db.auth_user[auth.user.id]

[web2py] Re: web2py default controller size and line count

2013-08-04 Thread Anthony
On Sunday, August 4, 2013 7:24:55 AM UTC-4, yunus santur wrote: > hi web2py users i have two questions > > 1) in my application admin application is very very slow during edit > default.py because its size 24Mbyte on disk, i check windows and linux > reaally seems 24MBytes but it has only 611 li

[web2py] Re: how to call a controller funtion on click of a button?

2013-08-04 Thread Anthony
> So the usual button to redirect to another page I use this > > onclick="location.href='{{=URL('gameTime')}}'">Done with my squares > > > What I am trying to do is click a button that does NOT redirect. If I use > a function in defauly.py that has no view in the URL field above, it loads > t

[web2py] web2py default controller size and line count

2013-08-04 Thread yunus santur
hi web2py users i have two questions 1) in my application admin application is very very slow during edit default.py because its size 24Mbyte on disk, i check windows and linux reaally seems 24MBytes but it has only 611 lines really i don't understand . 2) in my applications have 4-5 groups

[web2py] Re: GET request from kendo ui returning an invalid argument

2013-08-04 Thread Simon Ashley
Solution: This _=1375342185703 is appended by jQuery.ajax which the Kendo DataSource uses under the hood. That thing is used as a cache buster (prevents browser caching). The fix is simple - disable jQuery caching: transport: { read: { url: "your service", dataType: "jsonp",

Re: [web2py] Adjusting the width of the textarea

2013-08-04 Thread Anthony
Can you use the browser developer tools to inspect the element and see which CSS rule is active and where it comes from? Also, try disabling Javascript and see if that affects the display. If all else fails, pack a basic app that demonstrates the problem and attach it here. Anthony On Sunday,

[web2py] Re: web2py administrative interface

2013-08-04 Thread Niphlod
uhm. ok. but ctrl+s will work in any platform web2py is running on, because it's browser based, not system dependant. ctrl+s is a pretty standard combination for saving the current document in any text editor beyond window's notepad. On Sunday, August 4, 2013 8:58:53 AM UTC+2, Annet wrote: > >

Re: [web2py] Adjusting the width of the textarea

2013-08-04 Thread Paolo Caruccio
I think that the comment is wrong. Actually, the textarea width is not handled by web2py via js. Modern browsers, except IE, have a textarea resizable and so its width is calculated by browser itself. In this case in order to set a fixed width on all textareas you should set in your custom css