[web2py:12925] google app_id?

2008-12-04 Thread mdipierro
in this page http://appgallery.appspot.com/submit what is app_id? How do I get it? Massimo --~--~-~--~~~---~--~~ 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@g

[web2py:12924] Re: Multiple Checkboxes (Runtime defined)

2008-12-04 Thread mdipierro
Try this: TABLE(*[TR('T',INPUT(_type="checkbox",_name='T'))]+\ [TR("Option "+str(opt), INPUT (_type="checkbox",_name=opt,value=False,_value='on')) for opt in options]+\ [TR("",INPUT(_type="submit",_value="SUBMIT"))]) On Dec 4, 9:02 pm, Maurice Ling <[EMAIL PROTECTED]> w

[web2py:12923] Re: Sharing templates

2008-12-04 Thread mdipierro
response.view = "../../init/views/base_template.html" On Dec 4, 11:42 pm, voltron <[EMAIL PROTECTED]> wrote: > Hi all, > > I have a slight problem with sharing templates between appliances. > Given 2 appliances, "init" and "test" . Init has a view called > "base_template.html", so I thought a way

[web2py:12922] T3 is out!!!!!!!!!

2008-12-04 Thread mdipierro
http://web2py.appspot.com/t3 I will try to make a video tutorial asap. If you know T2 you know what to do. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send ema

[web2py:12921] Multiple Checkboxes (Runtime defined)

2008-12-04 Thread Maurice Ling
Hi everyone, I have an issue with multiple checkboxes which can only be defined at runtime. Here is my sample code: options = range(5) def multi_input(): form = FORM( TABLE(TR('T',INPUT(_type="checkbox",_name='T')), [TR("Option "+str(opt), INPUT (_type="checkbox",

[web2py:12920] Sharing templates

2008-12-04 Thread voltron
Hi all, I have a slight problem with sharing templates between appliances. Given 2 appliances, "init" and "test" . Init has a view called "base_template.html", so I thought a way to call the view from "test" would be: # a controller in "test" response.view = "applications/init/views/base_templat

[web2py:12919] Re: import from csv file

2008-12-04 Thread DenesL
You can db.table.truncate() to delete all records and then any records inserted from the csv file would start with id 1. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this g

[web2py:12918] Re: Dropbox based on a none unique column.

2008-12-04 Thread DenesL
Annet, > Question 1) in your post you say that when you type something into the > INPUT field that triggers the autocomplete,... How does the > application know it is an autocomplete field, (_class="ac_input" ?) Yes. > Question 2) then you continue ... The autocomplete creates an ajax > call to

[web2py:12917] import from csv file

2008-12-04 Thread somebody
when i want to import a csv file, i found that it will not overlap the existing same table's value. for example. in my db, I have table.db with table.id (with existing value of 1 and 2) and table.name when i empty table.db and import table.db, the table.id become 3 and 4 rather th

[web2py:12916] T2 WIKI

2008-12-04 Thread mdipierro
A fully functional WIKI in T2 with authentication, page attachments and comments (check out last line). Can be customized via stylesheet. views optional... ### FILE: models/db.py from applications.plugin_t2.modules.t2 import T2 db=SQLDB('sqlite://strorage.db') t2=T2(request,response,session,cach

[web2py:12915] Re: Downside / Critique of web2py

2008-12-04 Thread mdipierro
Some answers below: On Dec 4, 2:20 pm, 43gm <[EMAIL PROTECTED]> wrote: > Talking with some python veterans (mainly SQLalchemists ;-), their > critique of web2py was summed in two words, "exec magic." In practical > terms, what does this mean... in terms of performance hits (at N > requests/sec),

[web2py:12914] Re: Downside / Critique of web2py

2008-12-04 Thread 43gm
Talking with some python veterans (mainly SQLalchemists ;-), their critique of web2py was summed in two words, "exec magic." In practical terms, what does this mean... in terms of performance hits (at N requests/sec), inefficient CPU / resource consumption, etc. ? And ditto for MVC caching... In

[web2py:12913] Re: upload a folder

2008-12-04 Thread Timothy Farrell
Joe, I don't want to sound rude, but you're missing the point.  Python is powerful enough to handle virtually anything you throw at it.  The browser is the limiting factor. Currently, no browsers (that I know of) support directory upload.   Until that happens we're stuck with multiple file-up

[web2py:12912] Re: upload a folder

2008-12-04 Thread Joe Barnhart
But Python has a ZIP module and you could unzip the file in Python. That's probably the easiest way to transfer a structured set of files. On Dec 3, 11:36 pm, mdipierro <[EMAIL PROTECTED]> wrote: > HTTP does not allow that unless your client (flash, js, etc.) uploads > each individual file (http:

[web2py:12911] Re: SWFObject html helper

2008-12-04 Thread mmstud
And of cource it is same with self._getAttributes() I wanted to separate them (content, attributes) to individual methods because there are tags that do not need them both, like self closing tags, etc. I dont know, if it is a performance issue though. On Dec 4, 7:12 pm, mmstud <[EMAIL PROTECTED]

[web2py:12910] Re: adding custom field to sqlset

2008-12-04 Thread mdipierro
wait... there is a better/faster way students=db((db.students.id==db.studentsections.userid)& (db.sections.id==db.studentsections.sectionid)& (db.studentsections.sectionid==id)& (db.students.nowenrolled=='Y')).select(db.students.ALL, orderby=db.students.fullname, groupby=db.stduents.id) Massimo

[web2py:12909] Re: adding custom field to sqlset

2008-12-04 Thread mdipierro
I think what you call a sqlset is a SQLRows. That is immutable. I believe you want to do db(qallstudents&(db.student.id.belongs(db(qenrolled)._select (db.students.id))).update(somefield=' ') or for student in db(qallstudents&(db.student.id.belongs(db (qenrolled)._select(db.students.id))).select

[web2py:12908] adding custom field to sqlset

2008-12-04 Thread mattynoce
hi, i'm a newbie to web2py but i'm very intrigued. the issue i'm having is that i'd like to associate information with rows of a sqlset. for example, i am creating a page that enrolls/unenrolls users (students) in a program (section). i want to list the students in the section, then list all stud

[web2py:12907] Re: SWFObject html helper

2008-12-04 Thread mmstud
Sorry for confusion and mix. self._getContent() is my own private method on parent class (STYLE, SCRIPT -> DIV) but what it does is basically: co=''.join([xmlescape(component) for component in self.components]) html.py:157 then self.tag_name = self.tag and NEWLINE = '\n' is global constant

[web2py:12906] Re: SWFObject html helper

2008-12-04 Thread DenesL
Marko, looks promising but I believe some of it is missing, for example I don't see these defined: NEWLINE, _getContent, tag_name --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post

[web2py:12905] Re: Dropbox based on a none unique column.

2008-12-04 Thread annet
Denes, This is what I got so far, >From your reply on Ma8 8, 11:32 pm: I put the jquery.autocomplete.js and jquery.autocomplete.css into their respective folders in the static folder of my application and added the following links to my modified copy of web2py_ajax.html: Then, in the same

[web2py:12904] Re: Cas default behaviour.

2008-12-04 Thread DenesL
> I have no idea how to bend CAS and web2py to make this work... I am afraid CAS is not that flexible at the moment (but if somebody can prove me wrong I would be interested in the solution also). When I needed to add CAS-like functionality to my app I ended up modifying it to meet my particular

[web2py:12903] Re: SWFObject html helper

2008-12-04 Thread mdipierro
Thank you. Let me look. Perhaps some version of this could go in t2. Massimo On Dec 4, 7:45 am, mmstud <[EMAIL PROTECTED]> wrote: > I created a new swfobject html helper class to manage embedded flash > media. I want to share it both for a review and to motivate contribute > great tips and conte

[web2py:12902] Re: Cas default behaviour.

2008-12-04 Thread mdipierro
I would proceed this way. -after CAS registration, cas returns a token to your app ('username', userid, 'email') -check in your cas_user_organization is you have a record linking user userid -if not redirect the user to a page (in your app) that asks for the info and stores it in a new record. Y

[web2py:12901] Re: redirection

2008-12-04 Thread mdipierro
Try this: > def update(): >      if len(request.args)<2 or not request.args[0] in db.tables: >          table=request.args[0] > else: >          id=int(request.args[1]) >          records=db(db[table].id==request.args[1]).select() >      if not records: >          session.flash=T('record doe

[web2py:12900] SWFObject html helper

2008-12-04 Thread mmstud
I created a new swfobject html helper class to manage embedded flash media. I want to share it both for a review and to motivate contribute great tips and content to this framework. I also have some questions like: how to create static links right way? Im using my own Script (and Style) helpers he

[web2py:12899] Cas default behaviour.

2008-12-04 Thread annet
In my application I got a table listing organizations and tables with organization details such as addresses and telephone numbers. I would like to use CAS as a authentication system, but I do not now how to adjust its default behaviour without disrupting CAS or running into trouble with future re

[web2py:12898] Re: redirection

2008-12-04 Thread pmate
i made some attempts: to avoid calling eval(dbname) and passing dbname as args[0], in gestione/update: def update(): try: dbname='db' table=request.vars.tabella and in default/provvedimenti_insert: linkto=URL(r=request,c='gestione',f=

[web2py:12897] Re: ssl_error_rx_record_too_long

2008-12-04 Thread Alexandre Miguel de Andrade Souza
And changed the ssl virtual host configuration too. 2008/12/4 Alexandre Miguel de Andrade Souza <[EMAIL PROTECTED]> > I resolved the same error creating new server.crt and server.key > > follow the instructions of > > *http://www.modssl.org/docs/2.8/ssl_faq.html#ToC27 > > and > http://www.mods

[web2py:12896] Re: ssl_error_rx_record_too_long

2008-12-04 Thread Alexandre Miguel de Andrade Souza
I resolved the same error creating new server.crt and server.key follow the instructions of *http://www.modssl.org/docs/2.8/ssl_faq.html#ToC27 and http://www.modssl.org/docs/2.8/ssl_faq.html#cert-ownca * 2008/11/4 airdrummer <[EMAIL PROTECTED]> > > i followed the ssl faq (http://mdp.cti.dep