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
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
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
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
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
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
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
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
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
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,
--
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
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
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
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
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
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
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
>
>
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
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
>
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
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
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
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
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
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
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
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.
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
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
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
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
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
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
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
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
> 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
> 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
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
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
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
Where can I get the wizard application, please send me
debe...@yahoo.com
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
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
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
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
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
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
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/
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
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
50 matches
Mail list logo