Is anybody here using web2py for teaching?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, s
Here is my suggestion:
submenu1=[
['item1',False,URL(r=request,f='item1')],
['item2',False,URL(r=request,f='item2')],
]
submenu2=[
['item3',False,URL(r=request,f='item3')],
['item4',False,URL(r=request,f='item4')],
]
response.menu=[
['header1',false,'#',submeny1],
['header2',false,'#',submeny2]
politics? hehe freaky!
(go O!)
hmm...i try to explain better.
i have 2 problems with making menus in web2py
i can use css and js files to make nice menu
but i need generated menus that use css
i followed link in first post and made a cool vertical menu generated
from controller.
but it has no he
This is very dangerous!
Your app is opening a file and its filename is passed by the client
and not validated (request.vars.key). This allows any visitor of your
app to do "directory traversal attacks" and read almost any file off
you machine, including perhaps files that contain account info.
A
Mind that there are restrictions on GAE on sending emails. The sender
must be email address of the account holder. I think you can register
other addresses but I have never tried it. If you learn more about
this, let us know.
Massimo
On Oct 7, 9:31 pm, MHblue <[EMAIL PROTECTED]> wrote:
> That wo
Sorry. Busy watching the debate.
I am not sure I understand the question. If I do this is not a web2py
question. This is an HTML question. In the layout.html there is a
piece of code that generates a menu (in HTML) based on the variable
response.menu. If you use T2 the layout.html uses JS to make
That would cause it. Though, I wasn't notified that an email had been
sent (or attempted).
On Oct 7, 3:24 pm, mdipierro <[EMAIL PROTECTED]> wrote:
> Are you able to login? If not, have you configured the email
> parameters? This is required to confirm registration. The default
> sends emails unde
yo web2pyfreakz!
ANYONE NEED COFFEE?? :-)
if you've drunk from da brew, any thoughtz on how to
- add headers to controller generated menus?
- render 2 menus (horizontal and vertical) in same view from different
controllers?
(so far i can get a vertical menu *without* headers generated)
these
Massimo
Thanks for the info. With a little extra that I finally found in the
examples, I now have a working solution that I include below in case
it helps anyone else.
Controller function
def static():
filename='applications/%s/static/html/%s.html'%
(request.application,request.vars.key)
Dear Massimo;
Where is the web2py's Ajax function?
or the javascript ajax function that define in web2py_ajax?
On Tue, Oct 7, 2008 at 8:32 PM, mdipierro <[EMAIL PROTECTED]> wrote:
>
> yes. It is a security feature of javascript.
>
> On Oct 7, 2:21 pm, "Phyo Arkar" <[EMAIL PROTECTED]> wrote:
> >
file file contains pure HTML, not {{ }} code you can do:
{{=XML(open(filename).read())}}
if filename is a constains {{ }} code you must do
{{include 'filename.html'}}
You can also do
{{include filename}}
where filename is a variable but you would not be able to bytecode
compile your
Eh , good, ok
I think i deleted examples .. :D i will unzip from source.
On Tue, Oct 7, 2008 at 9:34 PM, mdipierro <[EMAIL PROTECTED]> wrote:
>
> They come with web2py.
>
> http://127.0.0.1:8000/examples/static/epydoc/index.html
>
> On Oct 7, 4:33 pm, "Phyo Arkar" <[EMAIL PROTECTED]> wrote:
> >
They come with web2py.
http://127.0.0.1:8000/examples/static/epydoc/index.html
On Oct 7, 4:33 pm, "Phyo Arkar" <[EMAIL PROTECTED]> wrote:
> Gr8!
>
> Thanks a lot Massimo! the SuperWeb2py Man! .
>
> Any downloadable one?
>
> If not , i will grab using scrapbook.
>
> On Tue, Oct 7, 2008 at 9:26 PM
Gr8!
Thanks a lot Massimo! the SuperWeb2py Man! .
Any downloadable one?
If not , i will grab using scrapbook.
On Tue, Oct 7, 2008 at 9:26 PM, mdipierro <[EMAIL PROTECTED]> wrote:
>
> Like this:
>
> http://mdp.cti.depaul.edu/examples/static/epydoc/index.html
>
> On Oct 7, 4:23 pm, "Phyo Arkar"
You guys are druggies. LOL
I also am very impressed with your help Massimo.
This whole AJAX area is really where I want to head with my apps.
The biggest problem I have is configuring the controllers and jscript so
that I am able to get the ajax effect I am looking for.
My question is how would yo
What I want to do is include a variable html file (an html fragment)
in the middle of my page. I suppose I could use a server-side include
(SSI) but it seems easier to keep it in web2py.
I have my template that defines header, footer, whatever and in a
central content pane: let's call it static.
also wonderng how to generate 2 different menus in same page
from different controllers?
one horiztonal and other vertical
each differnt links
when i try putting menus in different controllers i get same menu
for horizontal menu i put generated menu in default.py and
mylayout.html
for vertical
Like this:
http://mdp.cti.depaul.edu/examples/static/epydoc/index.html
On Oct 7, 4:23 pm, "Phyo Arkar" <[EMAIL PROTECTED]> wrote:
> Hello all;
>
> I have not got API DOc for webpy yet. Is there any already ?
--~--~-~--~~~---~--~~
You received this message because
Are you able to login? If not, have you configured the email
parameters? This is required to confirm registration. The default
sends emails under my account and you are using it from a different
account.
Massimo
On Oct 7, 4:21 pm, MHblue <[EMAIL PROTECTED]> wrote:
> "Are there any known issues..
Hello all;
I have not got API DOc for webpy yet. Is there any already ?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To un
"Are there any known issues..." ...perhaps I can answer my own
question..
I am unable to log in and post anything.
Known bug or ?
ideakick.appspot.com/ideakick/
(behaves same locally as deployed)
--~--~-~--~~~---~--~~
You received this message because you are su
Not really. It is simply the first GAE app I ever wrote.
One issue is that the rating algorithm breaks in 3-4 years.
Massimo
On Oct 7, 4:00 pm, MHblue <[EMAIL PROTECTED]> wrote:
> On the topic of Reddish generally, the sidebar says "This web site is
> an experiment and should not be considered a
Hi Kevin -
Welcome!
I'll take a shot at some of this: you can load your app as default by
calling it "init";
If there is no "init" app, then web2py tries to find a "welcome" app.
You can see this in gluon/main.py.
You can search for many-to-many in the forums as well as see
examples in
On the topic of Reddish generally, the sidebar says "This web site is
an experiment and should not be considered a production web site.".
Are there any known issues that should prevent me from using it for
some project?
Thx,
Matt
--~--~-~--~~~---~--~~
You received
OK, there was a typo in the code:
try:
from gluon.contrib.gql2 import * # <-- .gql2 should
be .gql
Now it works.
Thanks..!
M.
On Oct 7, 2:38 pm, mdipierro <[EMAIL PROTECTED]> wrote:
> hmmm the db.py should have
>
> try:
> from gluon.contrib.gql import *
> db=GQLDB()
>
You can use this. Jquery taconite plugin (http://www.malsup.com/jquery/
taconite/)
On 7 Okt., 22:41, mdipierro <[EMAIL PROTECTED]> wrote:
> Can't you call the ajax function twice?
>
> Massimo
>
> On Oct 7, 3:12 pm, morningovermidnight <[EMAIL PROTECTED]>
> wrote:
>
> > Ok, here goes. I've been wo
Hello,
So far i must say i am pleased with web2py. It makes web development
much easier and faster.
I was wondering a few things.
How do you do model associations like one to one, one to many and many
to many? I did db.person to connect a field to person table but i get
an error message (too sma
Yes. Open a windows shell [start][command] and type "cmd". Then you
have a dos shell. Go in the folder where web2py is unzipped with "cd
[folder]" and run it with
web2py.exe -h
or any other command line argument that is supported.
Massimo
On Oct 7, 3:14 pm, Scott Hunter <[EMAIL PROTECTED]> wr
Can't you call the ajax function twice?
Massimo
On Oct 7, 3:12 pm, morningovermidnight <[EMAIL PROTECTED]>
wrote:
> Ok, here goes. I've been working on this one for a while.
>
> I want the user to be able to click on ONE link on the page and for
> the content from two external html files to load
hmmm the db.py should have
try:
from gluon.contrib.gql import *
db=GQLDB()
session.connect(request,response,db=db)
except:
db=SQLDB()
Thus the last line should never be executed except when you are not on
GAE. Try replace it with
#try:
from gluon.contrib.gql import *
db=GQLDB()
sess
yes. It is a security feature of javascript.
On Oct 7, 2:21 pm, "Phyo Arkar" <[EMAIL PROTECTED]> wrote:
> is it true that XMLHTTPrequest is not Cross Domain? Cannot request response
> from other sites??
>
> On Tue, Oct 7, 2008 at 7:05 PM, mdipierro <[EMAIL PROTECTED]> wrote:
>
> > The equivalent
Is it possible to supply command line options to the windows
executable version (web2py.exe) of web2py, either explicitly or via a
config file, and if so, how? (I see that I can specify a config file
w/ a command line option - "that's some catch, that catch-22" :)
Thanks in advance,
Scott
--~--
Ok, here goes. I've been working on this one for a while.
I want the user to be able to click on ONE link on the page and for
the content from two external html files to load into TWO divs on the
the page.
I see that we can use the javascript function ”ajax” in ”web2py
ajax.html. But it take thr
Adding session.forget() to welcome worked, thanks!
My mistake to not post the error from GAE to begin with.
The error I get with Reddish is "NameError: global name 'sqlite3' is
not defined".
See full details:
INFO 2008-10-07 20:00:23,093 gaehandler.py] Request:38ms/
8ms (real time
hi all
(me again sorry)
anyone generated vertical menu with category headers between links?
i was looking at annets post on how to generate menus
http://groups.google.com/group/web2py/browse_thread/thread/9dc3b60c529a04e9
and got my own menu going using a controller with css and view.
but i c
is it true that XMLHTTPrequest is not Cross Domain? Cannot request response
from other sites??
On Tue, Oct 7, 2008 at 7:05 PM, mdipierro <[EMAIL PROTECTED]> wrote:
>
> The equivalent of this
>
>
>
> in web2py is
>
> def index():
>return "This is the text from the server:"
>
> Not quite what
The equivalent of this
in web2py is
def index():
return "This is the text from the server:"
Not quite what you have. Are the two example running on the same
client. I believe the JS code you have only works on IE.
I suggest you use the jQuery.ajax function or web2py ajax function.
Massim
Thank you!
On Oct 7, 10:32 am, BBi <[EMAIL PROTECTED]> wrote:
> I ordered the book some times ago on amazon.com (US store). Delivery
> is in France.
> Got a message yesterday from Amazon :
>
> "
> We now have delivery date(s) for the order you placed on September 26
> 2008 01:34 PDT (Order# 104-0
Dear Massimo;
I am trying to get web2py's response from an Ajax Javascript hosted in my
friend's PC.
He have PHP file hosted in his own pc and he try to get the response from
php file via the ajax script
it worked well for him
But for response from web2py , it do not work.. we have been testin
Ok Non Spammy Version LOL :D
Here is how Admin working on over mod_wsgi :
Big Warning Text HERE!
start web2py :
python web2py.py -i 0.0.0.0 -p 9090 -a 'yourpasshere' &
heres the patch:
$diff /opt/web2py/applications/admin/controllers/admin-patch.py
/opt/web2py/applications/admin/controllers/
oops forgot patch :
heres the patch:
$diff /opt/web2py/applications/admin/controllers/admin-patch.py
/opt/web2py/applications/admin/controllers/default.py
34,35c34,35
< #elif not remote_addr in hosts:
< #raise HTTP(200,T('Admin is disabled because unsecure channel'))
---
> elif not remote_ad
This tripped my spam filter. =)
Phyo Arkar wrote:
> Here is how Admin working on over mod_wsgi :
>
>
>
>
>
> WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
> THIS IS A BIG SECURITY RISK ENABLING WEB2PY ADMIN TO PUBLIC
> WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNI
Here is how Admin working on over mod_wsgi :
WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
THIS IS A BIG SECURITY RISK ENABLING WEB2PY ADMIN TO PUBLIC
WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
THIS IS A BIG SECURITY RISK ENABLING WEB2PY ADMIN TO PUBLIC
W
I ordered the book some times ago on amazon.com (US store). Delivery
is in France.
Got a message yesterday from Amazon :
"
We now have delivery date(s) for the order you placed on September 26
2008 01:34 PDT (Order# 104-0645819-3780239):
Massimo DiPierro (Author) "Web2Py Manual" [Paperback]
You are right.
On Oct 7, 9:38 am, yarko <[EMAIL PROTECTED]> wrote:
> Would it make sense, as we go forward, to put default patterns for
> deployment on GAE for those apps that work / should work there?
>
> That is, try for gae containing session.forget() w/
> comments
>
> At least this
Would it make sense, as we go forward, to put default patterns for
deployment on GAE for those apps that work / should work there?
That is, try for gae containing session.forget() w/
comments
At least this way people who casually try would experience some
successes before they come to
coffee always helps. ;-)
On Oct 7, 6:09 am, Snoboardfreak <[EMAIL PROTECTED]> wrote:
> thanks Massimo
>
> i got it goin. no idea why it suddenly worked
>
> could be the 3 coffees i knocked back 5mins before!
>
> awesome offer tho - you really look out for people here!!
>
> thx
--~--~-~--~
I just answered my own question: put the definition of mytags =
select_whatever_I_like somewhere in the model, so that it gets updated
every time. :)
André
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py Web
This is really great! I have the following question, though: how would
I best use it (in a controller, I assume) so that the list of
available tags were always up-to-date from a table?
For example:
db.define_table('tags',
SQLField('name','string')
)
db.define_table('taggable',
SQLField('
I do not know. Will look into it
On Oct 7, 2:11 am, vihang <[EMAIL PROTECTED]> wrote:
> Just a suggestion, for easy readability, is it possible to have
> sections in this group, like General, Bugs, Dev, etc like a forum?
> This will make it easy to browse through.
--~--~-~--~~
This is the indented behaviour. Only logged in users can download
images unless you remove the decorator.
On Oct 7, 2:08 am, vihang <[EMAIL PROTECTED]> wrote:
> I am currently using download() for showing some images in my
> layout.html. Interestingly, if I decorate download() with
> requires_log
hope its cool to add to this thread?
some good info here on different ways to make menu!
but i can't find way to make menu to have headers between links.
anyone know how to do this??
like:
**
header eg cars
**
link
link
link
**
header eg bikes
**
link
link
link
thanks Massimo
i got it goin. no idea why it suddenly worked
could be the 3 coffees i knocked back 5mins before!
awesome offer tho - you really look out for people here!!
thx
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Goo
http://www.websiteoptimization.com/speed/tweak/forms/
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this
I am currently using download() for showing some images in my
layout.html. Interestingly, if I decorate download() with
requires_login(), then the forms on the pages, when not logged-in, do
not work. (also, the images don't show up, but that is the expected
behavior)
@t2.requires_login(to='login
Just a suggestion, for easy readability, is it possible to have
sections in this group, like General, Bugs, Dev, etc like a forum?
This will make it easy to browse through.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Grou
56 matches
Mail list logo