[web2py:11618] Re: Existing forum app

2008-11-10 Thread Baron
I noticed the T2 documentation defines the 'to' and 'callback' parameters but in t2.py these have been changed to 'next' and 'onaccept'. On Nov 7, 3:46 pm, Baron <[EMAIL PROTECTED]> wrote: > oh wow, you are productive. > So I'll work f

[web2py:11813] Re: How to extend a model

2008-11-13 Thread Baron
is it possible to extend t2_person in this way so that the user can login with their name instead of email? At the moment t2.py hardcodes the email field in login(). Baron On Nov 3, 2:40 pm, mdipierro <[EMAIL PROTECTED]> wrote: > These two lines > > > db.t2_person.expo

[web2py:11908] Re: How to extend a model

2008-11-15 Thread Baron
o override the default label in a form? Baron On Nov 15, 1:00 am, mdipierro <[EMAIL PROTECTED]> wrote: > No, you have to change it. > > On Nov 14, 12:40 am, Baron <[EMAIL PROTECTED]> wrote: > > > is it possible to extend t2_person in this way so that the user can &g

[web2py:11909] Re: pyworks2008 talk slides

2008-11-15 Thread Baron
Turbogears has had a lot of problems because of their reliance on external libraries. All their original documentation was for SQLObject and kid, but now they are moving to SQLAlchemy and genshi. And they chose Mochikit for the Javascript, which didn't have a new release for 2.5 years (until this

[web2py:11910] Re: web2py foundation

2008-11-15 Thread Baron
implemented? Baron On Nov 16, 12:58 am, cesmiga <[EMAIL PROTECTED]> wrote: > Massimo, > > I look forward to hearing more about this.  The idea is very exciting. > > Christopher > > mdipierro wrote: > > Actually I was thinking about something similar but also dif

[web2py:11911] Re: web2py foundation

2008-11-15 Thread Baron
t months. Eike """ On Nov 16, 11:29 am, Baron <[EMAIL PROTECTED]> wrote: > this is all fascinating Massimo. > > So membership will be based on passing a technical quiz. Do you think > this a sufficient barrier to entry to ensure quality in the community? > > If th

[web2py:11926] Re: How to extend a model

2008-11-16 Thread Baron
hello, I wasn't able to run your example because of tabbing issues, but from examining it I see you added the user_role field. But the login and register forms still seem to require an email - is that right? How do you intend to deal with updates to t2.py? Stay with your edited version, or remake

[web2py:12040] Re: How to extend a model

2008-11-17 Thread Baron
quest.vars._destination: redirect(request.vars._destination) self.redirect(next) else: session.flash=self.messages.invalid_login self.redirect() return form instancemethod = type(T2.login) t2.login = instancemethod(login, t2, T2) O

[web2py:12054] itemize temporary data

2008-11-18 Thread Baron
be wasteful. How can I instead wrap the data directly for itemize? thanks, Baron --~--~-~--~~~---~--~~ 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@google

[web2py:12055] Re: remote access to admin

2008-11-18 Thread Baron
thanks for passing that tip on David. I also couldn't get remote admin working after fiddling with default.py so have been relying on an ssh tunnel. I tried your suggestion but was still denied. Do you remember any other steps? Richard On Nov 18, 8:22 am, davidjensen <[EMAIL PROTECTED]> wrote:

[web2py:12113] Re: itemize temporary data

2008-11-18 Thread Baron
These tables are Python objects, so is there a way to instantiate them without a database? Otherwise I'll do as you suggest, Bill, and make my own itemize. Baron On Nov 19, 12:33 am, billf <[EMAIL PROTECTED]> wrote: > I don't think you can - as you say itemize takes table

[web2py:12128] Re: web2py book in PDF at $12.50

2008-11-18 Thread Baron
can you enable paperback order for Lulu, or would that conflict with you Wiley agreement? I'm just curious - I will purchase the download version anyway. On Nov 19, 3:34 pm, mdipierro <[EMAIL PROTECTED]> wrote: > Thank you all for buying the book!!! --~--~-~--~~~---~-

[web2py:12132] Re: Web2Py Manual (e-book)

2008-11-18 Thread Baron
http://groups.google.com/group/web2py/browse_thread/thread/4f1b43fcc4b73a9b On Nov 8, 2:03 am, ural <[EMAIL PROTECTED]> wrote: > Hi ! > İs there a way to get the e-edition of Web2Py Manual ? ( I do not live > in USA.) --~--~-~--~~~---~--~~ You received this messag

[web2py:12146] Re: itemize temporary data

2008-11-19 Thread Baron
fine your temp tables as in-memory tables > - insert your "rows" instead of appending to your Python objects > - pass the in-memory tables to the existing itemize > > (Apologies if that was stating the obvious) > > On Nov 18, 10:48 pm, Baron <[EMAIL PROTECTED]> wrote:

[web2py:12200] Re: Patch proposal to backup file before saving from web editor

2008-11-20 Thread Baron
that would be great - I've been caught by that too On Nov 20, 4:24 pm, "mr.freeze" <[EMAIL PROTECTED]> wrote: > You can probably guess why I am suggesting this.  Doh! > Just two new lines in applications/admin/controllers/default.py under > the edit def try/except block: > > try: >     olddata=d

[web2py:12231] Re: itemize temporary data

2008-11-20 Thread Baron
ating_temp_data: >   dbm.temp_data.insert(temp_field1='X',temp_field2='Y') > > t2.itemize(dbm.temp_data) > > And all the temp data is just held in memory.  Does that help? > > On Nov 19, 8:49 am, Baron <[EMAIL PROTECTED]> wrote: > > > > W

[web2py:12332] Re: itemize temporary data

2008-11-21 Thread Baron
ative way. I was hoping there was a way to directly instantiate the required input for t2.itemize() directly without going through a database. Writing to a temporary in-memory database 'smells' bad for me. For now I've created my own itemize. Baron On Nov 21, 8:11 am, mdipierro <[

[web2py:12494] Re: itemize temporary data

2008-11-25 Thread Baron
own itemize function. But I'm trying to reuse T2 where practical/possible. Is T2 intended to stay as a link between model and view, or will it be abstracted for the controller? Baron On Nov 22, 10:15 am, billf <[EMAIL PROTECTED]> wrote: > I did suggest at the outset (18/11) that

[web2py:12574] Re: itemize temporary data

2008-11-27 Thread Baron
control replace the T2 views with your own logic? Or is it more ambitious? Baron On Nov 26, 4:24 pm, mdipierro <[EMAIL PROTECTED]> wrote: > What are you suggesting? > > On Nov 25, 11:17 pm, Baron <[EMAIL PROTECTED]> wrote: > > > thanks guys for your advice. > > &

[web2py:12625] web2py slashdotted

2008-11-29 Thread Baron
...almost... This slashdot page (http://developers.slashdot.org/developers/ 08/11/28/1335248.shtml) discusses an article (http://advogato.org/ article/993.html) about integrating Pyjamas (Python GWT) with web2py. Is that a sensible idea? My understanding of GWT is that it is a complete client/ser

[web2py:12819] membership growth

2008-12-02 Thread Baron
I made a graph of membership growth for this group, which you can view here: http://mdp.cti.depaul.edu/examples/static/members.png It's an impressive trend! Rails has 16000 members though, so we have a way to go. Baron --~--~-~--~~~---~--~~ You received

[web2py:13113] Re: Suggestion for web2py hosting

2008-12-07 Thread Baron
I copied the script on the forum (http://forum.webfaction.com/ viewtopic.php?id=1346) and it works fine, although I haven't tried getting admin access yet. I have no experience with Starnix but it's a bonus having someone from their on this forum (Phyo Arkar). Baron On Dec 8, 2:45

[web2py:13697] Re: calling functions from controllers

2008-12-16 Thread Baron
within the controller you can call other functions directly like normal Python! Did you try it? On Dec 17, 12:58 pm, Cory Coager wrote: > How do you call a function from another function in a controller?  And > how do you pass variables between them?  The only way I can see how to > do this is

[web2py:13771] Re: jquery tips

2008-12-17 Thread Baron
What do you think about the first recommendation? Do you think web2py should load JQuery from Google instead of packaging it? On Dec 17, 5:37 am, mdipierro wrote: > http://www.tvidesign.co.uk/blog/improve-your-jquery-25-excellent-tips... --~--~-~--~~~---~--~~ You

[web2py:14336] Re: central widget repository

2008-12-30 Thread Baron
That would be great. That wiki link has a certificate problem for me: Secure Connection Failed mdp.cti.depaul.edu uses an invalid security certificate. The certificate is not trusted because it is self signed. The certificate is only valid for Massimo Di Pierro On Dec 31, 2:33 pm, "mr.freez

[web2py:15491] Restricted left outer join

2009-01-26 Thread Baron
apple,bill,0.5 orange,bob,3 For bob I want to show: apple,1 banana, orange,3 To do the left join I use: db().select(db.item.name, db.sale.price, left=db.sale.on(db.item.name == db.sale.name)) Is there a way I can restrict this query to join for just a certain user? thanks,

[web2py:15531] Re: Restricted left outer join

2009-01-27 Thread Baron
thanks Massimo - that works. Previously I had tried db.sales.on(db.sales.name==db.item.name) (db.user.name=='bob') but it caused an error. Do you know in what cases this form is allowed? Baron On Jan 27, 5:23 pm, mdipierro wrote: > this should work > > db().select(db.item.

[web2py:15532] Error log format

2009-01-27 Thread Baron
filenames that are in the format of a timestamp? Baron --~--~-~--~~~---~--~~ 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

[web2py:15576] Re: Restricted left outer join

2009-01-28 Thread Baron
(that is why it > is on the right hand side, not the left hand side). > > a,b,c,d etc can be expressions like (q1)&(q2) or (q1)|(q2) etc. > > Massimo > > On Jan 27, 5:05 pm, Baron wrote: > > > thanks Massimo - that works. > > Previously I had tried db.sales.on(d

[web2py:15578] mysql max active connections

2009-01-28 Thread Baron
Is this a possible error in web2py? Or is this logic all handled outside the controller? Baron --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web

[web2py:15608] Re: mysql max active connections

2009-01-29 Thread Baron
gt; problem with your program (I cannot be sure without looking at it) but > I have never seen this error before. > > Perhaps it would help to loot at you models and controllers. > > What os? what's in the mysql.conf? > > Massimo > > On Jan 28, 5:35 pm, Baron wrote: >

[web2py:15717] Re: What's this? web2py.org

2009-02-01 Thread Baron
gaah, I opened http://python.com at work! On Feb 1, 9:38 am, Jaroslaw Zabiello wrote: > There was an error in registar DNS settings. web2py.org should point > to web2py.com now. That previous page was in Polish and it was Quran > searcher. It was because of that DNS error. And trademark has not

[web2py:15833] Re: wsgi webfaction how-to

2009-02-03 Thread Baron
I followed these instructions to get my site working on Webfaction, including the admin login. Thanks Danny! On Feb 4, 6:58 am, rfx_labs wrote: > > yes, and it appears to be working fine; you are welcome to click on > > the following link, though it is currently just the standard welcome/ > > h

[web2py:15837] custom view includes

2009-02-03 Thread Baron
27;ve been putting the logic of which libraries to include in the base layout, which depends on flags defined in the controller functions. With many views this is getting messy. Is there a better way to customize the included Javascript libraries for a view, but still extend a common base layout?

[web2py:15838] drop table cascade

2009-02-03 Thread Baron
drop tables through the DAL that have foreign key dependencies? Baron --~--~-~--~~~---~--~~ 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@googlegro

[web2py:15844] Re: drop table cascade

2009-02-03 Thread Baron
thanks Massimo. On Feb 4, 3:28 pm, mdipierro wrote: > sorry, for now you have to do it manually > > db.executesql('DROP TABLE tablename CASCADE;') > > perhaps I can add an option to drop/truncate. > > Massimo > > On Feb 3, 9:01 pm, Baron wrote: > >

[web2py:15845] Re: custom view includes

2009-02-03 Thread Baron
end 'layout.html'}} > body to be included > > On Feb 3, 7:34 pm, Baron wrote: > > > hello, > > > I have a number of views that extend a base layout but I want to > > customize the included Javascript libraries in each view. > > With Django I would

[web2py:16113] Re: star-nix.com web2py hosting not confidence inspiring

2009-02-09 Thread Baron
"crappy...expensive...not confidence inspiring" you're not being very constructive. Phyo's offering a free web2py enabled hosting service and has an advertisement for web2py on the front page - that's fantastic! On Feb 8, 8:35 pm, Tokyo Dan wrote: > I wonder when *Nix is going to correct the li

[web2py:16358] Re: web2py + postgresql = connection limit exceeded for non-superusers

2009-02-15 Thread Baron
r of pools to use? Baron On Feb 16, 7:28 am, mdipierro wrote: > I suggest you use connection pools. It is designed to reuse connection > and will make your application much faster. > > Just add SQLDB(,pools=20) > > Massimo > > On Feb 15, 10:05 am, ionel wrote: >

[web2py:16425] Re: using nicEdit on mywiki

2009-02-17 Thread Baron
I had the same problem and your solution is better. I edited the image path in the js file to '../../static/ nicEditorIcons.gif' On Feb 16, 8:11 pm, murray3 wrote: > OK I used this code : > >