[web2py] Re: Bug or break with backwards compatibility?

2010-10-23 Thread mdipierro
Why keep them in separate files? You may also want to check the new {{block name}}..{{end}} feature. It is described in the book. On Oct 24, 1:10 am, b00m_chef wrote: > My desired result was achieved...Thanks to your explanation above. I > wanted to have 1 html file linking the two header.html an

[web2py] Re: Bug or break with backwards compatibility?

2010-10-23 Thread b00m_chef
My desired result was achieved...Thanks to your explanation above. I wanted to have 1 html file linking the two header.html and footer.html files. This example would be good to have in the book as it really shows how the extend & includes work...at least it explained it better for me (the book's ex

[web2py] Re: Bug or break with backwards compatibility?

2010-10-23 Thread mdipierro
If this worked was a bug. You cannot extend two views. You can do this: layout.html {{include}} main.html {{extend 'layout.html'}} my body stuff here Or you can do this: header.html footer.html main.html {{include 'header.html'}} my body stuff here {{include 'footer.html'}} You can ha

[web2py] Re: Generically accessing the results of select

2010-10-23 Thread ron_m
A couple of comments that I hope might help. The rows is a dict so if you apply the keys() function you get a list of keys or values returns a list of values under the keys. rows = big_hairy_select_with_joins for row in rows: for table in row.values() for field in table.values() which is

[web2py] Bug or break with backwards compatibility?

2010-10-23 Thread b00m_chef
I noticed my app from a few releases back stopped working with regard to the view. I had a file that extended 2 files (a header.html, and a footer.html), it then included (in-between the 2 extends) a body. Only the last extend will execute in the below main.html file in the current release (1.87.3

[web2py] Re: Generically accessing the results of select

2010-10-23 Thread mdipierro
you can do this: results = list() for row in big_long_hairy_select_with_joins_and_stuff vals=list() for f in rows.colnames: vals.append(row[f.split('.')[1]) results.append(dict(id=row[rows.colnames[0].split('.') [1]],cell=vals)) On Oct 23, 11:08 pm, BigBaaadBob wrote: > I m

[web2py] Re: Generically accessing the results of select

2010-10-23 Thread BigBaaadBob
I must be expressing myself poorly. I'm saying that if the dal (and sql) Row class had a method like this: def column(self, colname): (table, field) = colname.split('.') return self[table][field] I could do this (which is what jqGrid wants): results = list() for row in big_long_hairy_se

Re: [web2py] Re: Administration control panel and production sites

2010-10-23 Thread Branko Vukelic
On Sun, Oct 24, 2010 at 2:47 AM, mdipierro wrote: > Yes. You may want to read this recent thread: > > http://groups.google.com/group/web2py/browse_thread/thread/f0ac5c1d34480565 Thanks. That's awesome! -- Branko Vukelić bg.bra...@gmail.com stu...@brankovukelic.com Check out my blog: http://w

[web2py] Re: Administration control panel and production sites

2010-10-23 Thread mdipierro
Yes. You may want to read this recent thread: http://groups.google.com/group/web2py/browse_thread/thread/f0ac5c1d34480565 On Oct 23, 6:42 pm, Branko Vukelic wrote: > I've skimmed through the book, and I'm reading the part about > deployment, so I have a couple of questions. > > 1. Can multiple

[web2py] Administration control panel and production sites

2010-10-23 Thread Branko Vukelic
I've skimmed through the book, and I'm reading the part about deployment, so I have a couple of questions. 1. Can multiple sites be served on their own domains using Rocket? 2. How can one take advantage of super-easy app management in the administration section? Thanks in advance. Regards, --

Re: [web2py] Re: Link-pass data to new view via session not on URL

2010-10-23 Thread Branko Vukelic
On Sun, Oct 24, 2010 at 2:17 AM, cjrh wrote: > On Oct 24, 1:56 am, cjrh wrote: >> My tests below doesn't seem to permanently update the session object >> inside setnum(), even though request.args does contain the number sent >> by ajax. > > Ok, I figured out that the $.ajax() call doesn't send a

[web2py] Re: web2py wizard (alpha) is here

2010-10-23 Thread mart
Hi, thanks for the reply, it does make sense. And more params is always a good thing:) so, a "menu and stuff" injecting script, eh? how interesting... :) Thanks, Mart On Oct 23, 6:45 pm, mdipierro wrote: > The problem is that layouts are not built my me. The come form free > css layouts and

[web2py] Re: Link-pass data to new view via session not on URL

2010-10-23 Thread cjrh
On Oct 24, 1:56 am, cjrh wrote: > My tests below doesn't seem to permanently update the session object > inside setnum(), even though request.args does contain the number sent > by ajax. Ok, I figured out that the $.ajax() call doesn't send a cookie, so the session object inside setnum() is an en

Re: [web2py] Re: Hosting service for web2py

2010-10-23 Thread Jose Luna
Thx for all the options :D 2010/10/23 Luci3n > You could use google appengine, it's free and web2py runs on it see > docs > > On Oct 23, 4:43 am, José Luna Venezuela wrote: > > Hi i whant to know what hosting provider offer suport for web2py or i > > need to have a vps if i whant to make a web

[web2py] Link-pass data to new view via session not on URL

2010-10-23 Thread cjrh
At the risk of asking a stupid question: I have a table of links. There is a bit of data associated with each link. I want to have that bit of data available in the controller function that is being referred-to in the link, but I don't want to pass anything to do with that data via the URL.T

[web2py] Re: Plugins system (again)

2010-10-23 Thread b00m_chef
On Oct 23, 4:09 pm, mdipierro wrote: > The rationale is complex and it does not exclude that in future we > will have plugins with a different folder structure. But consider > layout plugins (http://web2py.com/layouts). They need to overwite > views/layout.html. They would not fit into the folde

Re: [web2py] Re: bug or backward incompatibility for datetime fields

2010-10-23 Thread Michele Comitini
Do you have correct locales on your browser? 2010/10/24 Marco Prosperi : > > Still doesn't work: I get an exception and, moreover, the popping up > calendar widget is in English and not in Italian (October instead of > Ottobre) > > Marco > >

[web2py] Re: bug or backward incompatibility for datetime fields

2010-10-23 Thread Marco Prosperi
Still doesn't work: I get an exception and, moreover, the popping up calendar widget is in English and not in Italian (October instead of Ottobre) Marco

[web2py] Re: file / directory structure ?

2010-10-23 Thread mdipierro
If they are public they should go in static. If they are private they should go in private. On Oct 23, 6:19 pm, Stef Mientki wrote: > hello, > > triggered by the Plugin systems discussion, > I wondered what's the best location to store PyJamas files. > > at the moment I've chozen this structure >

[web2py] file / directory structure ?

2010-10-23 Thread Stef Mientki
hello, triggered by the Plugin systems discussion, I wondered what's the best location to store PyJamas files. at the moment I've chozen this structure - static - PyJamas_Main_Source_File.py - PyJamas - all the files generated by the pyjamas compiler (including necessary picture

[web2py] Re: Plugins system (again)

2010-10-23 Thread mdipierro
The rationale is complex and it does not exclude that in future we will have plugins with a different folder structure. But consider layout plugins (http://web2py.com/layouts). They need to overwite views/layout.html. They would not fit into the folder structure. Also if a plugin were to define a f

[web2py] Plugins system (again)

2010-10-23 Thread b00m_chef
I like web2py more than django because it has everything django has, but somehow I feel it was designed to contain those features from the get-go. In django everything feels like it was an after-thought, and the community feels extremely set in their ways to change anything. One thing, thought, th

[web2py] building an invoicing app

2010-10-23 Thread newnomad
Hello, I am completely new to web2py, with a design (xhtml css jquery) background, so not a real programmer, yet (except for xslt). I want to build a simple manual invoicing application that enables website visitors to create their own client-accounts containing their address. So I would input th

[web2py] Re: Powered by web2py

2010-10-23 Thread mdipierro
In few minutes I will give you will editor access On Oct 23, 5:30 pm, Anthony wrote: > Note, I created a free account atwww.thumbalizr.com, and if I log in > and create a thumbnail using the web interface (rather than the API), > I don't get that "powered by thumbalizr.com" sticker on the ima

[web2py] Re: Powered by web2py

2010-10-23 Thread mdipierro
Me neither. Spelling mistake. On Oct 23, 12:22 am, Anthony wrote: > Also, is the app atwww.web2py.com/surveysupposed to be called > "SurveyCould" or "SurveyCloud" (it currently says the former -- > doesn't quite make sense to me)? > > On Oct 22, 10:58 pm, mdipierro wrote: > > > This was done by

[web2py] Re: web2py wizard (alpha) is here

2010-10-23 Thread mdipierro
The problem is that layouts are not built my me. The come form free css layouts and a script of mine that injected menus and stuff in them. We do not have manpower to go through them one by one and edit them. But we could have a ez.css layout that takes extra parameters. Massimo On Oct 23, 1:11 

[web2py] Re: web2py wizard (alpha) is here

2010-10-23 Thread mdipierro
The wizard data is already attached to the session. You can go back and forth to the wizard and unless you got o page zero it remembers its state. When you "generate" is saves the state in a pickle within the newly created app. If you open the wizard again on the app, it reverts to that state.

[web2py] Re: Powered by web2py

2010-10-23 Thread Anthony
Note, I created a free account at www.thumbalizr.com, and if I log in and create a thumbnail using the web interface (rather than the API), I don't get that "powered by thumbalizr.com" sticker on the image. On Oct 22, 10:58 pm, mdipierro wrote: > This was done by the wizard and it is already bett

Re: [web2py] How to upload/process data file in GAE?

2010-10-23 Thread Miguel Goncalves
Few options I can think of: 1- use xmlrpc to upload the content of your file. Store it in a variable and process it right there. 2- have a table (well field in a table) dedicated to store the content of your file. Once it is updloaded, process it and empty the field. -Miguel On Fri, Oct 22, 201

Re: [web2py] Re: web2py wizard (alpha) is here

2010-10-23 Thread Thadeus Burgess
Why not attach the wizard data to the session? -- Thadeus On Sat, Oct 23, 2010 at 1:11 PM, mart wrote: > Hi Massimo, > > Yeah, I guess it was kid of late... I'll try again, in shorter > version (or at least in less badly organized thoughts): > > * great wizard. options are huge as to where

Re: [web2py] SO_REUSEADDR

2010-10-23 Thread Michele Comitini
On some systems I experimented you can "wake up" the port in TIME_WAIT state by trying to open a connection to it (i.e. by telnet localhost 80) 2010/10/23 Jonathan Lundell : > On Oct 23, 2010, at 7:54 AM, mdipierro wrote: >> >> I am teaching a class on Advanced network programming in C?? (nothing

[web2py] Re: remote admin access errors

2010-10-23 Thread Triquetra
Thank you, that worked. I also had to create a symbolic link (parameters_443.py) pointing to the password file (parameters_8000.py) in order to get rid of the "unable to access password file" error. On Oct 23, 12:44 pm, "Roberto De Ioris" wrote: > > Thank you for the quick reply. > > > I'm not s

[web2py] SO_REUSEADDR

2010-10-23 Thread Jonathan Lundell
On Oct 23, 2010, at 7:54 AM, mdipierro wrote: > > I am teaching a class on Advanced network programming in C?? (nothing > web2py related) and students are reporting to me that Mac OSX takes a > long time to release a port after the program creating the socket has > been killed or crashed. The dela

[web2py] Re: GUI widget web2py server

2010-10-23 Thread ron_m
Is this the cause of the slow close and the underlying purpose for it? http://www.freesoft.org/CIE/RFC/1323/24.htm I believe most systems allow this timer to be adjusted by registry in Windows and /proc in Linux, not sure on Mac If the server does the bind call with SO_REUSEADDR for the listen p

[web2py] Re: web2py wizard (alpha) is here

2010-10-23 Thread mart
Hi Massimo, Yeah, I guess it was kid of late... I'll try again, in shorter version (or at least in less badly organized thoughts): * great wizard. options are huge as to where it can lead. * Would be great if we could store/save the data we set in the wizard in a user_wiz_templates_GENERIC.tabl

[web2py] Re: Apache wsgi virtualhost configuration for multiple web2py sites

2010-10-23 Thread Eric Vicenti
> Going back to my original question - can anyone provide a domain specific > Apache virtual host file that achieves what Massimo's routes.pu settings do > and does not require a separate instance of web2py for each domain. (I'm > not sure how to achieve this from what VP posted.) I am also inter

Re: [web2py] Re: remote admin access errors

2010-10-23 Thread Roberto De Ioris
> Thank you for the quick reply. > > I'm not sure how to check whether uwsgi is setting the > wsgi_url_scheme. A quick search of this group and the uwsgi wiki > provided no direction. How can I check this? There are two (very old) threads on the official uWSGI list about https and scheme. uWSG

[web2py] Re: remote admin access errors

2010-10-23 Thread Triquetra
Thank you for the quick reply. I'm not sure how to check whether uwsgi is setting the wsgi_url_scheme. A quick search of this group and the uwsgi wiki provided no direction. How can I check this? On Oct 22, 11:36 pm, mdipierro wrote: > Look into admin/models/access.py > > This is how web2[y ch

[web2py] Re: Supporters of the current logo concept

2010-10-23 Thread Christopher Steel
lol! Thanks everyone, great work. On Oct 22, 4:10 pm, cjrh wrote: > On Oct 22, 9:20 pm, Thadeus Burgess wrote: > > > I think we just need one more stage of logo submissions and then voting > > (voting can only happen after the submission deadline), then there is a > > voting deadline. > > How i

[web2py] Re: To Massimo

2010-10-23 Thread mdipierro
Hi Debebe, It is still under testing but you can get it here: It comes with admin under the "nightly build" http://web2py.com/examples/default/download Massimo On Oct 23, 10:28 am, debebe asefa wrote: > Where can I get the wizard application, please send me > debe...@yahoo.com

[web2py] To Massimo

2010-10-23 Thread debebe asefa
Where can I get the wizard application, please send me debe...@yahoo.com

[web2py] Re: web2py wizard (alpha) is here

2010-10-23 Thread mdipierro
On my todo list 1) rewrite the plugins app similar to http://web2py.com/layouts 2) allow wizard to download of plugins as it downloads 3) Give the wizard something like the plugin_wiki "widget builder" that discovers available plugins and allows embedding components in pages. 4) Download seman

[web2py] Re: Hosting service for web2py

2010-10-23 Thread Luci3n
You could use google appengine, it's free and web2py runs on it see docs On Oct 23, 4:43 am, José Luna Venezuela wrote: > Hi i whant to know what hosting provider offer suport for web2py or i > need to have a vps if i whant to make a web page? > > Thx

[web2py] Re: web2py wizard (alpha) is here

2010-10-23 Thread mdipierro
I am not sure I fully understand but this is not because of your nice explanation. Rather me not being fully awake yet. What it does already: - The wizard saves the state in /wizard.metadata and if you try reopen that app, it will revert to that state, which you can modify - The wizard does not re

[web2py] Re: GUI widget web2py server

2010-10-23 Thread mdipierro
I am teaching a class on Advanced network programming in C?? (nothing web2py related) and students are reporting to me that Mac OSX takes a long time to release a port after the program creating the socket has been killed or crashed. The delay seems to be as large as one minute. During this time th

[web2py] Re: Hosting service for web2py

2010-10-23 Thread cjrh
On Oct 23, 4:43 am, José Luna Venezuela wrote: > Hi i whant to know what hosting provider offer suport for web2py or i > need to have a vps if i whant to make a web page? You can use any (Linux) host that provides: 1) SSH access 2) FastCGI & .htaccess Many, many hosts provide these. If these t

[web2py] Re: request for fcgi users

2010-10-23 Thread cjrh
On Oct 22, 11:49 pm, Jonathan Lundell wrote: > Just a reminder: a change to routes.py won't be noticed until you restart > web2py (or explicitly do a reload). Yes, I touch the web2py.fcgi file so that Apache restarts the process. So I assume that the web2py process was restarted. I'd need to

[web2py] Re: Hosting service for web2py

2010-10-23 Thread Jose
I have in webfaction [1], has excellent support. I also tried in alwaysdata [2], in a free plan [3]. Jose [1] https://www.webfaction.com/ [2] http://www.alwaysdata.com/ [3] http://www.alwaysdata.com/plans/shared/

Re: [web2py] Re: web2py wizard (alpha) is here

2010-10-23 Thread Jose Luna
wow nice.. 2010/10/23 mart > Hi, > > Love the wiZ2py (my daughter coined that one, because she's six and > always sounds strange when over-tired and has the giggles - at least > that's what it sounded like). I do look forward to many more > iterations, all as great and fascinating as the next

Re: [web2py] Hosting service for web2py

2010-10-23 Thread rochacbruno
I am having good experience with webfaction Enviado via iPhone Em 23/10/2010, às 00:43, José Luna Venezuela escreveu: > Hi i whant to know what hosting provider offer suport for web2py or i > need to have a vps if i whant to make a web page? > > Thx