[web2py:23017] Re: Another Browser...

2009-05-31 Thread Yarko Tymciurak
Nice link - thanks ... looks like this one is worth looking at more thouroughly On Sun, May 31, 2009 at 4:05 AM, HansD wrote: > > Nice starting point perhaps: > http://reinout.vanrees.org/weblog/2009/05/28/practical-project-automation.html > > On May 25, 1:24 am, mdipierro wrote: > > Yes this w

[web2py:23016] Re: IS_MATCH()

2009-05-31 Thread annet . vermeer
Hi Denes, Thanks! Annet. --~--~-~--~~~---~--~~ 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, send email to w

[web2py:23015] Re: mediawiki markup in web2py wiki?

2009-05-31 Thread annet . vermeer
I support web2py and its developers, however, Joe does have a point here. > Your metric is flawed. All you can say for certain is that a growing > number of people were interested in web2py at some point in time. You > cannot tell how many have left in frustration and now use other > platforms.

[web2py:23014] Re: mediawiki markup in web2py wiki?

2009-05-31 Thread Joe Barnhart
Massimo -- Remind me again... Who writes the documents in the Sphinx system? Isn't is it designed for a small group of documentation writers? It's not like a wiki where anyone can contribute, right? Does that really break the bottleneck? -- Joe B. On May 31, 9:09 pm, mdipierro wrote: > Anyw

[web2py:23013] Re: mediawiki markup in web2py wiki?

2009-05-31 Thread Joe Barnhart
Please don't feel like you have started an argument -- and especially don't think that you have done anything wrong or stepped on anyone's toes. We are all trying to achieve success with web2py and you are stepping up to do something. I applaud your efforts. Warm regards, Joe Barnhart On May

[web2py:23012] Re: if you care about web2py...

2009-05-31 Thread mdipierro
thanks! On May 31, 10:58 pm, "Zoom.Quiet" wrote: > On Mon, Jun 1, 2009 at 11:40, mdipierro wrote: > > > ... you should comment on threads like this: > > >http://www.reddit.com/r/programming/comments/8ooh3/which_web_framewor... > > done!-) > > > Massimo > > --http://zoomquiet.org > '''过程改进乃是催生可促

[web2py:23011] Re: Authentication for services

2009-05-31 Thread mdipierro
OK. As you request since the latest version in trunk you can do @auth.requires_login() def index(): return 'hello world' and access it with curl -u username:password http://127.0.0.1:8000/app/default/index or curl http://username:passw...@127.0.0.1:8000/app/default/index In the latter

[web2py:23010] client_ip look up for form submission

2009-05-31 Thread Bill
Hi, The code below is from Page 50 of the pdf book. Need an example for selecting a saved ip address in a table which could verify if a user has or has not submitted a posting within a specified time period. In the example below, there are specified form fields. Could you give me an example of h

[web2py:23009] Re: mediawiki markup in web2py wiki?

2009-05-31 Thread mdipierro
Evgeny, I do not think you should delete the repository and this exchange has nothing to do with it. Let's say we agree that web2py docs should move to trac. Something I have resisted but I do not oppose. We still want to have one or more web2py wikis available and we need people committed to th

[web2py:23008] Re: if you care about web2py...

2009-05-31 Thread Zoom.Quiet
On Mon, Jun 1, 2009 at 11:40, mdipierro wrote: > > ... you should comment on threads like this: > > http://www.reddit.com/r/programming/comments/8ooh3/which_web_framework_do_you_prefer/ > done!-) > Massimo -- http://zoomquiet.org '''过程改进乃是催生可促生靠谱的人的组织!''' Free as in Freedom! 哲思自由软件社区:http://

[web2py:23007] Re: mediawiki markup in web2py wiki?

2009-05-31 Thread Evgeny
sorry folks, I feel I've triggered this exchange. and I can delete the repository that I've set up - big deal. I think it will be pretty bad if an argument kills the project. what you've started - rolling your own - is a good strategy as long as there is a continuous improvement of code and conti

[web2py:23006] Re: Authentication for services

2009-05-31 Thread Dan
Since my last message on this thread, I came up with a patch to the Auth.login() code that lets me do what I need, so figured I should post it here. Let me know if you see any issues with this approach (or improvements to it). To recap, what I want to do is to let a script runing wget (not a brow

[web2py:23005] if you care about web2py...

2009-05-31 Thread mdipierro
... you should comment on threads like this: http://www.reddit.com/r/programming/comments/8ooh3/which_web_framework_do_you_prefer/ Massimo --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group

[web2py:23004] Re: weird python issue

2009-05-31 Thread mdipierro
thanks. I forgot DIV had a len method. Massimo On May 31, 10:27 pm, DenesL wrote: > Reposting > fromhttp://groups.google.com/group/web2py/browse_thread/thread/2114e5ab59... > > From the python 2.5 manual, library reference, 3.1: > > "The following values are considered false: > ... > instances

[web2py:23003] Re: mediawiki markup in web2py wiki?

2009-05-31 Thread mdipierro
What do you propose? Massimo On May 31, 10:22 pm, DenesL wrote: > I agree with Joe on many of his comments. > Documentation is high priority and the current effort is not > progressing. > I will have to side with him too on the why. > The current wiki is still not contributor friendly on this d

[web2py:23002] Re: mediawiki markup in web2py wiki?

2009-05-31 Thread mdipierro
Make a concrete proposal. Trac? Massimo On May 31, 10:22 pm, DenesL wrote: > I agree with Joe on many of his comments. > Documentation is high priority and the current effort is not > progressing. > I will have to side with him too on the why. > The current wiki is still not contributor friendl

[web2py:23000] Re: mediawiki markup in web2py wiki?

2009-05-31 Thread DenesL
I agree with Joe on many of his comments. Documentation is high priority and the current effort is not progressing. I will have to side with him too on the why. The current wiki is still not contributor friendly on this dead horse second beating. More hopeful regards, Denes. --~--~-~--

[web2py:23001] Re: weird python issue

2009-05-31 Thread DenesL
Reposting from http://groups.google.com/group/web2py/browse_thread/thread/2114e5ab590fc228# >From the python 2.5 manual, library reference, 3.1: "The following values are considered false: ... instances of user-defined classes, if the class defines a __nonzero__ () or __len__() method, when tha

[web2py:22999] Re: mediawiki markup in web2py wiki?

2009-05-31 Thread mdipierro
Joe, going back to your concerns. I think some are founded and some are not. It is not true that web2py is failing. It is going very well from my data. It is true we can do better. It true that documentation is one of the areas it can improve. I am not sure whether you blame this on the technolo

[web2py:22998] weird python issue

2009-05-31 Thread mdipierro
does anybody understand this? massimo-di-pierros-macbook:web2py mdipierro$ python web2py.py -S welcome >>> print INPUT() or 'oops' oops why is INPUT same as False? Massimo --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Gr

[web2py:22997] Re: eStore appliance

2009-05-31 Thread mdipierro
> Google checkout is a good choice, but its offer for sellers seems not > to be available in Japan yet. I look forward to using it in Japan > sometime later. Meanwhile, I plan to customize the codes for other > checkout routines. Is there such codes in Python/web2py already > available somewhere,

[web2py:22996] Re: mediawiki markup in web2py wiki?

2009-05-31 Thread mdipierro
You are confusing two issues. This is about a wiki app not about content. Yes web2py documentation needs to be improved, this will happen if people help by taking care of the example apps (which is what Evengy and others are doing). Massimo On May 31, 7:33 pm, Joe Barnhart wrote: > Am I rea

[web2py:22995] Re: SQLFORM col3 restrictions?

2009-05-31 Thread DenesL
>From the python 2.5 manual, library reference, 3.1: "The following values are considered false: ... instances of user-defined classes, if the class defines a __nonzero__ () or __len__() method, when that method returns the integer zero or bool value False." Both INPUT and A derive from DIV whi

[web2py:22994] Re: SQLFORM col3 restrictions?

2009-05-31 Thread Richard
On Jun 1, 12:08 pm, mdipierro wrote: > This is very strange I fixed it and I am uploading the fix to trunk > but I do not understand it. > It seems that if INPUT() is false (?!) that's weird. I found it works it I do SPAN(INPUT(...)) > > You can use TAG.BUTTON(...) thanks! > > On May 31, 7:2

[web2py:22993] Re: SQLFORM col3 restrictions?

2009-05-31 Thread mdipierro
This is very strange I fixed it and I am uploading the fix to trunk but I do not understand it. It seems that if INPUT() is false (?!) You can use TAG.BUTTON(...) On May 31, 7:25 pm, Richard wrote: > hello, > > I am using the col3 argument to SQLFORM to add some data: > button = INPUT(_type='bu

[web2py:22992] Re: web2py2po/po2web2py

2009-05-31 Thread suiato
Hi, Fran Thanks for your comment and pointers. On 5月31日, 午前7:17, Fran wrote: > On May 30, 4:29 am, suiato wrote: > > > I'm translating an appliance eStore as an example in learning how to > > localize web2py appliances, and found web2py2po/po2web2py programs > > useful because I usually work o

[web2py:22991] Re: IS_MATCH()

2009-05-31 Thread DenesL
Hi Annet, On May 31, 12:48 am, annet.verm...@gmail.com wrote: > Hi Denes, > > I have another validator about which I am not sure ... > > db.adres.plaats.requires=[IS_IN_DB(db,db.plaats.plaats,'%(plaats)s')] > db.adres.plaats.widget=lambda self,value:INPUT > (_type='text',_id='place',_class='ac_in

[web2py:22990] Re: eStore appliance

2009-05-31 Thread suiato
Thanks, Massimo. Very encouraging to have a kind response from you. Looking closely, I noticed I overlooked the error messages "too small or too large!" under the boxes for Ship Fedex *bc. Initially these boxes were empty. When I put 0.0 into these boxes at http://127.0.0.1:8000/eStore/manage/se

[web2py:22989] Re: mediawiki markup in web2py wiki?

2009-05-31 Thread Joe Barnhart
Am I reading this right? We now have a repository to contribute to the web2py wiki code base? The same phantom developers who are not working on the wiki now are not going to work on the codebase in the repository. "Different wiki apps?!?!" Massimo -- you aren't GETTING IT. You are treating t

[web2py:22988] SQLFORM col3 restrictions?

2009-05-31 Thread Richard
hello, I am using the col3 argument to SQLFORM to add some data: button = INPUT(_type='button', _value='test') link = A('test', _href=URL(r=request, f='test')) col3 = dict(name=button, project=link) form = SQLFORM(db.model, col3=col3) Strangely this works for links but not inputs. Inputs are not

[web2py:22987] Re: chain of calls in server/web2py system

2009-05-31 Thread Evgeny
i've left a post about this on mod_wsgi list: http://groups.google.com/group/modwsgi/browse_thread/thread/23d18f82cffd6d6e On May 31, 4:55 pm, mdipierro wrote: > > So web2py HAS to work through web2py.py daemon? > > No, no only if you use Apache + mod_proxy. > > > even if it's with WSGI? > > No

[web2py:22986] Re: mediawiki markup in web2py wiki?

2009-05-31 Thread mdipierro
Thanks Evgeny for taking care of this. I hope other people with take other sample apps and will volunteer to become maintainers. Of course this does not prevents forks or different wiki apps. Different people have different needs. massimo On May 31, 6:46 pm, Evgeny wrote: > Hi All, > > I volunt

[web2py:22985] Re: chain of calls in server/web2py system

2009-05-31 Thread mdipierro
> So web2py HAS to work through web2py.py daemon? No, no only if you use Apache + mod_proxy. > even if it's with WSGI? No, we run the PyCon registration using mod_wsgi without the built-in wsgiserver. I do not have the code right now. Perhaps somebody can provide an example. > I've tried that,

[web2py:22984] Re: mediawiki markup in web2py wiki?

2009-05-31 Thread Evgeny
Hi All, I volunteered to be a maintainer of the wiki app, Massimo seems to have approved this. So I've created a repository at http://code.google.com/p/web2py-wiki/ with the latest snapshot from the launchpad. (i've been using google code and it seems to be faster and simpler than launchpad) Of

[web2py:22983] Re: chain of calls in server/web2py system

2009-05-31 Thread Evgeny
so web2py HAS to work through web2py.py daemon? even if it's with WSGI? I've tried that, now I have issue that WSGI system does not attach web2py.py as interpreter - it attaches '' instead which is httpd by default. looks like wsgi/apache problem. I have centos/apache2 My directives in the vir

[web2py:22982] Re: mediawiki markup in web2py wiki?

2009-05-31 Thread Joe Barnhart
Yes! I agree completely. This has ALWAYS been about creating a platform (wiki) that enabls MORE PEOPLE to contribute. That's why I feared it was a mistake to "eat our own dogfood" and decide to create our own wiki in the first place. Now we're mired in a development quagmire because we don't h

[web2py:22981] Re: eStore appliance

2009-05-31 Thread mdipierro
That will prevent users from buying but should not cause the problem you mention. Try replace def setup(): response.view='manage/setup.html' form=SQLFORM(store.info,mystore) if form.accepts(request.vars,session): response.flash='that was easy! now go vist your store.' els

[web2py:22980] Re: new DAL

2009-05-31 Thread mdipierro
The DAL is been rewritten for three main reason 1) to make is easier to extend by making it more modular and readable 2) to decouple the virtual names (for tables and fields) from the actual ones (what you are asking) 3) to remove its dependence on __str__ so that it will work on Python 3.0 1,2,

[web2py:22979] Re: Multiple=True & IS_NULL_OR()

2009-05-31 Thread mdipierro
This is not fixed in trunk.Please check that it works as you'd expect. I think so. IS_NULL_OR(IS_IN_SET(...,multiple=True)) IS_NULL_OR(IS_IN_DB(...,multiple=True)) allow no seletcion without showing an empty option. Massimo On May 27, 3:52 pm, Fran wrote: > When creating a UI to optionally

[web2py:22978] Re: mediawiki markup in web2py wiki?

2009-05-31 Thread Yarko Tymciurak
Comments: - Talk is cheap; - Anyone can be a critic - that's easy; being constructive, of a service mentality, that's useful. On Sun, May 31, 2009 at 1:32 PM, Joe Barnhart wrote: > > Hi Massimo -- > > Comments below... > > On May 30, 10:58 pm, mdipierro wrote: > > > I appreciate the criticis

[web2py:22977] Re: mediawiki markup in web2py wiki?

2009-05-31 Thread Evgeny
and you need recent changes view in wiki On May 31, 12:33 pm, Evgeny wrote: > hi guys, > > I'd start with basic things. > > the front page must explain that login is required to edit. > otherwise there is no "edit" link. > > and make sure front page is really informative - > it is most visited.

[web2py:22976] Re: mediawiki markup in web2py wiki?

2009-05-31 Thread Evgeny
hi guys, I'd start with basic things. the front page must explain that login is required to edit. otherwise there is no "edit" link. and make sure front page is really informative - it is most visited. I think this restriction of login to edit can be replaced with recaptcha - it does stop all

[web2py:22975] chain of calls in server/web2py system

2009-05-31 Thread Evgeny
Hello, Could someone be kind to write out the chain of events that must happen from apache (or an analog _production_ server) receiving web request to web2py app sending the response? Or point me to a right document. If one doesn't exist, I'll be happy to summarize responses. This will greatly

[web2py:22974] Re: new DAL

2009-05-31 Thread dlypka
Hi Massimo: Thank you for considering those MSSQL issues. Another DAL – related issue is the errors of some apps on some SQL engines caused by the use of reserved words as column names T3 appears to have this issue on SQL Server: In t2.py line 355, it uses the SQL Server reserved word 'file' as

[web2py:22973] Re: mediawiki markup in web2py wiki?

2009-05-31 Thread Joe Barnhart
Hi Massimo -- Comments below... On May 30, 10:58 pm, mdipierro wrote: > I appreciate the criticism. I agree the wiki has lagged behind. Is > this really because of the technology behind it? Yes. It is not a wiki until you have urls that reflect the page title, easy linking from one wiki entr

[web2py:22972] eStore appliance

2009-05-31 Thread suiato
I have run an appliance eStore, and it works fine except that I cannot set parameters under Merchant ID at http://localhost:8000/eStore/manage/setup because the condition form.accepts(request.vars,session) in setup() is false. Is it because I don't have an official Merchant ID? I am yet to learn

[web2py:22971] Re: patch sql / sqlhtml

2009-05-31 Thread Hans Donner
Ok, not yet encountered that but I can imagine it. Needs a bit of work than and I keep it for my own projects than for now. On Sun, May 31, 2009 at 5:50 PM, mdipierro wrote: > > this would break the dal because table headers can be aggregates and > are not necessarily table fields. That is why i

[web2py:22970] Re: patch sql / sqlhtml

2009-05-31 Thread mdipierro
this would break the dal because table headers can be aggregates and are not necessarily table fields. That is why it is not done by default. On May 31, 3:49 am, HansD wrote: > currently when having > {{=records}} > in your view, it prints out a table with the records, the table > headers being

[web2py:22969] Re: complex sql query: combining left outer join and count

2009-05-31 Thread mdipierro
the new dal will also allow an alternate simple notation that does not require the _extra. ;-) On May 31, 9:25 am, eddie wrote: > Thanks Massimo. > > Looking over the cookbook examples, I realise now the example of the > left parameter pretty much covers this, it just helps to have it > pointed

[web2py:22968] Re: extending profile with extra fields?

2009-05-31 Thread mdipierro
Just define your own 'auth_user' table before calling auth.define_tables(). You can add any field you want to make sure the default fields are there. On May 31, 7:40 am, Jurgis Pralgauskis wrote: > Hello, > > I want persons while registering to enter more data, than default auth > asks... > what

[web2py:22967] Re: patching sql - more verbose exceptions / added support for lists of SQLFields

2009-05-31 Thread mdipierro
I am going to add the more explicative exceptions. Patterns fields will go in the new DAL but probably with a slightly different notation. Thanks Hans. On May 31, 3:43 am, HansD wrote: > allowing for stuff like: > > def SQLPatternFields(value_list, pattern, type): >    fields = [] >    if not pa

[web2py:22966] Re: new DAL

2009-05-31 Thread mdipierro
this can definitively be done. On May 31, 3:41 am, dlypka wrote: > Hi Massimo > > FYI: Some issues to note as you are rewriting the DAL: > > 1. For mssql connections, I want to write: >     db = SQLDB('mssql://dlypka:p...@word1@localhost/TMoMilestones') > The '@' delimiter is a problem for me be

[web2py:22965] Re: patch sql / sqlhtml

2009-05-31 Thread Iceberg
On May31, 4:49pm, HansD wrote: > currently when having > {{=records}} > in your view, it prints out a table with the records, the table > headers being the 'ugly' field names (prefixed with the table). > > The following patch will make use of the labels supplied on the > db.define(...) > > I've n

[web2py:22964] Re: complex sql query: combining left outer join and count

2009-05-31 Thread eddie
Thanks Massimo. Looking over the cookbook examples, I realise now the example of the left parameter pretty much covers this, it just helps to have it pointed out :) While I'm here, I thought I'd post a related solution that I found useful. Once I got my counts coming through to the view, I was s

[web2py:22963] extending profile with extra fields?

2009-05-31 Thread Jurgis Pralgauskis
Hello, I want persons while registering to enter more data, than default auth asks... what would be the best ways to "append" those fields to the profile (table called "persons" if I remember correctly)? probably I could do this dynamically, after the table "persons" is created importing auth...

[web2py:22962] Re: Another Browser...

2009-05-31 Thread HansD
Nice starting point perhaps: http://reinout.vanrees.org/weblog/2009/05/28/practical-project-automation.html On May 25, 1:24 am, mdipierro wrote: > Yes this would be nice. Please teach us how to... > > On May 24, 2:05 pm, Yarko Tymciurak wrote: > > > I ... needed a break from my computer so I (

[web2py:22961] patch sql / sqlhtml

2009-05-31 Thread HansD
currently when having {{=records}} in your view, it prints out a table with the records, the table headers being the 'ugly' field names (prefixed with the table). The following patch will make use of the labels supplied on the db.define(...) I've not yet tested this for GAE. === modified file '

[web2py:22960] patching sql - more verbose exceptions / added support for lists of SQLFields

2009-05-31 Thread HansD
allowing for stuff like: def SQLPatternFields(value_list, pattern, type): fields = [] if not pattern or pattern == '': pattern = '%s' for value in value_list: fields.append( SQLField(pattern % value, type) ) return fields periods_fields = SQLPatter

[web2py:22959] Re: new DAL

2009-05-31 Thread dlypka
Hi Massimo FYI: Some issues to note as you are rewriting the DAL: 1. For mssql connections, I want to write: db = SQLDB('mssql://dlypka:p...@word1@localhost/TMoMilestones') The '@' delimiter is a problem for me because '@' is a legal, often used character in SQL Server passwords So please at

[web2py:22958] deploying apps

2009-05-31 Thread Evgeny
Hi, I was able to compile mod_wsgi and make a test wsgi script work under apache. installed gluon to python site-packages, they are imported fine because there are no errors on "import gluon" when I call script through the browser. if I go to http:///appadmin.py I get in error_log [Sun

[web2py:22957] Re: mediawiki markup in web2py wiki?

2009-05-31 Thread Evgeny
i think you need two pieces: /setup.py - that installs the modules to the python site-packages /README - which explains basics well wiki is nice but these basic things are very important. On May 30, 10:58 pm, mdipierro wrote: > Hi Joe, > > I appreciate the criticism. I agree the wiki has lagge

[web2py:22956] Re: mediawiki markup in web2py wiki?

2009-05-31 Thread Evgeny
wiki won't take off unless most active users contribute daily. -even if software behind it is perfect. gotta use it. I'll try to summarize my installation experience. Evgeny. On May 30, 10:58 pm, mdipierro wrote: > Hi Joe, > > I appreciate the criticism. I agree the wiki has lagged behind. Is