[web2py] Re: they are copying us....

2010-02-16 Thread mdipierro
This is a cool layout and editor. It uses jquery. no syntax highlighting. On Feb 17, 12:49 am, Thadeus Burgess wrote: > http://kodingen.com/ > > ?? this seems more along the lines. > > -Thadeus > > On Tue, Feb 16, 2010 at 12:29 PM, mikech wrote: > > To quote a saying: > > Imitation is the sincer

Re: [web2py] Re: they are copying us....

2010-02-16 Thread Thadeus Burgess
http://kodingen.com/ ?? this seems more along the lines. -Thadeus On Tue, Feb 16, 2010 at 12:29 PM, mikech wrote: > To quote a saying: > Imitation is the sincerest form of flattery. > > On Feb 16, 6:48 am, mdipierro wrote: >> sorry was a joke and I did not mean it in a negative ways. I mea

Re: [web2py] Re: routes for subdomain

2010-02-16 Thread Thadeus Burgess
example.com/controllerA/function1 -> /init/controllerA/function1 example.com/controllerA/function2 -> /init/controllerA/function2 example.com/controllerB/function1 -> /init/controllerB/function1 example.com/controllerB/function2 -> /init/controllerB/function2 example.com/$anything -> /init/defaultC

[web2py] Re: crud.read()

2010-02-16 Thread mdipierro
You get "admin request session response " because you did not define a view so you have a generic one. You need a view {{extend 'layout.html'}}{{=form}} On Feb 17, 12:17 am, Johann Spies wrote: > How do I use crud.read() without gettting the > > admin  request  session  response > > buttons a

[web2py] Re: new GIL bug

2010-02-16 Thread mdipierro
You are right this not a reason not to move. The main reason is backward compatibility. In general 3.x seems to be slower than 2.x for data intensive processes. Am I wrong? On Feb 17, 12:05 am, Graham Dumpleton wrote: > On Feb 17, 4:20 pm, mdipierro wrote: > > > Look at this bug report > > >http

[web2py] Re: PAM support

2010-02-16 Thread mdipierro
I am not sure but I think so. Whatever username:password you use to login into your machine should now work in admin and apps. In admin you need to specify the username a priori. On Feb 16, 11:55 pm, Anand Vaidya wrote: > Awesome! > > So does that imply LDAP, AD, NIS/YP, /etc/passwd , etc etc al

[web2py] crud.read()

2010-02-16 Thread Johann Spies
How do I use crud.read() without gettting the admin request session response buttons at the bottom? Or should I use SQLFORM with readonly fields? I have Regards Johann -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group,

[web2py] Re: new GIL bug

2010-02-16 Thread Graham Dumpleton
On Feb 17, 4:20 pm, mdipierro wrote: > Look at this bug report > > http://bugs.python.org/issue7946 > > specifically look at the benchmarks at the bottom. This kind of bugs > affects web applications since they have threads with lots of IO.  One > more reason to stay with python 2.5 for now. Fo

Re: [web2py] Re: routes for subdomain

2010-02-16 Thread Jonathan Lundell
On Feb 16, 2010, at 9:31 PM, Thadeus Burgess wrote: > Ok I have spent way to long on this, I can't get any configuration of > routes/mod_rewrite to rewrite the hostname. I think Massimo is right: you don't have any reason to rewrite the hostname. > > > -Thadeus > > > > > > On Tue, Feb 16,

[web2py] Re: PAM support

2010-02-16 Thread Anand Vaidya
Awesome! So does that imply LDAP, AD, NIS/YP, /etc/passwd , etc etc all become available? Does it mean, if say, AD auth works on the host machine, it will work for web2py too? In such a case, additional inputs such as domain_name need to passed Regards Anand On Feb 17, 1:24 pm, mdipierro wro

Re: [web2py] Re: routes for subdomain

2010-02-16 Thread Thadeus Burgess
Ok I have spent way to long on this, I can't get any configuration of routes/mod_rewrite to rewrite the hostname. -Thadeus On Tue, Feb 16, 2010 at 10:51 PM, mdipierro wrote: > No you just need routes in to rewrite the hostname. Routesout just > need to delete dashboard from path. > > On Feb

Re: [web2py] Example of apache2 configuration where web2py exists along other sites

2010-02-16 Thread Johann Spies
Thanks to everybody who replied. I was in a situation where I urgently had to make an app available to a customer. In this case I had access to dns-entries so I just created a virtual IP on the server interface and created a separate domain name for that IP. I suppose I could just have used a CN

[web2py] PAM support

2010-02-16 Thread mdipierro
web2py in trunk now support PAM authentication on Linux systems in two ways 1) In admin. web2py.py -a '' now admin will require your 'root' password. You can specify other users. 2) In apps from gluon.contrib.login_methods.pam_auth import pam_auth auth.settings.login_methods.append(

[web2py] new GIL bug

2010-02-16 Thread mdipierro
Look at this bug report http://bugs.python.org/issue7946 specifically look at the benchmarks at the bottom. This kind of bugs affects web applications since they have threads with lots of IO. One more reason to stay with python 2.5 for now. Massimo -- You received this message because you are

[web2py] Re: An enhanced BEAUTIFY class

2010-02-16 Thread mdipierro
Sorry I did not comment. I think this this can be very useful but it should not be a replacement for the current beautify. I think it is important to leave the keys unchanged for debugging purposes. That is what most people use BEAUTIFY for. You should post a slice about the improved function and

[web2py] Re: routes for subdomain

2010-02-16 Thread mdipierro
No you just need routes in to rewrite the hostname. Routesout just need to delete dashboard from path. On Feb 16, 5:37 pm, Thadeus Burgess wrote: > I can't find any apache rewrite rules that work in this manner. > > Basically i am just trying to get > > dashboard.example.com to internally rewrite

[web2py] Re: first gae app

2010-02-16 Thread mdipierro
You are mixing gae syntax and dal syntax. This is only allowed in from gluon.contrib.gql import gae db.define_table('mytable',Field('this_is_a_list',type=gae.StringListProperty())) queries must use dal syntax. On Feb 16, 5:46 pm, Wes James wrote: > There does not seem to be an .all().   How sh

[web2py] Re: iptables

2010-02-16 Thread Anand Vaidya
Hi Massimo, Try gShield, GPL licensed script , It has a very simple configuration file and a script that reads it. I have used it for many years, pretty good script. The URL http://muse.linuxmafia.org/gshield/ is currently down, but you could dowload it from alternate locations. Regards Anand

[web2py] Re: An enhanced BEAUTIFY class

2010-02-16 Thread John Heenan
True. But surely better organised or prettier prototypes are preferable when prototyping, as they gives a more realistic idea of a final desired layout before the prettifiers get called in! You can see the effect using just BEAUTIFY at http://www.zgus.com/zgus/products/category_item/1 I don't ha

Re: [web2py] Re: An enhanced BEAUTIFY class

2010-02-16 Thread Thadeus Burgess
I will say this, it is alot better, because you can hardly even tell it is a prototyping table, it could in certain situations pass for production quality :) -Thadeus On Tue, Feb 16, 2010 at 9:06 PM, Thadeus Burgess wrote: > I am sorry that I did not comment as well. > > I took a look when y

Re: [web2py] Re: An enhanced BEAUTIFY class

2010-02-16 Thread Thadeus Burgess
I am sorry that I did not comment as well. I took a look when you originally posted, and I like it. I didn't comment because I do not use BEAUTIFY. I really do like the recursive, +1 for me, but only as another option to the current beautify not a replacement. -Thadeus On Tue, Feb 16, 2010

[web2py] Re: An enhanced BEAUTIFY class

2010-02-16 Thread villas
On Feb 17, 12:07 am, John Heenan wrote: > No reaction to including a four line big productivity booster into > web2py! Hi John, Sorry no one commented! At least I looked at it, and liked it. But Beautify is only a prototyping & testing thing for most so it's making something prettier that no on

Re: [web2py] Re: routes for subdomain

2010-02-16 Thread Jonathan Lundell
On Feb 16, 2010, at 4:25 PM, Thadeus Burgess wrote: > Thanks. It is not working like expected. It is now going to > /init/default/index. You might try experimenting with the doctest in routes.example.py (copy it and main to your routes.py unless it's already there). Going to the default locati

Re: [web2py] Re: routes for subdomain

2010-02-16 Thread Thadeus Burgess
Thanks. It is not working like expected. It is now going to /init/default/index. ('.*:https://dashboard.example.com:.* /(?P.*)', '/init/dashboard/\g'), -Thadeus On Tue, Feb 16, 2010 at 6:08 PM, Jonathan Lundell wrote: > On Feb 16, 2010, at 3:37 PM, Thadeus Burgess wrote: > >> By the way. >>

Re: [web2py] Re: routes for subdomain

2010-02-16 Thread Jonathan Lundell
On Feb 16, 2010, at 3:37 PM, Thadeus Burgess wrote: > By the way. > > routes_in containing > > ('.*:https://dashboard.example.com:GET /(?.*)', > '/init/dashboard/\g'), (?P... -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this g

[web2py] Re: An enhanced BEAUTIFY class

2010-02-16 Thread John Heenan
No reaction to including a four line big productivity booster into web2py! If not an enhanced BEAUTIFY class why not another BEAUTIFY class such as BEAUTIFY2? Surely at least an answer is merited, even if the answer is no! Below is a copy of http://www.web2pyslices.com/main/slices/take_slice/58

Re: [web2py] Re: first gae app

2010-02-16 Thread Wes James
There does not seem to be an .all(). How should the line be written? thx, -wes On Tue, Feb 16, 2010 at 4:25 PM, Wes James wrote: > so if I created a field > > Field('fieldKey', 'text') > > and put ['web2py', 'web2p', 'web2', 'web', 'we', 'w'], in for the > value and then did > > query=request

Re: [web2py] Re: routes for subdomain

2010-02-16 Thread Thadeus Burgess
I can't find any apache rewrite rules that work in this manner. Basically i am just trying to get dashboard.example.com to internally rewrite web2py's URL scheme so that it looks at /init/dashboard but the user is still staring at dashboard.example.com in their browser. This means web2py routes_o

[web2py] A comment about transactions

2010-02-16 Thread Jose
In the book, when speaking of transactions [1], gives an example of rollback and referred to again when insert a new record id is maintained. This may be so only in sqlite, sequences or generators are out of transactions. Web2py works works fine, except that the example can lead to misinterpretati

Re: [web2py] Re: first gae app

2010-02-16 Thread Wes James
so if I created a field Field('fieldKey', 'text') and put ['web2py', 'web2p', 'web2', 'web', 'we', 'w'], in for the value and then did query=request.vars._query rows=db(db.table.all().filter('fieldKey >=', query).filter('fieldKey <', query + u'\ufffd')).select(db.table.ALL, orderby=db.table.tab

Re: [web2py] Re: routes for subdomain

2010-02-16 Thread Thadeus Burgess
Can I do it for just one $c then, that is all I need. Every other controller will continue to function normally, this is only a special case controller. -Thadeus On Tue, Feb 16, 2010 at 4:35 PM, mdipierro wrote: > This cannot be done with routes (at least not unless you list all > options fo

[web2py] Roadmap - or wishlist

2010-02-16 Thread Alexandre Andrade
I think is a recorrent subject, but would be good have a roadmap or at least a wishlist. It can provide some help to achieve the roadmap, and help with documentation too. -- Atenciosamente -- = Alexandre Andrade Hipercenter.com -- You received this message because y

[web2py] Re: routes for subdomain

2010-02-16 Thread mdipierro
This cannot be done with routes (at least not unless you list all options for c). You can do this with mod-rewrite in apache. On Feb 16, 4:06 pm, Thadeus Burgess wrote: > No. > > example.com/$c/$f > > maps to > > /init/public/$c/$f > > and then > > dashboard.example.com/$f > > maps to > > /init/d

[web2py] Re: Proposal: updating the book comments/wiki

2010-02-16 Thread mdipierro
Good idea On Feb 16, 3:31 pm, villas wrote: > There are many excellent postings in this group and it would be great > if we had a systematic way of including them in the book.  The > proposal is this: > > 1. If we find a very helpful posting edit the subject header to > include [BK] and post back

[web2py] Re: help with password and admin

2010-02-16 Thread villas
Thanks. FYI 1. For php there is IbWebAdmin.net I haven't used it for ages though but I think it is still active. I saw there is a package for Ubuntu too: http://jimicompot.blogspot.com/2008/04/ibwebadmin-20-added-to-ubuntu-ppa.html 2. Cross platform client: FlameRobin.org. Is maintained and ca

Re: [web2py] routes for subdomain

2010-02-16 Thread Thadeus Burgess
No. example.com/$c/$f maps to /init/public/$c/$f and then dashboard.example.com/$f maps to /init/dashboard/$f I basically want $c.example.com/$f /init/$c/$f As I say this I kind of remember a post about this, search failing me. -Thadeus On Tue, Feb 16, 2010 at 4:02 PM, Wes James w

Re: [web2py] routes for subdomain

2010-02-16 Thread Wes James
forgot right bracket ] On Tue, Feb 16, 2010 at 2:59 PM, Wes James wrote: > On Tue, Feb 16, 2010 at 2:42 PM, Thadeus Burgess > wrote: >> I need to take the following with routes >> >> controller.website.com/action/args >> >> and convert it to >> >> /init/controller/action/args >> >> How can

Re: [web2py] routes for subdomain

2010-02-16 Thread Wes James
On Tue, Feb 16, 2010 at 2:42 PM, Thadeus Burgess wrote: > I need to take the following with routes > > controller.website.com/action/args > > and convert it to > > /init/controller/action/args > > How can I do this, I have attempted to copy the book example however > it is just giving syntax error

[web2py] routes for subdomain

2010-02-16 Thread Thadeus Burgess
I need to take the following with routes controller.website.com/action/args and convert it to /init/controller/action/args How can I do this, I have attempted to copy the book example however it is just giving syntax errors. -Thadeus -- You received this message because you are subscribed t

Re: [web2py] Re: cancel button

2010-02-16 Thread Jonathan Lundell
On Feb 16, 2010, at 12:18 PM, reyelts wrote: > I'm trying to use this with my shiny new SQLFORM. But I'm clearly > missing something. Here's a snippet: > > form = SQLFORM(...blah...) > submit = form.element(_type='submit') > > submit.parent.append(INPUT(_type='submit',_value='Cancel',_name='

Re: [web2py] Example of apache2 configuration where web2py exists along other sites

2010-02-16 Thread Alexandre Andrade
A way it works is a subdomain: www.hipercenter.com (web2py) php.hipercenter.com(php, obvious) the recipe is in (portuguese, translate with google) : http://alexandremas.blogspot.com/2010/02/como-configurar-web2py-e-php-no-mesmo.html 2010/2/13 Johann Spies > I am becoming desperate about thi

[web2py] [BK] Proposal: updating the book comments/wiki

2010-02-16 Thread villas
There are many excellent postings in this group and it would be great if we had a systematic way of including them in the book. The proposal is this: 1. If we find a very helpful posting edit the subject header to include [BK] and post back to the group (e.g. as in the subject of this message).

Re: [web2py] Displaying a gantt like chart...

2010-02-16 Thread Alexandre Andrade
Once a create a graphic class in php to do that. In a graphic, it is easier, because you create the ''all days'' plot, and then, create your planned date over. I think the logic is similar. The gantt class is in http://www.phpclasses.org/browse/package/2737.html In html you have to adjust, beca

[web2py] Re: help with password and admin

2010-02-16 Thread mdipierro
You will be able to do aptget The only reason is that we have phpmyadmin and phppgadmin but I do know of anything similar for firebird. Turnkey already provides a LAPP and I only need to customize by adding web2py.. I implemented PAM login in admin and as a plugin for auth. Will push tonight. O

Re: [web2py] iptables

2010-02-16 Thread Richard Shebora
You might look at http://www.shorewall.net/ for the iptables portion, and it comes with great example config files. I think you need something else to block requests or connections per minute like http://www.fail2ban.org, it has worked well for me. Hope this helps, Richard Shebora On Tue, Feb 16

[web2py] Re: cancel button

2010-02-16 Thread mdipierro
if request.vars.button == 'Cancel': session.flash = 'profile create was cancelled' session.flash = 'profile update was cancelled' redirect(URL(r=request,f='index')) elif form.accepts(request.vars,session,dbio=False): del request.vars.button ...update/insert logic

[web2py] Re: help with password and admin

2010-02-16 Thread mdipierro
You can install it. By default I am going with postgres because they already have a lapp applicance with phppgadmin On Feb 16, 1:50 pm, villas wrote: > The appliance sounds great,  but only PostgreSQL? > Any chance of Firebird? > If not, will the script be available so I can adapt it? > > David

[web2py] Re: cancel button

2010-02-16 Thread reyelts
I'm trying to use this with my shiny new SQLFORM. But I'm clearly missing something. Here's a snippet: form = SQLFORM(...blah...) submit = form.element(_type='submit') submit.parent.append(INPUT(_type='submit',_value='Cancel',_name='button')) if request.vars.button == 'Cancel': s

[web2py] Re: help with password and admin

2010-02-16 Thread villas
The appliance sounds great, but only PostgreSQL? Any chance of Firebird? If not, will the script be available so I can adapt it? David -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com

[web2py] iptables

2010-02-16 Thread mdipierro
does anybody have a decent iptables script that: - rejects malformed requests - allows only http, https and ssh - blocks sys attacks - blocks more 3 ssh connections/minute to ssh - blocks more 10 http requests/minute from known spiders (yahoo, google, ms) - blocks all https request from spiders -

[web2py] Re: unmarshallable object problem

2010-02-16 Thread mdipierro
session.myrec = db(PIDB.PI_username==auth.user.username).select().first().as_dict() On Feb 16, 12:40 pm, reyelts wrote: > I see, it was the following statement after the insert() that was the > underlying cause: > >    session.myrec = > db(PIDB.PI_username==auth.user.username).select().first() >

[web2py] Re: unmarshallable object problem

2010-02-16 Thread reyelts
I see, it was the following statement after the insert() that was the underlying cause: session.myrec = db(PIDB.PI_username==auth.user.username).select().first() I played around with different variations on this theme with no luck. Is there something inherently wrong with trying to store a dat

[web2py] Re: they are copying us....

2010-02-16 Thread mikech
To quote a saying: Imitation is the sincerest form of flattery. On Feb 16, 6:48 am, mdipierro wrote: > sorry was a joke and I did not mean it in a negative ways. I meant to > indicate that if before we were taking inspirations from them now thay > are taking inspirations from us. I think that is

[web2py] New features not documented in Book (2 ed)

2010-02-16 Thread DenesL
New features not documented in Book (2nd edition) 1.75.2 - no more cron with -S option - ability to overwrite/upgrade and app http://groups.google.com/group/web2py/msg/4f3ba5eedeced6a6 - gluon.tools.prettydate http://groups.google.com/group/web2py/msg/03ea6109ec90f0c8 - crud.archive http://g

[web2py] Re: extend login method of Auth class

2010-02-16 Thread mdipierro
It should be B is you require email verification. Need to update the docs. On Feb 16, 11:41 am, reyelts wrote: > Hmm... I stumbled on a headscratcher that took a while to figure out. > When I use the register function to create a new user, that user is > automatically logged in. But, auth.setting

[web2py] Re: unmarshallable object problem

2010-02-16 Thread mdipierro
You are storing in session something that cannot be stored like a function, a complex object or a reference to an open database. On Feb 16, 10:57 am, reyelts wrote: > First, I'm trying to create a data base entry using SQLFORM+insert(), > and am getting this error: > > S'Traceback (most recent ca

[web2py] Re: Auth class and login time

2010-02-16 Thread reyelts
Sweet. Are there any other interesting undocumented variables like this? Is there any reason they aren't mentioned in the documentation? -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com

[web2py] Re: extend login method of Auth class

2010-02-16 Thread reyelts
Hmm... I stumbled on a headscratcher that took a while to figure out. When I use the register function to create a new user, that user is automatically logged in. But, auth.settings.login_onaccept was never invoked. I would have expected one of the following: A) The auth.settings.login_onaccept fu

Re: [web2py] Re: New features not documented in Book (2 ed)

2010-02-16 Thread Jonathan Lundell
On Feb 16, 2010, at 8:32 AM, DenesL wrote: > > Thanks (it is copy/paste of the original). > Do you know of any docs on usage?. On the admin app's app-installation page, there's a checkbox to enable overwriting of an uploaded app. If not checked, the behavior is the same as before: an attempt t

[web2py] Re: extend login method of Auth class

2010-02-16 Thread reyelts
Thanks... it's a beautiful thing. Sorry I didn't see that in the doc... I clearly wasn't searching on the right keywords. -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscrib

[web2py] unmarshallable object problem

2010-02-16 Thread reyelts
First, I'm trying to create a data base entry using SQLFORM+insert(), and am getting this error: S'Traceback (most recent call last):\n File "gluon/main.py", line 504, in wsgibase\n File "gluon/globals.py", line 375, in _try_store_on_disk\n File "gluon/sql.py", line 705, in Row_pickler \nValueE

[web2py] Re: IS_NULL_OR vs IS_IN_DB with brackets

2010-02-16 Thread reyelts
villas, That was cut/paste from the web version of the book... formatting errors and all. Fortunately, the live code I'm working on doesn't have that particular error. mdpierro, THANKS for the redirect... putting the brackets on the outside did the trick. -- You received this message because you

[web2py] Re: New features not documented in Book (2 ed)

2010-02-16 Thread DenesL
Thanks (it is copy/paste of the original). Do you know of any docs on usage?. On Feb 16, 11:21 am, Jonathan Lundell wrote: > On Feb 16, 2010, at 7:16 AM, DenesL wrote: > > > New features not documented in Book (2nd edition) > > > 1.75.2 > > - no more cron with -S option > > - ability to override

Re: [web2py] New features not documented in Book (2 ed)

2010-02-16 Thread Jonathan Lundell
On Feb 16, 2010, at 7:16 AM, DenesL wrote: > New features not documented in Book (2nd edition) > > 1.75.2 > - no more cron with -S option > - ability to override/upgrade and app overwrite -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To pos

[web2py] Re: help with password and admin

2010-02-16 Thread mdipierro
Found the solution: http://atlee.ca/software/pam/ I will include this in web2py admin and integrate it with http://www.turnkeylinux.org/lapp The turnkey developers have done a great job and are very friendly. They have a well documented sdk and everything we need. Once done this vm will be listed

[web2py] Re: flush cache

2010-02-16 Thread hamdy.a.farag
This's also cool, thank you -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com. For more options, visi

Re: [web2py] Re: help with password and admin

2010-02-16 Thread Thadeus Burgess
Ok :) That will be awesome. -Thadeus On Tue, Feb 16, 2010 at 9:35 AM, mdipierro wrote: > t suggesting that. There will always be ssh access. I just > want a vm that boots with web2 -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post t

[web2py] Re: help with password and admin

2010-02-16 Thread mdipierro
I was not suggesting that. There will always be ssh access. I just want a vm that boots with web2py out of the box and non-trivial to guess password assigned by the provider that can be changed. On Feb 16, 9:16 am, Thadeus Burgess wrote: > Well if I don't have ssh access to the machine, then I ca

Re: [web2py] Re: flush cache

2010-02-16 Thread Thadeus Burgess
Also if you need to flush the entire cache cache.ram.clear() cache.disk.clear() There is also code in the new appadmin that shows you cache statistics, with buttons to clear it if you need to during development. -Thadeus On Tue, Feb 16, 2010 at 8:54 AM, hamdy.a.farag wrote: > :) > > Aha

Re: [web2py] Re: help with password and admin

2010-02-16 Thread Thadeus Burgess
Well if I don't have ssh access to the machine, then I can't get in and install mercurial on it and whatnot. I also cannot host my mercurial repositories over ssh. I was just trying to say that, even though most users might not need to ssh into the system, don't lock it down so it loses the abilit

[web2py] New features not documented in Book (2 ed)

2010-02-16 Thread DenesL
New features not documented in Book (2nd edition) 1.75.2 - no more cron with -S option - ability to override/upgrade and app - gluon.tools.prettydate http://groups.google.com/group/web2py/msg/03ea6109ec90f0c8 - crud.archive http://groups.google.com/group/web2py/msg/d4892f347889fc6e - better uu

[web2py] Re: flush cache

2010-02-16 Thread hamdy.a.farag
:) Aha thanks -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com. For more options, visit this group a

[web2py] Re: they are copying us....

2010-02-16 Thread mdipierro
sorry was a joke and I did not mean it in a negative ways. I meant to indicate that if before we were taking inspirations from them now thay are taking inspirations from us. I think that is a nice project and perhaps we can learn from it too. On Feb 16, 3:25 am, pistacchio wrote: > hi massimo, >

[web2py] Re: WSGI, Apache2, and web2py NOT at root

2010-02-16 Thread mdipierro
No. This should got in the errata page (to be created and attached to preface) until it is fixed in the book. On Feb 16, 6:42 am, Christopher Steel wrote: > Thanks, > > In our new documentation scheme would this become a comment in the now > online book? > > C > > On Feb 15, 11:10 am, mdipierro

[web2py] Re: how to NOT IN with DAL?

2010-02-16 Thread mdipierro
Yes. print db(db.t.day wrote: > Thanks, Massimo. Are you sure about the "[db.t.day.max()]"? > > I'll also check dal.py if I don't find it in the book. ;-) > > @Thadeus: on a Sybase ASE MAX returns one row only. See below. > > CREATE TABLE "mt_mytable" ( > id int not null, > text varchar > ) > > in

[web2py] Re: flush cache

2010-02-16 Thread mdipierro
set the time to zero. cache.ram(,0) or db(...).select(...,cache=(cache.ram,0))) On Feb 16, 3:12 am, "hamdy.a.farag" wrote: > Hi > > it's important that we've a cache say for example for example in a tag > cloud that shows the recently added products to database > but how can I force some

[web2py] Re: On the online book

2010-02-16 Thread Nico de Groot
Online book is very usefull, nice touch that searching the book also searches the Google group. On the startingpage there is a link 'Complete API', but it doesn't fulfill its semantic promise, it links to a page with just the helper functions. Shouldn't we show the API (http://web2py.com/examples/

[web2py] Re: IS_NULL_OR vs IS_IN_DB with brackets

2010-02-16 Thread villas
> db.dog.owner.requires = [IS_NULL_OR(IS_IN_DB(db, 'person.id', '))] The last apostrophe still doesn't seem right, either take it out, or, try this (the name will be used in the drop down box): db.dog.owner.requires = [IS_NULL_OR(IS_IN_DB(db, 'person.id', '% (name)s'))] -- You received this me

[web2py] Re: they are copying us....

2010-02-16 Thread pistacchio
didn't get it as a joke, sorry for that :) On Feb 16, 11:17 am, Kuba Kucharski wrote: > lol, I understood "copying us" was clearly a semi-joke.. a sarcasm.. > "why so serious, son?" :)) > > -- > Kuba -- You received this message because you are subscribed to the Google Groups "web2py-users" gr

Re: [web2py] Re: they are copying us....

2010-02-16 Thread Albert Abril
(where i told **almost** i would say **especially**, i confused, sorry about my english) On Tue, Feb 16, 2010 at 2:07 PM, Albert Abril wrote: > knowing the efforts that massimo did (and is doing) with web2py, almost > keepin it open, i got it as an intented joke. > > of course is good taking idea

Re: [web2py] Re: they are copying us....

2010-02-16 Thread Jason Brower
Hmm... If I though someone was plagurizing my idea I would say it. But I think copy is the best term you could use here. I don't know of a better way to say it. Copy is an ok thing to say, it's just the media has turned it into a bad thing. My two cents. --- Best Regards, Jason Brower On Tue, 201

Re: [web2py] Re: they are copying us....

2010-02-16 Thread Albert Abril
knowing the efforts that massimo did (and is doing) with web2py, almost keepin it open, i got it as an intented joke. of course is good taking ideas from here and from there, and makes opensource better as possible. this is why FLOSS rocks! regards! On Tue, Feb 16, 2010 at 11:17 AM, Kuba Kuchars

[web2py] Re: WSGI, Apache2, and web2py NOT at root

2010-02-16 Thread Christopher Steel
Thanks, In our new documentation scheme would this become a comment in the now online book? C On Feb 15, 11:10 am, mdipierro wrote: > I am changing this in trunk. I run into the same problem. The new > script also prompts you for the admin password. > > On Feb 15, 9:31 am, Christopher Steel wr

Re: [web2py] web2py 1.75.2 is Out

2010-02-16 Thread Alex Fanjul
Massimo, by the moment vps worked well for my projects, very easy fast and reliable, so good luck. regards Alex El 16/02/2010 7:53, mdipierro escribió: - no more cron with -S option - ability to override/upgrade and app - gluon.tools.prettydate - crud.archive - better uuid avoids conflicts on

Re: [web2py] Re: they are copying us....

2010-02-16 Thread Kuba Kucharski
lol, I understood "copying us" was clearly a semi-joke.. a sarcasm.. "why so serious, son?" :)) -- Kuba -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this gro

[web2py] Re: how to NOT IN with DAL?

2010-02-16 Thread baloan
Hi Tiago, you mean like this? SELECT DAY FROM T WHERE DAY < '2007-12-04' ORDER BY DAY DESC LIMITBY 1 I remember this not working on Oracle 7.3.4 (yeah it is somewhat outdated) because Oracle would sort only AFTER limiting the result set. So, as a workaround this might not work on all databases.

[web2py] Re: they are copying us....

2010-02-16 Thread Mengu
actually i don't think massimo really meant "they are copying us" in the way you understood. what i have understood from his sentence is "this is an approval of our approach to how a framework should be" On 16 Şubat, 11:25, pistacchio wrote: > hi massimo, > i really appreciate your work on web2py

[web2py] Re: how to NOT IN with DAL?

2010-02-16 Thread baloan
Thanks, Massimo. Are you sure about the "[db.t.day.max()]"? I'll also check dal.py if I don't find it in the book. ;-) @Thadeus: on a Sybase ASE MAX returns one row only. See below. CREATE TABLE "mt_mytable" ( id int not null, text varchar ) insert into "tempdb"."guest"."mt_mytable" (id, text)

[web2py] Re: they are copying us....

2010-02-16 Thread pistacchio
hi massimo, i really appreciate your work on web2py. the product is excellent, i've just launched my first site using it and other two are on the work. i like the new documentation (how it's shaping up) and the way you "rule" the community around web2py prove that your way is right. i mean, you do

[web2py] flush cache

2010-02-16 Thread hamdy.a.farag
Hi it's important that we've a cache say for example for example in a tag cloud that shows the recently added products to database but how can I force some cached function to flush cache and re-read database based on certain situations like [admin adds new product, and want to flush cache of a the