[web2py:11442] Re: Who posted web2py on github?

2008-11-08 Thread Phyo Arkar
I mean , how can we get listed? Mail to them? Post to them ? Any idea? On Fri, Nov 7, 2008 at 10:58 PM, mdipierro <[EMAIL PROTECTED]> wrote: > > what do we do about it? > > Massimo > > On Nov 7, 4:55 pm, "Phyo Arkar" <[EMAIL PROTECTED]> wrote: > > About Exposure : Web2py is not listed in main PyP

[web2py:11443] Re: Who posted web2py on github?

2008-11-08 Thread Alfonso de la Guarda
By the way, Massimo why still using svn? is possible change to bazaar which is python based and extremely easy to learn, understand and also is multi-platform? The distributed development paradigm has many pros and a few cons. See you, Alfonso de la Guarda 1024

[web2py:11444] Re: Who posted web2py on github?

2008-11-08 Thread Yarko T
http://launchpad.net/web2py --- it's mirrored to Google code. http://launchpag.net/t2 On Sat, Nov 8, 2008 at 3:01 AM, Alfonso de la Guarda <[EMAIL PROTECTED]>wrote: > > By the way, > > Massimo why still using svn? is possible change to bazaar which is > python based and extremely easy to learn,

[web2py:11445] T2's role again and other apps

2008-11-08 Thread Grahack
This is part of a series of questions I was quite afraid to ask because I'm very new to web2py, this one in particular since the T2 subject is hot. But I'm sure there are some nice people here to answer me :) I was happy to see the Central Authentication Service app existed. Now in T2 we have ano

[web2py:11448] Re: Transactions and other questions

2008-11-08 Thread Jiff
On 8 nov, 07:25, mdipierro <[EMAIL PROTECTED]> wrote: > For example you can have a controller like > > def index(): > db.mytable.insert(myfield='myvalue') > db.commit() > db.mytable.insert(myfield='myothervalue') > db.commit() > return dict() Yeah, that's what I thought

[web2py:11452] Re: form field maxlength

2008-11-08 Thread mdipierro
You can use juery to change them $(document).ready(function() {$ ('#student_last_name').attr('maxlength','30'); }); On Nov 8, 1:07 am, billf <[EMAIL PROTECTED]> wrote: > I believe that you can set the attributes on an > but only if you create it specifically as in: > > INPUT(_type='text',_nam

[web2py:11453] Re: San Francisco Python Meetup

2008-11-08 Thread mdipierro
Good idea. I have to make some for pyworks next week anyway. On Nov 8, 1:37 am, "Yarko T" <[EMAIL PROTECTED]> wrote: > This general topic might be good to seed with a base slideset that others > can use. > Open shared on Google Docs perhaps (nice, since you can present from > there) > > On Sa

[web2py:11454] Re: T2's role again and other apps

2008-11-08 Thread mdipierro
Yes, CAS should be integrated in T2. soon. Probably captcha too but it wuore require PIL. Mind that you can also use recapctha (there is an alterego entry) Massimo On Nov 8, 4:15 am, Grahack <[EMAIL PROTECTED]> wrote: > This is part of a series of questions I was quite afraid to ask > because I'

[web2py:11455] Re: How to have a global layout.html

2008-11-08 Thread mdipierro
{{extend '../../appname/views/layout.html}} On Nov 8, 4:18 am, Grahack <[EMAIL PROTECTED]> wrote: > Is there a mean to have the layout.html centralized across multiple > apps? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[web2py:11456] Re: How to define configuration items for apps

2008-11-08 Thread mdipierro
yes I do that. Since models are executed alhpabetically one option is to create a 0.py model. Another is to score the config in a file in private/ and load it from your models. Massimo On Nov 8, 4:31 am, Grahack <[EMAIL PROTECTED]> wrote: > Thinking about distributing to others the apps I will

[web2py:11446] How to have a global layout.html

2008-11-08 Thread Grahack
Is there a mean to have the layout.html centralized across multiple apps? --~--~-~--~~~---~--~~ 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 u

[web2py:11449] Re: Transactions and other questions

2008-11-08 Thread mdipierro
yes you can: def index(): try: db.mytable.insert(myfield='myvalue') db.commit() except: db.rollback() try: db.mytable.insert(myfield='myothervalue') db.commit() except: rollback() return dict() On Nov 8, 5:31 am, Jiff <[EMAIL PRO

[web2py:11447] How to define configuration items for apps

2008-11-08 Thread Grahack
Thinking about distributing to others the apps I will develop for web2py is good (did you notice the future here, I told you I was new, enough to not have produced one). Good because if forces me to write clean code, design something reusable... But we will all want something slightly different s

[web2py:11451] Re: web2py will play an important role in Computational Finance?

2008-11-08 Thread BearXu
We use the data from Thomson Datastream.Maybe in US bloomberg can provide the data. Doen't the Depaul business school provide the database from Bloomberg? 2008/11/6 tommy <[EMAIL PROTECTED]> > > We are at phase I of this project. We built couple of robots to send > some orders to the trading sys

[web2py:11450] Re: Transactions and other questions

2008-11-08 Thread Jiff
Arf, I didn't think about this nice nested writng ! BTW this is cool to have stright answers by the creator (and DON'T call me Igor :) JY On 8 nov, 14:12, mdipierro <[EMAIL PROTECTED]> wrote: > yes you can: > > def index(): > try: > db.mytable.insert(myfield='myvalue') >

[web2py:11458] new in trunk

2008-11-08 Thread mdipierro
lots of new patches in trunk. You can now do: python web2py.py -S atest >>> db=SQLDB() >>> db.define_table('a',SQLField('b'),SQLField('c','integer')) >>> db.a.insert(b='test',c=1) 1 >>> db(db.a.id>0)._update(c=db.a.c+1) 'UPDATE a SET c=a.c+1 WHERE a.id>0;' >>> db(db.a.id>0).update(c=db.a.c+1)

[web2py:11459] Re: form field maxlength

2008-11-08 Thread Wes James
I think you could add another parameter in the model SQLField(.,,.,maxlength) On Sat, Nov 8, 2008 at 12:07 AM, billf <[EMAIL PROTECTED]> wrote: > > I believe that you can set the attributes on an > but only if you create it specifically as in: > > INPUT(_type='text',_name='student_la

[web2py:11460] Re: form field maxlength

2008-11-08 Thread Wes James
Would that go in the view file? On Sat, Nov 8, 2008 at 7:37 AM, mdipierro <[EMAIL PROTECTED]> wrote: > > You can use juery to change them > > > $(document).ready(function() {$ > ('#student_last_name').attr('maxlength','30'); }); > > > On Nov 8, 1:07 am, billf <[EMAIL PROTECTED]> wrote: >> I bel

[web2py:11461] Re: form field maxlength

2008-11-08 Thread mdipierro
I guess I am not understanding the issue here. SQLField(.,length=) represents the length of the table field in database. Any presentation layer issue does not belong here. Massimo On Nov 8, 12:11 pm, "Wes James" <[EMAIL PROTECTED]> wrote: > I think you could add another parameter in th

[web2py:11457] Re: change field text on web page and position (left, center, right)

2008-11-08 Thread Wes James
How do I change the field text. I.e., a db field might be rank in the db, but I need it to be something else on the web page form (plus some fields i need to add some explanatory text about what the field is for.) -wj On Fri, Nov 7, 2008 at 11:18 PM, mdipierro <[EMAIL PROTECTED]> wrote: > > Not

[web2py:11462] Re: How to define configuration items for apps

2008-11-08 Thread Grahack
Thanks for the three answers M, but... On 8 nov, 15:41, mdipierro <[EMAIL PROTECTED]> wrote: > Since models are executed alhpabetically one option is to create a > 0.py model. I don't manage to connect to this db located in, say 'baseapp' app, from myotherapp/controllers/default.py. Do you have

[web2py:11463] Re: How to define configuration items for apps

2008-11-08 Thread mdipierro
if this is a SQLite db you can do db=SQDB('sqlite://../../baseapp/models/storage.db') db.define_table(.,migrate=False) # you need to redefine the tables that you with migrate=False On Nov 8, 3:31 pm, Grahack <[EMAIL PROTECTED]> wrote: > Thanks for the three answers M, but... > > On 8 nov, 1

[web2py:11464] Web2py added to GitHub.org

2008-11-08 Thread ceej
Hi all, I've added web2py on http://github.org | http://github.com/web2py/web2py/tree/master If you don't have GIT you can just click download to download as .zip or .tar :) This isn't replacing the current svn or bazzar repo's its just an extra one, you can never have too much choice in how y

[web2py:11465] Re: new in trunk

2008-11-08 Thread mdipierro
I also included patches from Mark Larsen and Nathan Freeze. I let them example what they do... --~--~-~--~~~---~--~~ 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

[web2py:11466] Re: Web2py added to GitHub.org

2008-11-08 Thread mdipierro
OK but please keep it in sync. Massimo On Nov 8, 4:10 pm, ceej <[EMAIL PROTECTED]> wrote: > Hi all, > > I've added web2py > onhttp://github.org|http://github.com/web2py/web2py/tree/master > > If you don't have GIT you can just click download to download as .zip > or .tar :) > > This isn't repla

[web2py:11467] launchpad branches

2008-11-08 Thread mdipierro
I notice there are 4 launchpad branches: Do some of them contain patches that I am supposed to merge? If so let me know. We should make clear which one of the official one. How do we do it? Massimo --~--~-~--~~~---~--~~ You received this message because you are

[web2py:11468] Re: Web2py added to GitHub.org

2008-11-08 Thread ceej
I will do just send me and email whenever you update it :) On Nov 8, 2:28 pm, mdipierro <[EMAIL PROTECTED]> wrote: > OK but please keep it in sync. > > Massimo > > On Nov 8, 4:10 pm, ceej <[EMAIL PROTECTED]> wrote: > > > Hi all, > > > I've added web2py > > onhttp://github.org|http://github.com/w

[web2py:11469] Re: Web2py added to GitHub.org

2008-11-08 Thread billf
I agree that choice is good but without version numbers in the download filename it could be frustrating having to install and run before you know what version you have got. On Nov 8, 10:10 pm, ceej <[EMAIL PROTECTED]> wrote: > Hi all, > > I've added web2py > onhttp://github.org|http://github.co

[web2py:11470] Re: Web2py added to GitHub.org

2008-11-08 Thread mdipierro
no way! I update the devel branch multiple times per day. It is ok if you checkout the branch once a day. Perhaps this can be automated? Massimo On Nov 8, 4:40 pm, ceej <[EMAIL PROTECTED]> wrote: > I will do just send me and email whenever you update it :) > > On Nov 8, 2:28 pm, mdipierro <[EMAI

[web2py:11471] How to include html in a view?

2008-11-08 Thread billf
I know this is a weak question but I can't seem to get my head around it. I want to code something like the following in a view html file: {{=object.method()}} ...and get some valid html included in the view. Let's say I want a label, a value and a . I expect the method to look something like:

[web2py:11472] Re: How to include html in a view?

2008-11-08 Thread mdipierro
return DIV(items) should be return DIV(*items) In the first case you are passing a list to the DIV and the list is serialized. In the second case you are passed the list elements to the DIV, as should be. Massimo On Nov 8, 6:51 pm, billf <[EMAIL PROTECTED]> wrote: > I know this is a w

[web2py:11476] Re: How to have a global layout.html

2008-11-08 Thread Yarko T
ugh! I think we need to start thinking about some "sitewide" location for views / plugins / standard statics... and a gluon-managed variable for locating it's head. This would allow (among other things) a way for an application to specify / modify that "master" place - it would not be my prefer

[web2py:11479] Re: How to include html in a view?

2008-11-08 Thread billf
Many thanks. As you can see I'm still missing some Python basics. I wonder sometimes that any of my code works :-) On Nov 9, 1:02 am, mdipierro <[EMAIL PROTECTED]> wrote: >     return DIV(items) > > should be > >     return DIV(*items) > > In the first case you are passing a list to the DIV and

[web2py:11477] Re: change field text on web page and position (left, center, right)

2008-11-08 Thread Yarko T
SQLFORM(db.my_table, fields=['name', 'address', 'phone'], lablels=['Your Full Name', 'Street Address', 'Phone (with area code)']) See gluon.sqlhtml.SQLFORM at http://mdp.cti.depaul.edu/examples/static/epydoc/index.html On Sat, Nov 8, 2008 at 12:08 PM, Wes James <[EMAIL PROTECTED

[web2py:11480] Re: About patches

2008-11-08 Thread Yarko T
Massimo will have to answer that... I expect (because of the nature of SVN) that Massimo does not give / have "write" permission to others on SVN; With and DVCS (bazaar, mercurial, git, ...) there is no worry - you make your own "branch" which is in reality your own private repository, and ask t

[web2py:11481] Re: About patches

2008-11-08 Thread Yarko T
Also, I expect that it is one-way: from Launchpad (where Massimo does his development) to SVN (where he took it from). On Sat, Nov 8, 2008 at 10:12 PM, Jonathan Benn <[EMAIL PROTECTED]>wrote: > > Hi Yarko, > > > On Nov 6, 9:32 pm, yarko <[EMAIL PROTECTED]> wrote: > > > web2py is mirrored to Goog

[web2py:11482] Re: How to include html in a view?

2008-11-08 Thread Yarko T
No need to apologize ever! We all learn by asking - there's enough to know that everyone is "ignorant" about _something_ ;-) After all, that's what friends are for! On Sat, Nov 8, 2008 at 10:19 PM, billf <[EMAIL PROTECTED]> wrote: > > Many thanks. As you can see I'm still missing some Python b

[web2py:11473] using t2.search()

2008-11-08 Thread Domain Admin
Does anyone know how to use t2.search()? I've got it working like in the puppies application in the t2 video. I'd like to make it so there's only one input field and set the other options in my code (i.e. remove the dropdown selects and 'refine' checkbox). Is there any way to do this? I've been

[web2py:11483] Re: How to include html in a view?

2008-11-08 Thread Jonathan Benn
On Nov 9, 7:19 am, billf <[EMAIL PROTECTED]> wrote: > Many thanks.  As you can see I'm still missing some Python basics.  I > wonder sometimes that any of my code works :-) I'm fairly new to Python myself, but my understanding is that this use of the asterisk (*) has to do with how the web2py fu

[web2py:11474] Re: using t2.search()

2008-11-08 Thread mdipierro
db.define_table('mytable',SQLField('a'),SQLField('b')) db.mytable.a.requires=IS_IN_SET(['one','two','three']) def index(): db.mytable['displays']=['a] form=t2.search(db.mytable,query=db.mytable.b=='something',orderby=None) return dict(form=form) On Nov 8, 8:20 pm, "Domain Admin" <[EM

[web2py:11478] Re: About patches

2008-11-08 Thread Jonathan Benn
Hi Yarko, On Nov 6, 9:32 pm, yarko <[EMAIL PROTECTED]> wrote: > web2py is mirrored to Google Code / SVN for the convenience of all > those who already use SVN. Is this a two-way mirroring? In other words, can people make commits via Subversion to the Google Code mirror? Or is it one-way, mean

[web2py:11484] Re: Web2py added to GitHub.org

2008-11-08 Thread Yarko T
ceej Dude! Create a login on Launchpad.org (don't be afraid - you don't need to put anything up there!) then go to https://code.launchpad.net/~mdipierro/web2py/devel and https://code.launchpad.net/~mdipierro/t2/main and "subscribe" Be sure to select something with "revision notificatio

[web2py:11475] Re: new in trunk

2008-11-08 Thread mdipierro
btw... with the latest version you "mdipierro/develop" you can also do $ python web2py.py -S atest >>> db=SQLDB() >>> db.define_table('a',SQLField('b','integer'),SQLField('c','integer')) >>> db.a.insert(b=1,c=2) 1 >>> db.a.insert(b=2,c=1) 2 >>> db.a.insert(b=2,c=2) 3 >>> for row in db(db.a.b+2==d

[web2py:11485] Re: Web2py added to GitHub.org

2008-11-08 Thread Yarko T
I agree, Massimo: You need to define an additional variable besides the release number - call it a revision number or build number if you want: But it should include the complete identifying info; check out the % bzr testament --strict command, and think about how to automatically enter this o

[web2py:11486] Re: About patches

2008-11-08 Thread Jonathan Benn
Hi Yarko, "Yarko T" <[EMAIL PROTECTED]> wrote: > Also, I expect that it is one-way: from Launchpad (where Massimo does his > development) to SVN (where he took it from). Ok, thanks for that clarification. > If you have changes to make, consider making an account on either Launchpad > or Bitb

[web2py:11488] Re: launchpad branches

2008-11-08 Thread Yarko T
BTW - I notice that someone named their branch "trunk" - BAD --- by convention, in too many documents, "trunk" is assumed to refer to the "trunk" of the tree put another way, the MAIN BRANCH Massimo preferred to name his branch "devel" - so this could definitely cause BAD CONFUSION. I sug

[web2py:11489] Re: Possible bug in IS_URL

2008-11-08 Thread Jonathan Benn
Thanks again everyone for your help. I'll try my best to put together a good unit test, and then post it here for comments. --Jonathan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To

[web2py:11490] Re: About patches

2008-11-08 Thread Yarko T
This week I made some patches for Sphinx, and was introduced to bitbucket.org that way (where Sphinx is). I was surprised how fast, and how easy it way (pushing to launchpad is still touchy - too often I can't get it to authenticate - and sometimes it does --- feels buggy from somewhere, probably m

[web2py:11491] Re: form field maxlength

2008-11-08 Thread Wes James
On Sat, Nov 8, 2008 at 7:37 AM, mdipierro <[EMAIL PROTECTED]> wrote: > > You can use juery to change them > > > $(document).ready(function() {$ > ('#student_last_name').attr('maxlength','30'); }); > > Ok this is working! Thx!! this is my app/views/layout.html with some tests that work for max

[web2py:11492] Re: launchpad branches

2008-11-08 Thread mdipierro
A agree. It would be better to rename the trunk branch. Robin, when you figure out how to do it, I can rename mine trunk. Massimo On Nov 8, 11:17 pm, "Yarko T" <[EMAIL PROTECTED]> wrote: > BTW - I notice that someone named their branch "trunk" - BAD --- by > convention, in too many documents, "

[web2py:11493] Re: Web2py added to GitHub.org

2008-11-08 Thread mdipierro
Currently the VERSION file is automatically generated but does not contain this info because it predates our use of bzr. Moreover VERSION has to fit in one line in order to be displayed properly in admin. Would another file called VERSION_BZR be ok? How do other projects handle this? Massimo O

[web2py:11494] Re: How to include html in a view?

2008-11-08 Thread Yarko T
Actually it has to do with what the helper function DIV expects / does with it's arguments... *arg expands a list, e.g. [a,b,c] and passes as 3 args; that is, it unpacks the list object; Since python functions can also take keyword arguments (arguments whose position doesn't matter, and which a

[web2py:11496] Re: How to have a global layout.html

2008-11-08 Thread Phyo Arkar
response.view = layout.html defined at global scope (above all methods) ? On Sun, Nov 9, 2008 at 3:56 AM, Yarko T <[EMAIL PROTECTED]> wrote: > ugh! > I think we need to start thinking about some "sitewide" location for views > / plugins / standard statics... and a gluon-managed variable for loc