[web2py] Re: Clear memcache on GAE

2010-08-13 Thread Jérémie
Hello again, Thank you for your answers. I had and i still have really spent some time parsing the book and the web2py google groups. Thus, i tried something simplier but which doesn't work either as i would have expected. def makeMe(): import time t =

[web2py] Re: WikiYou - Showcase

2010-08-13 Thread mdipierro
I fill the registration form and shows me the registration form again. No message. On Aug 12, 7:49 pm, Lasiaf fai...@altlimit.com wrote: I actually used rpx first, but I didn't like it much, so I used google account login but then I didn't like it too much too. hehe so I decided to use the

[web2py] Re: web2py FORM, concurrency and failed requests

2010-08-13 Thread mdipierro
I originally misunderstood the issue. I thought the problem was with Rocket. web2py.com runs on Apache+mod_wsgi. In this case Apache decides on chunking, not web2py. It is strange but I do not know what is the Apache policy in this respect. Massimo On Aug 12, 9:59 pm, Jonathan Lundell

[web2py] use crud to display some fields of a table

2010-08-13 Thread dlin
I've a table with fields Field('F1', label='name') Field('F2', label='data') Field('F20', label='xxx') I wish use crud to display 5 random rows of the table, and only display F1, F2. So, here is my code: ids = [x.values()[0] for x in db().select(db.phmap.id).as_list()] idr =

[web2py] Re: web2py FORM, concurrency and failed requests

2010-08-13 Thread mdipierro
These people http://bugs.php.net/bug.php?id=40472 are seeing a similar problem wth apache and php. On Aug 13, 1:59 am, mdipierro mdipie...@cs.depaul.edu wrote: I originally misunderstood the issue. I thought the problem was with Rocket. web2py.com runs on Apache+mod_wsgi. In this case

[web2py] Re: When creating an application in console mode, the databases folder should be created?

2010-08-13 Thread mdipierro
because you used hg to deploy and hg does not version control empty folder. I just fixed it in trunk by adding an empty file in there. On Aug 12, 8:38 pm, Bruno Rocha rochacbr...@gmail.com wrote: Hi, I were playing with Shell mode, to explain some DAL features in a class, I did: code  

[web2py] Re: web2py 1.83.1 is OUT

2010-08-13 Thread mdipierro
yes. sorry. will be fixed with next upgrade. On Aug 12, 11:55 pm, Andrew Thompson andre...@aktzero.com wrote:   On 8/13/2010 12:53 AM, Andrew Thompson wrote: The changelog hasn't made it up to the website. Hmm... Replying to myself too quickly... 1.83.1 is on the page, but it's not broken

[web2py] Createing deployment packages

2010-08-13 Thread huimies
Hi, I'm setting up continuous integration for web2py apps. I couldn't find any recipes for creating deployment packages from command line. Are there any tools available for this or should I just create my own using w2p_pack in gluon.fileutils?

[web2py] Re: use crud to display some fields of a table

2010-08-13 Thread mdipierro
words= db(db.phmap.id0).select(limitby=(0,5),order='random') table =SQLTABLE(words, headers={'phmap.F1':db.phmap.F1.label,phmap.F2:db.phmap.F2.label'}, columns=['phmap.F1',phmap.F2'], truncate=32) On Aug 13, 2:02 am, dlin dlin...@gmail.com wrote: I've a table with fields Field('F1',

[web2py] web2py 3rd edition available in PDF from LULU.com

2010-08-13 Thread mdipierro
http://www.lulu.com/product/ebook/official-web2py-manual/12196616 This is the same content as the online book but converted to PDF. There are significant additions and changes compared to the 2nd edition. - new chapter on components, plugins and plugin_wiki example - many new DAL features

[web2py] Access Control and Basic Authentication ?

2010-08-13 Thread David Marko
http://web2py.com/book/default/chapter/08#Access-Control-and-Basic-Authentication ### does it mean, that both authentication will work together? The default form based will remain working and basic_auth will be available, when client program(some service consumer) will authenticate via basic_auth?

[web2py] Re: use crud to display some fields of a table

2010-08-13 Thread dlin
tks, Massimo, there is a typo order should be orderby in your sample. Could I just define the columns, and let headers automatic get from predefined labels? Because, in fact, I have more fields instead of two. On Aug 13, 3:23 pm, mdipierro mdipie...@cs.depaul.edu wrote: words=

[web2py] Re: Access Control and Basic Authentication ?

2010-08-13 Thread mdipierro
yes On Aug 13, 3:01 am, David Marko dma...@tiscali.cz wrote: http://web2py.com/book/default/chapter/08#Access-Control-and-Basic-Au... ### does it mean, that both authentication will work together? The default form based will remain working and basic_auth will be available, when client

[web2py] Re: use crud to display some fields of a table

2010-08-13 Thread mdipierro
headers=dict((str(c),c.label) for c in db.phmap) On Aug 13, 3:05 am, dlin dlin...@gmail.com wrote: tks,  Massimo,  there is a typo order should be orderby in  your sample. Could I  just define the columns, and let headers automatic get from predefined labels? Because, in fact, I have more

[web2py] Re: use crud to display some fields of a table

2010-08-13 Thread dlin
How can I use shell to try it before modify my web site? ./web2py -S myapp will show the prompt of ipython. But, when I type words= db(db.phmap.id0).select(limitby=(0,5),order='random') it will failed, I guess I must import something. On Aug 13, 4:11 pm, mdipierro mdipie...@cs.depaul.edu

[web2py] display rows with different color

2010-08-13 Thread dlin
I want to change the layout of the displayed form which is produced by SQLTABLE and named as mytable. 1 x 2 a 3 b 4 c 5 d 6 e I wish the odd lines and even lines have different background (in .css instead of server side operation). Is there any one here know how to do it? I wish the

[web2py] Re: use crud to display some fields of a table

2010-08-13 Thread mdipierro
./web2py -S myapp -M -N words= db(db.phmap.id0).select(limitby=(0,5),orderby='random') -M = import models -N = do not run cron On Aug 13, 3:52 am, dlin dlin...@gmail.com wrote: How can I use shell to try it before modify my web site? ./web2py -S myapp  will show the prompt of ipython.

[web2py] Re: display rows with different color

2010-08-13 Thread mdipierro
Add something like this to the view (or the layout): scriptjQuery(tr:odd).css(background-color, #ff);/script On Aug 13, 4:05 am, dlin dlin...@gmail.com wrote: I want to change the layout of the displayed form which is produced by SQLTABLE and named as mytable. 1 x 2 a 3 b 4 c 5 d 6

Re: [web2py] Re: display rows with different color

2010-08-13 Thread Robert O'Connor
Or if the browser supports CSS3: http://www.w3.org/TR/css3-selectors/#nth-child-pseudo that works -- but it styles *ALL* tables... be warned :) -Rob On Fri, Aug 13, 2010 at 5:09 AM, mdipierro mdipie...@cs.depaul.edu wrote: Add something like this to the view (or the layout):

[web2py] Re: Clear memcache on GAE

2010-08-13 Thread mdipierro
Dear Jeremie, I did not write the memcache code myself but I looked into it (gluon/ contrib/memcache/__init__.py). I found this line #key = self.__keyFormat__(key) And I am puzzled by why it is commented. I think it should not be. Can you try uncomment it and see if it works as you

[web2py] Re: Problem with IS_STRONG() and CRYPT() methods

2010-08-13 Thread mdipierro
@elfuogo1, let us know if the problems are solved. On Aug 12, 10:36 pm, mr.freeze nat...@freezable.com wrote: IS_STRONG is failing for a different reason but displaying your error message.  The defaults are: min=8, max=20, upper=1, lower=1, number=1,  special=1 If you remove your error

[web2py] Re: display rows with different color

2010-08-13 Thread mdipierro
mytable['_id']='mytable' scriptjQuery(#mytable tr:odd).css(background-color, #ff);/ script will only do your table (mytable). On Aug 13, 4:14 am, Robert O'Connor robby.ocon...@gmail.com wrote: Or if the browser supports CSS3:http://www.w3.org/TR/css3-selectors/#nth-child-pseudo that

[web2py] Re: Clear memcache on GAE

2010-08-13 Thread Jérémie
Dear Massimo, Thanks for having a look at my issue. Unfortunately, even with the modification, i can't manage to have the get and delete methods working... i don't know if this is important but i am working locally on the GAE dev-app server. i don't know if memcache is working on the same way.

[web2py] problem playing an uploaded audio file

2010-08-13 Thread tiffany
i have defined my table as: db.define_table('songs',Field('name','string'),Field('song_file','upload')) i need to play these song files using embed. what can i do? also how can I create and play playlists... songs of which r also uploaded in the uploads folder thanx in advance :)

[web2py] Re: display rows with different color

2010-08-13 Thread dlin
Tks, but I don't know why it not work on my app. controllers/default.py mytable = SQLTABLE(...) mytable['_id'] = 'mytable' views/default/index.html {{extend 'layout.html'}} scriptjQuery(tr:even).css(background-color, #00);/ script

[web2py] Re: display rows with different color

2010-08-13 Thread dlin
Robert, tks, I'm also interesting about the css3 method. Could you give me a sample css3 code on mytable? On Aug 13, 5:14 pm, Robert O'Connor robby.ocon...@gmail.com wrote: Or if the browser supports CSS3:http://www.w3.org/TR/css3-selectors/#nth-child-pseudo that works -- but it styles *ALL*

[web2py] Re: Clear memcache on GAE

2010-08-13 Thread mdipierro
Now I see the problem. There is a little incompatibility between the way get(), set(),and delete() works in web2py between GAE and non-GAE. On GAE (gluon/contrib/gae_memcache.py cache.memcache('time',lambda:time.ctime(),20) cache.memcache.get(request.application+'/time') (uses the

[web2py] Re: problem playing an uploaded audio file

2010-08-13 Thread mdipierro
Look at the source of this: http://www.web2py.com/appliances/default/show/63 as an example of uploading audio files and playing them with embed. It is a relatively recent apps so uses recent web2py features. On Aug 13, 4:50 am, tiffany vaidehi.3...@gmail.com wrote: i have defined my table as:

[web2py] SQLTABLE failed with new DAL

2010-08-13 Thread sherdim
Good day, ALL! After update in one of old app the error appears: Traceback (most recent call last): File D:\a\w2p\gluon\restricted.py, line 186, in restricted exec ccode in environment File D:/a/w2p/applications/bioforum/views/manage.html, line 165, in module div class=content File

[web2py] Re: SQLTABLE failed with new DAL

2010-08-13 Thread mdipierro
oops bug. fixed in trunk. I will repost web2py 1.83.2 later today or tomorrow. On Aug 13, 5:15 am, sherdim sher...@gmail.com wrote: Good day, ALL! After update in one of old app the error appears: Traceback (most recent call last):   File D:\a\w2p\gluon\restricted.py, line 186, in

[web2py] A bug in SQLHTML.py

2010-08-13 Thread hywang
line 268: values = re.compile('[\w\-:]+').findall(str(value)) if value contains some Chinease charactors , it failed to parse it. eg: value = |eng|汉字| values = re.compile('[\w\-:]+').findall(str(value)) print values #the result is ['eng'], but not ['eng','汉字']

[web2py] Re: A bug in SQLHTML.py

2010-08-13 Thread hywang
| was used to join values, so it can be written as values = re.compile('[^|]+').findall(str(value)) On 8月13日, 下午6时31分, hywang why00...@163.com wrote: line 268: values = re.compile('[\w\-:]+').findall(str(value)) if value contains some Chinease charactors , it failed to parse it. eg: value

[web2py] Re: A bug in SQLHTML.py

2010-08-13 Thread mdipierro
actually, since 1.83.1 the behavior of web2py has changed and both would be buggy. Can you try web2py 1.83.1 and replace that line with values = not isinstance(value,(list,tuple)) and [value] or value Does it work? On Aug 13, 5:37 am, hywang why00...@163.com wrote: | was used to join

[web2py] Eclipse + Web2py = no completion and errors

2010-08-13 Thread Arinté
I really want to use web2py for my app engine page, but I am not well versed in python so I need eclipse to work so I can get autocompletion to work. It seems eclipse doesn't recognize web2py at all. I though I followed the directions at:

[web2py] scripting components

2010-08-13 Thread Miguel Lopes
In order to include scripting in a very dynamic component I'm appending a js file to the response files of every template that uses the component, such as: {{response.files.append(URL(request.application,'static/base_components','view_oppty.js'))}} {{extend 'layout.html'}} However, this has the

[web2py] Re: scripting components

2010-08-13 Thread mdipierro
A few comments/suggestions 1) instead of response.headers['web2py-component-command']=$ ('#show_assoc_contact').click(function(event){...); you can do response.js=jQuery('#show_assoc_contact').click(function(event) {...); Use jQuery instead of '$' since '$ may conflict with non-jquery js

[web2py] Re: scripting components

2010-08-13 Thread David Marko
http://web2pyslices.com/main/slices/take_slice/8 On 13 srp, 13:54, Miguel Lopes mig.e.lo...@gmail.com wrote: In order to include scripting in a very dynamic component I'm appending a js file to the response files of every template that uses the component, such as:

[web2py] Instant Press

2010-08-13 Thread Martin.Mulone
Whats new in Instant Press (now in alpha3)?. Now work in GAE with some issues, that i have to solve. I highly recommend to see the video, its show the new features. http://www.youtube.com/watch?v=_7UpliP6Yko NOTE: The video has some black screens for 6-8 seconds, i dont know why but i think it

[web2py] Re: Instant Press

2010-08-13 Thread mdipierro
fantastic. Would you please post a link on http://web2py.com/appliances ? The video seems to have some black gaps but it could be just me. Massimo On Aug 13, 8:37 am, Martin.Mulone mulone.mar...@gmail.com wrote: Whats new in Instant Press (now in alpha3)?. Now work in GAE with some issues,

[web2py] Re: Clear memcache on GAE

2010-08-13 Thread Jérémie
wow, thanks for that investigation... it works well for the delete statement (which is what i needed) just for information, the get statement returns : A server error occured. Please contact the administrator.. Thank you Massimo for helping me, regards, -- Jérémie On 13 août, 12:11,

[web2py] Re: Instant Press

2010-08-13 Thread mdipierro
could not resist... sorry http://www.reddit.com/r/Python/comments/d0rz8/instant_press_gae_blogging_system_with_screenshots/ On Aug 13, 8:37 am, Martin.Mulone mulone.mar...@gmail.com wrote: Whats new in Instant Press (now in alpha3)?. Now work in GAE with some issues, that i have to solve. I

[web2py] Not able to embed audio files in web2py

2010-08-13 Thread titan
I want to embed an audio file in my web-page. I am using the following code :- mp3_file=URL(r=request,c='static',f='1.mp3') def test_embed(): embed_mp3=XML('embed src=%s autoplay=false loop=false /' %mp3_file) return dict(mp3=embed_mp3) However this is not working . I can't get the file

[web2py] Error trying to run db queries from on-line shell

2010-08-13 Thread mwolfe02
I'm trying to run a very simple select query from the built-in web- based shell, but I keep getting the following error: The cursor's connection has been closed. Here is the full traceback: Traceback (most recent call last): File input, line 1, in module File ...\web2py\gluon\sql.py, line

[web2py] Re: Not able to embed audio files in web2py

2010-08-13 Thread mdipierro
If they are in db you can do mp3_file=URL('download',args=filename) def test_embed(): embed_mp3=XML('embed src=%s autoplay=false loop=false /' %mp3_file) return dict(mp3=embed_mp3) On Aug 13, 8:15 am, titan gaurav9maheshw...@gmail.com wrote: I want to embed an audio file in my web-page.

[web2py] Re: Error trying to run db queries from on-line shell

2010-08-13 Thread mdipierro
nothing. this is a known bug which we think is related to timeout in keeping the sqlite connection open. For now use the normal shell. On Aug 13, 8:59 am, mwolfe02 michael.joseph.wo...@gmail.com wrote: I'm trying to run a very simple select query from the built-in web- based shell, but I keep

Re: [web2py] Re: Error trying to run db queries from on-line shell

2010-08-13 Thread Michael Wolfe
Ok. If it helps with the troubleshooting, I am getting the error when connecting to SQL Server, not SQLite. Not sure if the problem is db backend-specific, but I thought I'd throw it out there. Thanks for the quick response. On Fri, Aug 13, 2010 at 10:03 AM, mdipierro mdipie...@cs.depaul.edu

[web2py] How can I disable migration for auth models ???

2010-08-13 Thread David Marko
How can I disable migrations for auth models which are created by auth.define_tables() ? David

[web2py] Re: Error trying to run db queries from on-line shell

2010-08-13 Thread mdipierro
It may be an error in keeping the transaction open too long. Anyway. it helps... i will take one more look asap. On Aug 13, 9:06 am, Michael Wolfe michael.joseph.wo...@gmail.com wrote: Ok.  If it helps with the troubleshooting, I am getting the error when connecting to SQL Server, not SQLite.  

[web2py] Re: How can I disable migration for auth models ???

2010-08-13 Thread mdipierro
auth.define_tables(migrate=False) On Aug 13, 9:07 am, David Marko dma...@tiscali.cz wrote: How can I disable migrations for auth models which are created by auth.define_tables() ? David

Re: [web2py] Re: web2py FORM, concurrency and failed requests

2010-08-13 Thread Jonathan Lundell
On Aug 12, 2010, at 11:59 PM, mdipierro wrote: I originally misunderstood the issue. I thought the problem was with Rocket. web2py.com runs on Apache+mod_wsgi. In this case Apache decides on chunking, not web2py. It is strange but I do not know what is the Apache policy in this respect.

[web2py] blocks included displayed twice.

2010-08-13 Thread Lionel Barret
The content of the blocks if coming from an included view are displayed twice. This is the situation I am in. - Main_layout.html includes blocks.html. - Index.html extends main_layout.html, overriding the blocks defined in blocks.html. In this cas, the blocks are displayed once as blocks and

Re: [web2py] Re: Problem with IS_STRONG() and CRYPT() methods

2010-08-13 Thread Jonathan Lundell
On Aug 13, 2010, at 2:19 AM, mdipierro wrote: @elfuogo1, let us know if the problems are solved. Following up on Mr Freeze's comment, IS_STRONG is a bit problematical, or at least it doesn't fit so well into the pattern of the other validators. There's no good way to translate its messages,

[web2py] Re: Instant Press

2010-08-13 Thread Martin.Mulone
When i log in http://web2py.com/appliances, redirect me to: http://127.0.0.1:8000/appliances/default/user/login and i cannot log in On Aug 13, 10:55 am, mdipierro mdipie...@cs.depaul.edu wrote: fantastic. Would you please post a link onhttp://web2py.com/appliances? The video seems to have some

Re: [web2py] Re: scripting components

2010-08-13 Thread Miguel Lopes
Yes your explanation makes perfect sense, and that solves my encapsulation problem. Thank you. You mention normal web2py controllers and views, what would the other kind be? Miguel On Fri, Aug 13, 2010 at 1:19 PM, mdipierro mdipie...@cs.depaul.edu wrote: 2) You can include a js in a component

[web2py] Re: WikiYou - Showcase

2010-08-13 Thread Lasiaf
maybe when you tried it, the version I uploaded was the one with invalid routes(maybe development mode). I can't think of any reason why would it fail. Also can you answer my first and 3rd questions? Thanks On Aug 13, 12:55 am, mdipierro mdipie...@cs.depaul.edu wrote: I fill the registration

[web2py] Re: Access Control and Basic Authentication ?

2010-08-13 Thread David Marko
It doesnt work for me or I miss something. I have added following line into my db.py auth.settings.allow_basic_login = True Now I'm trying post data to some API method from my service consumer code. But it doesnt authenticate but instead the response I'm getting is html page with login form. Is

[web2py] Re: Instant Press

2010-08-13 Thread mdipierro
please try again. there was a wrong settings On Aug 13, 9:59 am, Martin.Mulone mulone.mar...@gmail.com wrote: When i log inhttp://web2py.com/appliances, redirect me to:http://127.0.0.1:8000/appliances/default/user/loginand i cannot log in On Aug 13, 10:55 am, mdipierro

[web2py] Re: scripting components

2010-08-13 Thread mdipierro
It would be the use of components in plugin_wiki/page pages `` name: oppty_contacts ``:widget in this case you do not need to worry about response.fields.append() because the plugin is rendered before it is embedded in view. On Aug 13, 10:01 am, Miguel Lopes mig.e.lo...@gmail.com wrote:

Re: [web2py] Re: Problem with IS_STRONG() and CRYPT() methods

2010-08-13 Thread Nathan Freeze
Indeed. This needs some work. I will send a patch soon. On Aug 13, 2010 10:43 AM, Jonathan Lundell jlund...@pobox.com wrote: On Aug 13, 2010, at 2:19 AM, mdipierro wrote: @elfuogo1, let us know if the problems are solved. ... Following up on Mr Freeze's comment, IS_STRONG is a bit

[web2py] Behaviour of extend/layouts changed in 1.82.1?

2010-08-13 Thread Paul Gerrard
Hi, I have a lot of views in my system with the following code at the top of the view html: {{import string}} {{if request.vars and 'printMode' in request.vars:}} {{printMode=request.vars['printMode']}} {{else:}} {{printMode=None}} {{pass}} {{if printMode:}} {{extend 'layoutPrint.html'}}

Re: [web2py] Re: scripting components

2010-08-13 Thread Miguel Lopes
I wonder if this would also work with block templates - supposing block templates are integrated before the header is set. I remember recently reading about block templates. Have this been integrated in the reference distribution? Thank you so much for all the great help. Miguel On Fri, Aug

[web2py] widget.py: -f folder

2010-08-13 Thread Jonathan Lundell
Remind me, please, what the function of the -f folder command line option is. All the other startup method appear to use the location of the startup file (eg wsgihandler.py).

Re: [web2py] Instant Press

2010-08-13 Thread Bruno Rocha
Deploying on GAE this will run under BigTable db,so I need to register a new user, how I'll define that the new user is an administrator? is there any way to specify a master user? or ad...@mail.com is not on db? 2010/8/13 Martin.Mulone mulone.mar...@gmail.com Whats new in Instant Press (now

[web2py] Row's identity

2010-08-13 Thread szabba
Are two Row objects representing the same row in the db, ie: row1 = db.table[row_id] row2 = db.table[row_id] if row1 is row2: return 'Always true?' And is it the same on GAE?

[web2py] Re: Instant Press

2010-08-13 Thread Martin.Mulone
No need a new user. Log in with this user (is created by default): User: ad...@mail.com Password: admin123 this is user is in the admin group. In future not implemented yet, you are going to assign a user as admin. You can change your password in your profile also. Or if you want you can change

[web2py] Re: Instant Press

2010-08-13 Thread Martin.Mulone
Now working but i am a bit lost, how do i post the app?, i dont see any menu or link. On Aug 13, 12:17 pm, mdipierro mdipie...@cs.depaul.edu wrote: please try again. there was a wrong settings On Aug 13, 9:59 am, Martin.Mulone mulone.mar...@gmail.com wrote: When i log

Re: [web2py] blocks included displayed twice.

2010-08-13 Thread Thadeus Burgess
Its a design feature. In the original design talks of the new layout it was decided blocks should be ignored/not supported for included templates. Mainly because it is not obvious how the dependencies between index.html, layout.html and includes.html should be handled, which block definition gets

[web2py] I fixed a bug in web2py!

2010-08-13 Thread Jason Brower
Oh yeah! Haven't a clue how to do a patch file, but here is the change... Line 33 in the appadmin.html [ {{=A(str(T('insert new'))+''+table,_href=URL(r=request,f='insert',args=[db,table]))}} ] should be: [ {{=A(str(T('insert new

Re: [web2py] Behaviour of extend/layouts changed in 1.82.1?

2010-08-13 Thread Thadeus Burgess
Odd... it should *technically* extend from the last seen version of extend regardless of where it is located. Also, I don't understand how this worked pre 1.80 either. The templates are parsed before any of the python statements are even known or executed, this just should have never worked. I

[web2py] Re: scripting components

2010-08-13 Thread mdipierro
yes On Aug 13, 10:33 am, Miguel Lopes mig.e.lo...@gmail.com wrote: I wonder if this would also work with block templates -  supposing block templates are integrated before the header is set. I remember recently reading about block templates. Have this been integrated in the reference

[web2py] Re: Row's identity

2010-08-13 Thread mdipierro
Probably not. On Aug 13, 11:08 am, szabba isza...@gmail.com wrote: Are two Row objects representing the same row in the db, ie: row1 = db.table[row_id] row2 = db.table[row_id] if row1 is row2:     return 'Always true?' And is it the same on GAE?

[web2py] Re: Instant Press

2010-08-13 Thread mdipierro
http://web2py.com/appliances/default/edit I need to add a link On Aug 13, 11:24 am, Martin.Mulone mulone.mar...@gmail.com wrote: Now working but i am a bit lost, how do i post the app?, i dont see any menu or link. On Aug 13, 12:17 pm, mdipierro mdipie...@cs.depaul.edu wrote: please try

[web2py] Re: Instant Press

2010-08-13 Thread mdipierro
Ignore previous email: http://web2py.com/appliances/default/edit/0 On Aug 13, 11:24 am, Martin.Mulone mulone.mar...@gmail.com wrote: Now working but i am a bit lost, how do i post the app?, i dont see any menu or link. On Aug 13, 12:17 pm, mdipierro mdipie...@cs.depaul.edu wrote: please

[web2py] Re: I fixed a bug in web2py!

2010-08-13 Thread mdipierro
Sorry. I do not see the difference On Aug 13, 11:26 am, Jason Brower encomp...@gmail.com wrote: Oh yeah!  Haven't a clue how to do a patch file, but here is the change... Line 33 in the appadmin.html       [ {{=A(str(T('insert

[web2py] global name 'psycopg2' is not defined

2010-08-13 Thread Dave O
I used this script (http://code.google.com/p/web2py/source/browse/ scripts/setup-web2py-ubuntu.sh) to install web2py on a fresh linode.com VPS with Lucid. I created my postgres user and database as outlined in the web2py manual (http://web2py.com/book/default/chapter/ 11#PostgreSQL). When I try

Re: [web2py] Re: I fixed a bug in web2py!

2010-08-13 Thread Jason Brower
It was 'insert new' and now it's 'insert new ' Small one, but important for that polished look. BR, Jason Brower On Fri, 2010-08-13 at 09:39 -0700, mdipierro wrote: Sorry. I do not see the difference On Aug 13, 11:26 am, Jason Brower encomp...@gmail.com wrote: Oh yeah! Haven't a clue how

Re: [web2py] Re: I fixed a bug in web2py!

2010-08-13 Thread Thadeus Burgess
w00t -- Thadeus On Fri, Aug 13, 2010 at 11:52 AM, Jason Brower encomp...@gmail.com wrote: It was 'insert new' and now it's 'insert new ' Small one, but important for that polished look. BR, Jason Brower On Fri, 2010-08-13 at 09:39 -0700, mdipierro wrote: Sorry. I do not see the

[web2py] Re: Problem with IS_STRONG() and CRYPT() methods

2010-08-13 Thread elfuego1
I did as mr.freeze suggested and I added values for all parameters: db.auth_user.password.requires = [IS_STRONG(min=8,max=None,upper=None,lower=None,special=None,number=None,error_message='Too short'), CRYPT(auth.settings.hmac_key)] It helped with my first problem. I don't get error_message any

Re: [web2py] Instant Press

2010-08-13 Thread Bruno Rocha
Got Error on GAE (rochacbruno.appspot.com), there is any forum, group or bug tacking about Instant Press? 1. 1. 08-13 11:15AM 21.583 / 500 6708ms 9277cpu_ms 6691api_cpu_ms 0kb Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; pt-BR; rv:1.9.2.8) Gecko/20100722

Re: [web2py] Re: WikiYou - Showcase

2010-08-13 Thread Bruno Rocha
Thats opensource? 2010/8/13 Lasiaf fai...@altlimit.com maybe when you tried it, the version I uploaded was the one with invalid routes(maybe development mode). I can't think of any reason why would it fail. Also can you answer my first and 3rd questions? Thanks On Aug 13, 12:55 am,

[web2py] Re: Instant Press

2010-08-13 Thread Martin.Mulone
On Aug 13, 3:21 pm, Bruno Rocha rochacbr...@gmail.com wrote: Got Error on GAE (rochacbruno.appspot.com), there is any forum, group or bug tacking  about Instant Press? yes, http://code.google.com/p/instant-press/ I have mine working with no problem in

[web2py] Re: Access Control and Basic Authentication ?

2010-08-13 Thread David Marko
Is there anyone who succesfully use basic auth for services? can you share you experience, how did you get things working? David On 13 srp, 17:05, David Marko dma...@tiscali.cz wrote: It doesnt work for me or I miss something. I have added following line into my db.py

Re: [web2py] Re: Instant Press

2010-08-13 Thread Bruno Rocha
I am using web2py 1.83.1 and InstantPressAlpha3.w2p, deployed with AppEngineLaucher4Mac, and raises error (rochacbruno.appspot.com). I have to change something before deploying to GAE? 2010/8/13 Martin.Mulone mulone.mar...@gmail.com On Aug 13, 3:21 pm, Bruno Rocha rochacbr...@gmail.com wrote:

[web2py] Re: Instant Press

2010-08-13 Thread Martin.Mulone
My steps: (I am in linux) I download the last version of appengine in http://googleappengine.googlecode.com/files/google_appengine_1.3.5.zip and the last version of web2py. I exctract appengine and web2py,and then I move web2py to google_appengine directory, to have google_appengine/web2py then

[web2py] Page layout plugin layout.html include statement question

2010-08-13 Thread Christopher Steel
I created a layout plugin using the instructions in the live Web2py book (http://web2py.com/book/default/chapter/05#Page-Layout) and noticed that the {{include}} no longer functions as well as login register and other links. By removing the ((extends }} statement in default/index.html you can get

[web2py] Re: Page layout plugin layout.html include statement question

2010-08-13 Thread Christopher Steel
Gee wiz I posted the wrong link to the Web2py manual, here is the correct reference... http://web2py.com/book/default/chapter/13?search=plugin#Layout-plugins C On Aug 13, 4:03 pm, Christopher Steel chris.st...@gmail.com wrote: I created a layout plugin using the instructions in the live

[web2py] Re: Page layout plugin layout.html include statement question

2010-08-13 Thread Christopher Steel
lol, splitting views/plugin_layout_themename in two and putting something like this in views/layout.html works great if you need a quick hack... {{include 'plugin_layout_voa/top_layout.html'}} {{include}} {{include 'plugin_layout_voa/bottom_layout.html'}} Cheers Chris On Aug 13, 4:08 pm,

[web2py] Re: I fixed a bug in web2py!

2010-08-13 Thread weheh
+1

[web2py] Re: Instant Press

2010-08-13 Thread howesc
i have not tried it, but i suspect that the problem that Bruno is having is that index.yaml is not updated. since index.yaml lives at the top-level directory of web2py it is not included in the packaged application. GAE dev server will generate the proper index.yaml file if you run through all

Re: [web2py] Re: Instant Press

2010-08-13 Thread Bruno Rocha
How this could be related to the error message? File /base/data/home/apps/rochacbruno/1.344059879837984861/applications/init/models/main.py, line 213, in get_last_pages last_posts = db(query).select(db.posts.ALL,orderby=~db.posts.published_on,limitby=(limit_inf, limit_sup)) 2010/8/13 howesc

[web2py] Re: Behaviour of extend/layouts changed in 1.82.1?

2010-08-13 Thread Paul Gerrard
I suspected that I had done something that worked 'by chance' and the new version caught me out. :) Thanks for the tip - I'll try it. Paul G On Aug 13, 5:30 pm, Thadeus Burgess thade...@thadeusb.com wrote: Odd... it should *technically* extend from the last seen version of extend regardless

Re: [web2py] global name 'psycopg2' is not defined

2010-08-13 Thread Alexandre Andrade
You restart the webserver after installng psycopg2? 2010/8/13 Dave O oeyonl...@gmail.com I used this script (http://code.google.com/p/web2py/source/browse/ scripts/setup-web2py-ubuntu.shhttp://code.google.com/p/web2py/source/browse/%0Ascripts/setup-web2py-ubuntu.sh) to install web2py on a

[web2py] Re: Problem with IS_STRONG() and CRYPT() methods

2010-08-13 Thread mdipierro
can you try print CRYPT(auth.settings.hmac_key)('hello world') what do you get? Did you set auth.settings.hmac_key='sha512:somerandompasphrase' On Aug 13, 12:39 pm, elfuego1 elfue...@gmail.com wrote: I did as mr.freeze suggested and I added values for all parameters:

[web2py] Running web2py and lighttpd in remote server.

2010-08-13 Thread wafto
Hi! I am having problems witn Invalid request. server.port = 81 server.bind = 0.0.0.0 #server.event-handler = freebsd-kqueue server.modules = ( mod_access, mod_rewrite, mod_fastcgi, mod_accesslog,

[web2py] PAPERBACK web2py book

2010-08-13 Thread mdipierro
The 3rd edition of the book is finally available in paperback. http://www.lulu.com/product/paperback/web2py-(3rd-edition)/12199578 The 3rd edition has 40% more text and it is 30% cheaper than the 2nd edition. Massimo

[web2py] Re: Problem with IS_STRONG() and CRYPT() methods

2010-08-13 Thread elfuego1
Requirements for password field in db.py file are as follows: db.auth_user.password.requires = [IS_STRONG(min=8,max=None,upper=None,lower=None,special=None,number=None,error_message='Too short'), CRYPT(auth.settings.hmac_key)] there are aslo defined these parameters: auth.settings.controller =

[web2py] Re: Instant Press

2010-08-13 Thread ra3don
Awesome work! Keep it up on this, it's getting better fast! On Aug 13, 8:37 am, Martin.Mulone mulone.mar...@gmail.com wrote: Whats new in Instant Press (now in alpha3)?. Now work in GAE with some issues, that i have to solve. I highly recommend to see the video, its show the new features.

[web2py] Parameters GET or POST.

2010-08-13 Thread FERNANDO VILLARROEL
Dear All. How i can pass parameters between forms with POST or GET? Regards.

Re: [web2py] Parameters GET or POST.

2010-08-13 Thread Thadeus Burgess
request.post_vars request.get_vars request.vars -- Thadeus On Fri, Aug 13, 2010 at 10:49 PM, FERNANDO VILLARROEL fvillarr...@yahoo.com wrote: Dear All. How i can pass parameters between forms with POST or GET? Regards.

[web2py] Re: global name 'psycopg2' is not defined

2010-08-13 Thread Dave O
Oh man, that was it! Thanks so much. -Dave On Aug 13, 3:07 pm, Alexandre Andrade alexandrema...@gmail.com wrote: You restart the webserver after installng psycopg2? 2010/8/13 Dave O oeyonl...@gmail.com I used this script (http://code.google.com/p/web2py/source/browse/

  1   2   >