[web2py:9949] web2py for teaching?

2008-10-07 Thread DiPierro, Massimo
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

[web2py:9948] Re: generate menu with category headers

2008-10-07 Thread mdipierro
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]

[web2py:9947] Re: generate menu with category headers

2008-10-07 Thread Snoboardfreak
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

[web2py:9946] Re: How to include a variable html file?

2008-10-07 Thread mdipierro
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

[web2py:9945] Re: Trouble web2py working w/ GAE development server

2008-10-07 Thread mdipierro
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

[web2py:9944] Re: generate menu with category headers

2008-10-07 Thread mdipierro
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

[web2py:9943] Re: Trouble web2py working w/ GAE development server

2008-10-07 Thread MHblue
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

[web2py:9942] Re: generate menu with category headers

2008-10-07 Thread Snoboardfreak
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

[web2py:9941] Re: How to include a variable html file?

2008-10-07 Thread billf
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)

[web2py:/] Re: Ajax Problem

2008-10-07 Thread Phyo Arkar
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: > >

[web2py:9937] Re: How to include a variable html file?

2008-10-07 Thread mdipierro
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

[web2py:9939] Re: Web2py API Doc?

2008-10-07 Thread Phyo Arkar
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: > >

[web2py:9938] Re: Web2py API Doc?

2008-10-07 Thread mdipierro
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

[web2py:9936] Re: Web2py API Doc?

2008-10-07 Thread Phyo Arkar
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"

[web2py:9935] Re: Ways to make AJAX tab panel?

2008-10-07 Thread Steve Shepherd
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

[web2py:9934] How to include a variable html file?

2008-10-07 Thread billf
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.

[web2py:9933] Re: generate menu with category headers

2008-10-07 Thread Snoboardfreak
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

[web2py:9932] Re: Web2py API Doc?

2008-10-07 Thread mdipierro
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

[web2py:9931] Re: Trouble web2py working w/ GAE development server

2008-10-07 Thread mdipierro
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..

[web2py:9930] Web2py API Doc?

2008-10-07 Thread Phyo Arkar
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

[web2py:9929] Re: Trouble web2py working w/ GAE development server

2008-10-07 Thread MHblue
"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

[web2py:9928] Re: Trouble web2py working w/ GAE development server

2008-10-07 Thread mdipierro
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

[web2py:9927] Re: Just got started - Model question.

2008-10-07 Thread yarko
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

[web2py:9926] Re: Trouble web2py working w/ GAE development server

2008-10-07 Thread MHblue
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

[web2py:9925] Re: Trouble web2py working w/ GAE development server

2008-10-07 Thread MHblue
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() >  

[web2py:9924] Re: Ajax with multiple targets

2008-10-07 Thread voltron
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

[web2py:9923] Just got started - Model question.

2008-10-07 Thread kev
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

[web2py:9922] Re: Windows executable and command line options

2008-10-07 Thread mdipierro
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

[web2py:9921] Re: Ajax with multiple targets

2008-10-07 Thread mdipierro
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

[web2py:9920] Re: Trouble web2py working w/ GAE development server

2008-10-07 Thread mdipierro
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

[web2py:9919] Re: Ajax Problem

2008-10-07 Thread mdipierro
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

[web2py:9917] Windows executable and command line options

2008-10-07 Thread Scott Hunter
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 --~--

[web2py:9915] Ajax with multiple targets

2008-10-07 Thread morningovermidnight
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

[web2py:9914] Re: Trouble web2py working w/ GAE development server

2008-10-07 Thread MHblue
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

[web2py:9913] generate menu with category headers

2008-10-07 Thread Snoboardfreak
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

[web2py:9912] Re: Ajax Problem

2008-10-07 Thread Phyo Arkar
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

[web2py:9911] Re: Ajax Problem

2008-10-07 Thread mdipierro
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

[web2py:9910] Re: Followup: Availability of the web2py book in Europe

2008-10-07 Thread mdipierro
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

[web2py:9909] Ajax Problem

2008-10-07 Thread Phyo Arkar
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

[web2py:9907] Re: Trouble web2py working w/ GAE development server

2008-10-07 Thread Phyo Arkar
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/

[web2py:9908] Re: Trouble web2py working w/ GAE development server

2008-10-07 Thread Phyo Arkar
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

[web2py:9906] Re: Trouble web2py working w/ GAE development server

2008-10-07 Thread Timothy Farrell
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

[web2py:9905] Re: Trouble web2py working w/ GAE development server

2008-10-07 Thread Phyo Arkar
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

[web2py:9904] Followup: Availability of the web2py book in Europe

2008-10-07 Thread BBi
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]

[web2py:9903] Re: Trouble web2py working w/ GAE development server

2008-10-07 Thread mdipierro
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

[web2py:9902] Re: Trouble web2py working w/ GAE development server

2008-10-07 Thread yarko
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

[web2py:9901] Re: Ways to make AJAX tab panel?

2008-10-07 Thread mdipierro
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 --~--~-~--~

[web2py:9900] Re: coolest widget

2008-10-07 Thread André Fischer
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

[web2py:9899] Re: coolest widget

2008-10-07 Thread André Fischer
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('

[web2py:9898] Re: web2py groups sections?

2008-10-07 Thread mdipierro
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. --~--~-~--~~

[web2py:9897] Re: Peculiar T2 (or web2py?) Behaviour - relating to Login

2008-10-07 Thread mdipierro
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

[web2py:9896] Re: Generate menu

2008-10-07 Thread Snoboardfreak
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

[web2py:9895] Re: Ways to make AJAX tab panel?

2008-10-07 Thread Snoboardfreak
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

[web2py:9894] Interesting link on building accessible forms - using css instead of tables

2008-10-07 Thread vihang
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

[web2py:/] Peculiar T2 (or web2py?) Behaviour - relating to Login

2008-10-07 Thread vihang
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

[web2py:/] web2py groups sections?

2008-10-07 Thread vihang
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