[web2py:18567] spammers joining this group?

2009-03-24 Thread Anand Vaidya
Notice the posts by this user:zczcf...@gmail.com looks like all spam. Can the admins look into and kick the user out? Apparently another member kjkhjk has already been banned by google. --~--~-~--~~~---~--~~ You received this message because

[web2py:18566] Looking for a FAST Developer in Web2Py

2009-03-24 Thread Steve Shephed
Anyone interested in a small project to create an autoresponder like aweber.com with a few mods and including an AJAX look and feel. Let me know your development rates at sargshep | gmail.com --~--~-~--~~~---~--~~ You received this message because you are subscribe

[web2py:18565] Simplest patch ever - view the view

2009-03-24 Thread mr.freeze
This just adds a convenience link to view the page when editing a view. It avoids some mousing around and clicking: Index: applications/admin/controllers/default.py === --- applications/admin/controllers/default.py (revision 797)

[web2py:18564] Re: Possible bug: cron doesn't work when deploy in a directory name with space inside

2009-03-24 Thread Iceberg
Sure. My crontab: #0-59/1 * * * * root python /path/to/python/script #10 * * * * root *applications/admin/cron/expire_sessions.py # Some more comments here are in Chinese, but I omit them here. Should not matter. */1 * * *

[web2py:18563] Facebook groups

2009-03-24 Thread Anand Vaidya
Hi I searched facebook and found three groups for web2py: 1. Web2Py group with 18 members (Geoffrey Kimani, Ron Jeffries) 2. Gluon group with about 12 members (Dennis Yar, www.enteto.com but blacklisted by google) 3. GAE group (Dennis Yar, www.enteto.com but blacklisted by google) Looks like th

[web2py:18562] Re: Why aren't we under our own domain yet?

2009-03-24 Thread Anand Vaidya
web2py.org and web2py.net, web2py.info forward to web2py.com -- Also, the SSL cert problem does not look good. I saw godaddy is offering a 3-year 256-bit strength SSL Cert for wrote: > We are,http://www.web2py.comit was updated last week so it no longer > points to the other domain :) > >

[web2py:18561] Re: Change Control Process for web2py

2009-03-24 Thread Anand Vaidya
On Mar 25, 3:30 am, mdipierro wrote: > Hi Anand, > > about this: > > > I have just registered the project on freshmeat (http://freshmeat.net/ > > projects/web2py) so the announcements should start appearing on FM > > too... Maybe we should announce on icewalkers too? > > I am not sure it is a g

[web2py:18560] Re: creating stand-alone apps of web2py

2009-03-24 Thread Joseph Jude
Thx Massimo. My confusion was because I saw setup_exe.py & setup_app.py. I assumed that using these two files, I'll be able to create executables. Joseph On Mar 24, 11:50 pm, mdipierro wrote: > I am not sure I understand what you want to do. > > If you name your app init, it will be the default

[web2py:18559] Re: jquery jqGrid JSON url problem

2009-03-24 Thread ed
Hi Mike, I am a web2py newbie and has to learn much from experts like you. I would like to know which of the following url format you are using to access your xml data in your server: 1. url: "{{=URL(r=request,c='default',f='getjsdata')}}", 2. url: '/EMIS/controllers/getjsdata.py', Is it 1 or

[web2py:18558] Re: MVC question

2009-03-24 Thread Yarko Tymciurak
There is one more concept that is worth some words (although I don't want to turn this into a blog about mvc): Design coupling is an interesting topic - perhaps the best discussion I've seen on it was in Nam Suh's book "Axiomatic Design" (although I don't recommend that as a general design book -

[web2py:18557] Re: new web2py video about Auth, Service

2009-03-24 Thread mattynoce
very nice work, massimo. i've had trouble keeping up with which features are newly available in web2py and this tutorial is a great help. thank you. matt On Mar 18, 4:06 am, Michal Jursa wrote: > Absolutely not massimo, you are a star and your screencasts are great. > > Mike alias Plysak :) > >

[web2py:18556] Re: Change Control Process for web2py

2009-03-24 Thread mdipierro
Hi Anand, about this: > I have just registered the project on freshmeat (http://freshmeat.net/ > projects/web2py) so the announcements should start appearing on FM > too... Maybe we should announce on icewalkers too? I am not sure it is a good idea since it may create fragmentation. Anyway. Can

[web2py:18555] Re: Get stuck on incorrect view template

2009-03-24 Thread mdipierro
Michael has a good point. I cannot reproduce this. Can you email me the entire view that causes the problem? Massimo On Mar 24, 1:46 pm, Michal Jursa wrote: > Sure, but that the TYPO what makes me unhappy.. i know it is always > possible to pass controller itself or by the 'name' reference. Typ

[web2py:18554] Re: Auth Wiki example

2009-03-24 Thread mdipierro
That line is added by web2py at runtime. I but it appears in the ticket not in the code and that would be ok, On Mar 24, 1:22 pm, Fran wrote: > On Mar 24, 4:52 am, Oscar wrote: > > > response._vars=response._caller(user) > > Why do you have this line in default.py? > > I would try removing this

[web2py:18553] Re: html META error

2009-03-24 Thread mdipierro
Oops you are right. You have to go with META(**{'_http-equiv':'content-type','_content':'text/ html','_charset':'utf-8'}) then On Mar 24, 12:51 pm, DenesL wrote: > On Mar 24, 9:10 am, mdipierro wrote: > > > META(_charset='utf-8') > > True > > but > > > META(_http-equiv='content-type',_content

[web2py:18552] Re: under load

2009-03-24 Thread mdipierro
in sql.py can you try replace tfile = open(self._dbt, 'r') portalocker.lock(tfile, portalocker.LOCK_SH) sql_fields_old = cPickle.load(tfile) tfile.close() with portalocker.lock(tfile, portalocker.LOCK_EX) sql_fields_old = c

[web2py:18551] Re: under load

2009-03-24 Thread mdipierro
Normally under that load the database becomes the problem: 100 concurrent database connections. Are you using connection pools? Massimo On Mar 24, 11:21 am, AchipA wrote: > While I do pretty fancy stuff with web2py occasionally, in this > particular case it's a vanilla application. The model di

[web2py:18550] Re: creating stand-alone apps of web2py

2009-03-24 Thread mdipierro
I am not sure I understand what you want to do. If you name your app init, it will be the default app in web2py. If you unzip web2py binary, run it, create the init app, and re-zip it, this is as close as it gets to create an executable. The executable is web2py, not your app, but your app comes

[web2py:18549] Re: Get stuck on incorrect view template

2009-03-24 Thread Michal Jursa
Sure, but that the TYPO what makes me unhappy.. i know it is always possible to pass controller itself or by the 'name' reference. Typo like controller' without the leading ' or somewhat unbalanced quotas makes whole application stuck. Michal alias Plysak Wes James wrote: > According to th

[web2py:18548] Re: Auth Wiki example

2009-03-24 Thread Fran
On Mar 24, 4:52 am, Oscar wrote: > response._vars=response._caller(user) Why do you have this line in default.py? I would try removing this... F --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framewor

[web2py:18547] Re: html META error

2009-03-24 Thread DenesL
On Mar 24, 9:10 am, mdipierro wrote: > META(_charset='utf-8') True but > META(_http-equiv='content-type',_content='text/html',_charset='utf-8') causes a SyntaxError: keyword can't be an expression... since it interprets the dash as a minus sign. _http-equiv is not a valid Python identifier b

[web2py:18546] Re: Why aren't we under our own domain yet?

2009-03-24 Thread ceej
We are, http://www.web2py.com it was updated last week so it no longer points to the other domain :) On Mar 24, 12:39 pm, Jason Brower wrote: > Don't you think web2py would be a better product if we had it at, for > example, web2py.org?  I am willing to pay for something like this. > Regards, >

[web2py:18545] Why aren't we under our own domain yet?

2009-03-24 Thread Jason Brower
Don't you think web2py would be a better product if we had it at, for example, web2py.org? I am willing to pay for something like this. Regards, Jason Brower --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py

[web2py:18544] Re: problems with a query

2009-03-24 Thread Marco Prosperi
No.. I'll read the manual of the notebook On 24 Mar, 15:32, mdipierro wrote: > [alt]126[release alt] should do the trick. no? > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post

[web2py:18543] Re: under load

2009-03-24 Thread AchipA
While I do pretty fancy stuff with web2py occasionally, in this particular case it's a vanilla application. The model did not change for quite a while now. I could pretty reliably replicate the load conditions (on thath machine at around 100 concurrent active connections per WSGI process and a loa

[web2py:18542] Re: Qusestion about the book?

2009-03-24 Thread AchipA
I think a similar model is perhaps how Qt (the toolkit) does it. The references and basic tutorials are free, and of top notch quality. However, as the toolkit is quite complex, there are several volumes that delve on Qt and how you use it as a whole, how components interact and, in general, what

[web2py:18541] Re: Get stuck on incorrect view template

2009-03-24 Thread Wes James
According to the book (do you have it? - see page 67), you should be able to do this. But the controller is also implied so if you are not using a different controller than where your page is already at, try: URL=(r=request, f='function') and see what happens. -wj On Tue, Mar 24, 2009 at 9:41

[web2py:18540] Re: Possible bug: cron doesn't work when deploy in a directory name with space inside

2009-03-24 Thread AchipA
Still undecided on this one. Can you post your crontab here just so I don't miss something obvious ? On Mar 19, 11:30 am, Iceberg wrote: > Hi Achipa, > > I have an app based on web2py-win.zip 1.56.4's cron feature. I just > noticed that, if the whole web2py is deployed in a directory name with >

[web2py:18539] Re: creating stand-alone apps of web2py

2009-03-24 Thread Joseph Jude
Massimo, I understood the license part. I believe using web2py, I could create .exe & .apps. Is there any documentation on how to go about - like steps to use setup.py? Thx, Joseph On Mar 24, 7:38 pm, mdipierro wrote: > You can get the current binary versions, create your app and rezip it, > as

[web2py:18538] Re: Feature Request: DECIMAL or NUMERIC type for database fields

2009-03-24 Thread hofmanndavid
I will go for a decimal support. In case decimal is not supported in a database then the DAL can just consider it a number. If you are going production you will anyway be using a database that supports decimal Please add support for decimal :D On Mar 22, 1:19 pm, Paco wrote: > All right, I kn

[web2py:18537] Re: Get stuck on incorrect view template

2009-03-24 Thread Michal Jursa
That's the exact spelling of the template which makes that problem that's a typo i did and locked whole application. Tried to repeat it a few times and it hangs whole thing every time. I'm not sure if it is a bug or my error, just trying to identify the problem. Micahl alias Plysak Wes James

[web2py:18536] Re: Get stuck on incorrect view template

2009-03-24 Thread Wes James
On Tue, Mar 24, 2009 at 8:35 AM, Michal Jursa wrote: > > Strange thing keeps happen to me: > If i save a template with syntax error like > > URL=(r=request,c=controller',f='function') <= missing quota at controller what is the ' after c=controller? > > > whole web2py gets stuck and has to be k

[web2py:18535] Re: Qusestion about the book?

2009-03-24 Thread johann . scheibelhofer
Hi Massimo, I can fully understand your motivation and will keep a fan and supporter of your baby. A different point of view could potentially be to use community contribution to drive/update/test the web2py documentation (the bleeding edge version) and use the community-tested (stable version) i

[web2py:18534] Re: creating stand-alone apps of web2py

2009-03-24 Thread mdipierro
You can get the current binary versions, create your app and rezip it, as long as you comply with the license. On Mar 24, 8:05 am, Joseph Jude wrote: > Is there any guide/documentation on how to create stand-alone > applications of web2py (on windows/mac)? > > Thanks, > Joseph --~--~-~--

[web2py:18533] Re: about buttons

2009-03-24 Thread mdipierro
Click Me If the callback action takes long time you should consider a backrgound process and database-based event queue. Massimo On Mar 24, 3:17 am, Marco Prosperi wrote: > hi all, > I would like to put a button in one of my pages so that when the users > clicks it, a computation on the databa

[web2py:18532] Get stuck on incorrect view template

2009-03-24 Thread Michal Jursa
Strange thing keeps happen to me: If i save a template with syntax error like URL=(r=request,c=controller',f='function') <= missing quota at controller whole web2py gets stuck and has to be killed and restarted. Running Debian 5.0, Python 2.5 and have no idea what's going on. If templates are

[web2py:18531] Re: problems with a query

2009-03-24 Thread mdipierro
[alt]126[release alt] should do the trick. no? On Mar 24, 4:06 am, Yarko Tymciurak wrote: > On Tue, Mar 24, 2009 at 3:03 AM, Marco Prosperi > wrote: > > > > > It works. > > The problem seems to be that tilde is not a tilde in my original > > query. I don't know how to get a tilde from my italian

[web2py:18530] Re: about buttons

2009-03-24 Thread Marco Prosperi
just a little change to make it work: Crea attività On 24 Mar, 13:05, Michal Jursa wrote: > Yes, coz it cannot be called like this. The problem is not in web2py but > in your page. You have to use proper javascript call. So the result > should look like: > > Crea attività > > Then i think thi

[web2py:18529] Re: Auth Wiki example

2009-03-24 Thread mdipierro
I think you forgot auth.define_tables() On Mar 23, 10:52 pm, Oscar wrote: > Hi all, > > I followed the example posted at the WiKi about auth, I extended Auth > class with: > > db.py -> > class MyAuth(Auth): >         def __init__(self, environment, T, db = None): >                 Auth.__init__

[web2py:18528] Re: Change Control Process for web2py

2009-03-24 Thread mdipierro
On Mar 23, 8:44 am, dbb wrote: > All: > > It is very important to have change control process for web2py, this > change control process  will include : >        - formal submission of idea or improvement using a form >        - voting on the idea or improvement with supporting reasonings >      

[web2py:18527] Re: html META error

2009-03-24 Thread mdipierro
The first two are not supposed to work but these are META(_charset='utf-8') META(_http-equiv='content-type',_content='text/html',_charset='utf-8') On Mar 23, 10:34 am, notabene wrote: > META('',_http-equiv='content-type',_content='text/html', > _charset='utf-8') > or > TAG.meta('',_http-equiv=

[web2py:18526] Re: under load

2009-03-24 Thread mdipierro
I will look into this error but you have an error into the _create function. This is called ONLY when a new table is created. Heavy or light load should not affect this since function is called only once. My guess is that you are editing the models in real time while the server is under heavy loa

[web2py:18524] Re: Multi Column Unique Key, how to code best in web2py?

2009-03-24 Thread johann . scheibelhofer
Yarko, thank you for your support on this. I was obviously not good in describing the problem well. Sorry for that. Let me try to rephrase it from an different point of view. Lets take the example code below as starting point. The tables shape and color are working like needed. The problem comes

[web2py:18525] Re: Qusestion about the book?

2009-03-24 Thread mdipierro
I have the copyright on the book but I also have an understanding that I would not give it away for free or it will go out of print. Creators of other framework make their living by consulting. I make my living in the academic. A published book is necessary to justify the time I spent/spend on web

[web2py:18523] Re: (possibly weird) Questions for web2py

2009-03-24 Thread mdipierro
Sorry. I did not mean to be dismissive and by April I literally mean April 1st not later. I will be back in chicago in 3 days and then I am at PyCon for 3 days. Massimo On Mar 22, 10:10 pm, Alex Popescu wrote: > On Mar 22, 11:17 pm, mdipierro wrote: > > > This is a complex issue and I am on va

[web2py:18522] creating stand-alone apps of web2py

2009-03-24 Thread Joseph Jude
Is there any guide/documentation on how to create stand-alone applications of web2py (on windows/mac)? Thanks, Joseph --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this grou

[web2py:18521] Re: about buttons

2009-03-24 Thread Michal Jursa
Yes, coz it cannot be called like this. The problem is not in web2py but in your page. You have to use proper javascript call. So the result should look like: Crea attività Then i think this will work as you expected. Michal alias Plysak :) Marco Prosperi wrote: > Sorry but with > Crea attiv

[web2py:18520] Re: Full documentation

2009-03-24 Thread Baron
> There is an effort to develop a comprehensive web2py wiki that is in > its early stages. It's available herehttps://mdp.cti.depaul.edu/wiki The wiki right now is still pretty empty and doesn't look like approaching the coverage of the manual for a long time. So, would it be possible to kick st

[web2py:18519] Re: about buttons

2009-03-24 Thread Marco Prosperi
Sorry but with Crea attività the function 'add_records' is never called while with crea attività then 'add_records' is called and works (I can see it because it creates a file) maybe is this the wrong syntax? Marco On 24 Mar, 10:12, Yarko Tymciurak wrote: > On Tue, Mar 24, 2009 at 3:17 AM, M

[web2py:18518] Re: Full documentation

2009-03-24 Thread Jonathan B
Dear Debebe, On Mar 23, 8:42 pm, dbb wrote: > That is why like all  other new applications ( framework)let us pay > membership fee for web2py to grow and be a household name. Are you suggesting that there should be an annual fee for being part of a new web2py club? What would be the benefits

[web2py:18517] Re: MVC question

2009-03-24 Thread AchipA
Yarko alredy explained this nicely, just one minor point to add - the MVC paradigm was not created for web apps. In a web environment, MVC, as a concept, cannot be strictly realized as a consequence of the http server-browser decoupling. Hence it's not a question whether a web solution is or isn't

[web2py:18516] Re: MVC question

2009-03-24 Thread Yarko Tymciurak
My pleasure (really, literally! ;-) On Tue, Mar 24, 2009 at 3:36 AM, Joseph Jude wrote: > > Yarko, > Thank you for the detailed explanation. :-) > > Joseph > > On Mar 24, 12:22 pm, Yarko Tymciurak wrote: > > Let's look at what is meant by the term "business logic" ---> this is > what > > implem

[web2py:18515] Re: about buttons

2009-03-24 Thread Yarko Tymciurak
On Tue, Mar 24, 2009 at 3:17 AM, Marco Prosperi wrote: > > hi all, > I would like to put a button in one of my pages so that when the users > clicks it, a computation on the database get started. I don't know the > syntax I have to use. Probably something like: > > click me ... but there may be

[web2py:18514] Re: problems with a query

2009-03-24 Thread Yarko Tymciurak
On Tue, Mar 24, 2009 at 3:03 AM, Marco Prosperi wrote: > > > It works. > The problem seems to be that tilde is not a tilde in my original > query. I don't know how to get a tilde from my italian notebook > keyboard, so I copied from the PDF manual and paste it in my code. > I found out that if I o

[web2py:18513] Auth via xml-rpc

2009-03-24 Thread oli...@googlemail.com
Hi, I started using web2py as a data backend and therefore most of the function are exported via xml-rpc and only a few views exists for a minimal web-interface. Now I have the following problem. I have added the "Auth" service and it works really fine when I work with the web-interfaces (views)

[web2py:18512] Re: MVC question

2009-03-24 Thread Joseph Jude
Yarko, Thank you for the detailed explanation. :-) Joseph On Mar 24, 12:22 pm, Yarko Tymciurak wrote: > Let's look at what is meant by the term "business logic" ---> this is what > implementspart of a solution for a problem statement.  If we were talking > 4-tier model, then > we would say busi

[web2py:18511] about buttons

2009-03-24 Thread Marco Prosperi
hi all, I would like to put a button in one of my pages so that when the users clicks it, a computation on the database get started. I don't know the syntax I have to use. Probably something like: click me any hint? Or maybe there is a better approach? Marco --~--~-~--~~--

[web2py:18510] Re: problems with a query

2009-03-24 Thread Marco Prosperi
It works. The problem seems to be that tilde is not a tilde in my original query. I don't know how to get a tilde from my italian notebook keyboard, so I copied from the PDF manual and paste it in my code. I found out that if I open a Python shell, digit chr(126) and copy the tilde character from

[web2py:18509] Re: MVC question

2009-03-24 Thread SergeyPo
I like the ability to prepare forms inside controllers. This really makes difference from Rails, for e.g. And you get much cleaner View code. In controller you build your form and form processing code. In view you place your form inside HTML as single {{=form}} statement and glue javascript etc.

[web2py:18508] Re: MVC question

2009-03-24 Thread Yarko Tymciurak
Let's look at what is meant by the term "business logic" ---> this is what implementspart of a solution for a problem statement. If we were talking 4-tier model, then we would say business logic and engineering logic; it is the implementation in language of the solution/problem space, and just a f