[web2py:33800] Re: Making a reference to an auth_user

2009-10-26 Thread mr.freeze
I made a simple patch that lets this work and is seemingly backwards compatible (didn't break my apps anyway). It basically automatically does a select for any reference fields so you can do this (db.things has a reference field 'author' to auth_user in this example): record = db(db.things.id==1

[web2py:33799] Re: powered by web2py?

2009-10-26 Thread mdipierro
Nice and useful! Thank you for the acknowledgment. I would prefer if you just mention web2py and not my name (and this applies to everybody else too). It is important to stress there is a large community behind the product. On Oct 27, 12:06 am, "ont.rif" wrote: > http://help4me.ru > > This is o

[web2py:33798] Re: powered by web2py?

2009-10-26 Thread ont.rif
http://help4me.ru This is our first attempt. we use this things: * FastCGI + apache * PostgreSQL * git for version control and deployment On Oct 26, 9:46 am, mdipierro wrote: > www.appliedstacks.comis dead. This means I lost a way to keep track > of web2py sites. So I made something trivi

[web2py:33797] Re: Making a reference to an auth_user

2009-10-26 Thread mr.freeze
bumping in case you missed the previous question since we posted at the same time On Oct 26, 11:47 pm, "mr.freeze" wrote: > Also, why doesn't this work?: > > record = db(db.tablename.id==1).select()[0] > print record.author.email > > It seems like it should work since author is a reference to au

[web2py:33796] Re: Making a reference to an auth_user

2009-10-26 Thread mdipierro
No. I just try to stay away from joins to leave me the option to run on GAE. On Oct 26, 11:38 pm, "mr.freeze" wrote: > This is how I usually do it.  Is there a better way to do this join? > > all = db((db.tablename.author==db.auth_user.id)& > (db.auth_user.id==auth.user.id)).select() > for a in

[web2py:33795] Re: Making a reference to an auth_user

2009-10-26 Thread mr.freeze
Also, why doesn't this work?: record = db(db.tablename.id==1).select()[0] print record.author.email It seems like it should work since author is a reference to auth_user and it's referencing a distinct record. On Oct 26, 11:25 pm, mdipierro wrote: > Given: > > ... Field("author", db.auth_user,

[web2py:33794] Re: Making a reference to an auth_user

2009-10-26 Thread mr.freeze
This is how I usually do it. Is there a better way to do this join? all = db((db.tablename.author==db.auth_user.id)& (db.auth_user.id==auth.user.id)).select() for a in all: print a.tablename.title, a.auth_user.email On Oct 26, 11:25 pm, mdipierro wrote: > Given: > > ... Field("author", db

[web2py:33793] Re: Making a reference to an auth_user

2009-10-26 Thread mdipierro
Given: ... Field("author", db.auth_user, default=auth.user.if if auth.user else 0) ... db.tablename.author.requires=IS_IN_DB(db,'auth_user.id','%(first_name) s %(last_name)s') You can do record = db(db.tablename.id>0).select().first() print db.auth_user[record.author].first_name and/or row=

[web2py:33792] Re: Looking for a simple reservation system

2009-10-26 Thread mr.freeze
Cool. I tested it and it worked for me. > It would be great if one of you were to adopt it and maintain it. > > Massimo > > On Oct 26, 10:45 pm, mdipierro wrote: > > > Can you help me with this? > > >    http://web2py.com/examples/static/web2py.app.booking.w2p > > > Almost everything works exce

[web2py:33791] Re: Looking for a simple reservation system

2009-10-26 Thread mdipierro
BTW. The total length is 40 lines of python code (models and controllers) on top of the scaffoding app + ~200 lines of custom html + fullcalendar.js and dependencies. On Oct 26, 11:17 pm, mdipierro wrote: > Fixed and resposted. It works great and I think it does what people > asked. > > - It may

[web2py:33790] Re: Looking for a simple reservation system

2009-10-26 Thread mdipierro
Fixed and resposted. It works great and I think it does what people asked. - It may need a new more js effects. - It certainly needs a better layout. - It is all coded as a plugin (so you can add this to app that defines db, auth, crud) - You may want to add some more actions It would be great i

[web2py:33789] Re: Making a reference to an auth_user

2009-10-26 Thread Wiiboy
And then how would I get the user's info? db(db.auth_user.id == db.tablename.author) ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web2py@googlegroups.c

[web2py:33788] Re: Blackberry mileage tracker

2009-10-26 Thread mdipierro
+1 On Oct 26, 10:33 pm, "mr.freeze" wrote: > Here's a quick app I wrote to help our users track mileage from their > Blackberry.  It requires PIN and email headers enabled on your BES > (and uses them to detect the current user) but could be easily > modified to use normal auth. The views are st

[web2py:33787] Re: gae "like" operator

2009-10-26 Thread mdipierro
On Oct 26, 10:23 pm, Richard wrote: > I am also wondering this. Apparently there is a hack to match a > prefix, but not a general solution: > > http://code.google.com/appengine/docs/python/datastore/queriesandinde... > """ > Query filters do not have an explicit way to match just part of a > st

[web2py:33786] Re: Versioning with Mercurial

2009-10-26 Thread mdipierro
Yes, as you would with any normal folder. On Oct 26, 8:55 pm, Wiiboy wrote: > Can I use mercurial by itself to do something? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this grou

[web2py:33785] Re: Looking for a simple reservation system

2009-10-26 Thread mdipierro
Can you help me with this? http://web2py.com/examples/static/web2py.app.booking.w2p Almost everything works except the jquery calendar widget does not display events. I do not know why. It would also be nice to add a better layout. Massimo On Oct 26, 8:02 pm, Thadeus Burgess wrote: > It

[web2py:33784] Blackberry mileage tracker

2009-10-26 Thread mr.freeze
Here's a quick app I wrote to help our users track mileage from their Blackberry. It requires PIN and email headers enabled on your BES (and uses them to detect the current user) but could be easily modified to use normal auth. The views are stripped down to be fast and look better on a mobile de

[web2py:33783] Re: Making a reference to an auth_user

2009-10-26 Thread Thadeus Burgess
db.tablename.author.default = auth.user.id -Thadeus On Mon, Oct 26, 2009 at 10:17 PM, Wiiboy wrote: > > How would I make a field in my DB a reference to a auth_user? > > Wouldn't it be: > Field("author", db.auth_user, default=auth.user) > > ? > > > --~--~-~--~~~-

[web2py:33782] Re: gae "like" operator

2009-10-26 Thread Richard
I am also wondering this. Apparently there is a hack to match a prefix, but not a general solution: http://code.google.com/appengine/docs/python/datastore/queriesandindexes.html """ Query filters do not have an explicit way to match just part of a string value, but you can fake a prefix match usi

[web2py:33781] Making a reference to an auth_user

2009-10-26 Thread Wiiboy
How would I make a field in my DB a reference to a auth_user? Wouldn't it be: Field("author", db.auth_user, default=auth.user) ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this

[web2py:33780] Re: Versioning with Mercurial

2009-10-26 Thread Wiiboy
Can I use mercurial by itself to do something? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe from this group, send em

[web2py:33779] Re: Versioning with Mercurial

2009-10-26 Thread mdipierro
For now you can only commit. On Oct 26, 8:10 pm, Wiiboy wrote: > Hey, > I'm looking into the versioning feature.  What should I use it for?  I > mean, I know I can commit from the web interface, but what else can I > do with it? --~--~-~--~~~---~--~~ You received

[web2py:33778] Re: Python 3.1

2009-10-26 Thread mdipierro
I am wrong. I remember trying this and having problems but I tried again with 3.1.1 and worked fine. I must have done something wrong before. Massimo On Oct 26, 8:30 pm, Alan Harris-Reid wrote: > Hi Massimo, thanks for the insight. > > If you think moving over to unicode is such a bad thing, wh

[web2py:33777] Re: Python 3.1

2009-10-26 Thread mdipierro
I am wrong! Please ignore my previous message. Massimo On Oct 26, 8:18 pm, Graham Dumpleton wrote: > On Oct 27, 10:57 am, mdipierro wrote: > > > In Python 2.x you can do s.find(..), s.replace(..), etc. where s is a > > byte string. This API does not exist anymore in in Python 3.x and you > > c

[web2py:33776] Re: Python 3.1

2009-10-26 Thread Alan Harris-Reid
Hi Massimo, thanks for the insight. If you think moving over to unicode is such a bad thing, why do you think the Python developers have decided to go down this route? Surely there must be advantages in the long-term? Alan On Oct 26, 11:57 pm, mdipierro wrote: > In Python 2.x you can do s.find

[web2py:33775] Re: powered by web2py?

2009-10-26 Thread mr.freeze
It's the wmd markdown toolbar (same as stack overflow). You can work offline in any markdown editor and paste in later. On Oct 26, 8:17 pm, Thadeus Burgess wrote: > Thanks. What about a button to toggle the rich text editor, so it could be > worked on offline and posted? > > -Thadeus > > On Mon

[web2py:33774] Re: Python 3.1

2009-10-26 Thread Graham Dumpleton
On Oct 27, 10:57 am, mdipierro wrote: > In Python 2.x you can do s.find(..), s.replace(..), etc. where s is a > byte string. This API does not exist anymore in in Python 3.x and you > can only do string manipulation if s a unicode string. This is very > bad because all network protocols use byt

[web2py:33773] Re: powered by web2py?

2009-10-26 Thread Thadeus Burgess
Thanks. What about a button to toggle the rich text editor, so it could be worked on offline and posted? -Thadeus On Mon, Oct 26, 2009 at 8:15 PM, mr.freeze wrote: > > Great! The session length is 90 minutes so you may want to post > periodically if it gets lengthy. > > On Oct 26, 8:01 pm, T

[web2py:33772] Re: powered by web2py?

2009-10-26 Thread mr.freeze
Great! The session length is 90 minutes so you may want to post periodically if it gets lengthy. On Oct 26, 8:01 pm, Thadeus Burgess wrote: > Doing it! :) > > -Thadeus > > On Mon, Oct 26, 2009 at 6:53 PM, Yarko Tymciurak < > > resultsinsoftw...@gmail.com> wrote: > > Yes, indeed - a slice about s

[web2py:33771] Versioning with Mercurial

2009-10-26 Thread Wiiboy
Hey, I'm looking into the versioning feature. What should I use it for? I mean, I know I can commit from the web interface, but what else can I do with it? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py-use

[web2py:33770] Re: Looking for a simple reservation system

2009-10-26 Thread Thadeus Burgess
It would be nice to have a simple scheduling / allocation interface, that could easily be extended. Provide a base system so that everyone can add their own requirements into it. -Thadeus On Mon, Oct 26, 2009 at 7:49 PM, Alex Fanjul wrote: > We have a requirement for system like this for a

[web2py:33769] Re: powered by web2py?

2009-10-26 Thread Thadeus Burgess
Doing it! :) -Thadeus On Mon, Oct 26, 2009 at 6:53 PM, Yarko Tymciurak < resultsinsoftw...@gmail.com> wrote: > Yes, indeed - a slice about slicehost setup for web2py - think about it, > Thadeus! > > > On Mon, Oct 26, 2009 at 5:36 PM, mr.freeze wrote: > >> >> Yes, me too. Could be a good opp

[web2py:33768] Re: VPS Hosting reviews

2009-10-26 Thread Alex Fanjul
Wow Villas, the uk ips you sent us are really impresive fast!!! from spain!! could you tell us some more about vps.net? your background experience with them? support, attention, time response, systems uptime, features, limitations, etc.? we are take into consideration slicehost and vps.net (than

[web2py:33767] Re: Looking for a simple reservation system

2009-10-26 Thread Alex Fanjul
We have a requirement for system like this for a laboratory with rooms and objets (machines, cubes, etc.) treated as shared resources, as soon as I can I will send you the requirements. Alex F El 27/10/2009 1:06, david bain escribió: > Just to extend the feature set, it would be nice if you coul

[web2py:33766] Re: Looking for a simple reservation system

2009-10-26 Thread david bain
Just to extend the feature set, it would be nice if you could 'register' and manage/present the bookings of multiple properties. On Mon, Oct 26, 2009 at 4:38 PM, villas wrote: > > We have a similar system requirement: accommodation bookings. In > this case, each room/property is booked for a

[web2py:33765] Re: Python 3.1

2009-10-26 Thread mdipierro
In Python 2.x you can do s.find(..), s.replace(..), etc. where s is a byte string. This API does not exist anymore in in Python 3.x and you can only do string manipulation if s a unicode string. This is very bad because all network protocols use bytes not unicode. The solution bytes>unicode>manipu

[web2py:33764] Re: powered by web2py?

2009-10-26 Thread Yarko Tymciurak
Yes, indeed - a slice about slicehost setup for web2py - think about it, Thadeus! On Mon, Oct 26, 2009 at 5:36 PM, mr.freeze wrote: > > Yes, me too. Could be a good opportunity for you to make a slice > about slicehost :) > > On Oct 26, 5:29 pm, Yarko Tymciurak > wrote: > > Very cool; so so f

[web2py:33763] Re: Python 3.1

2009-10-26 Thread Alan Harris-Reid
Massimo - thanks for the reply. Looks like 2.6 is the way to go until the developers catch-up with Python3 (that is if they think if it's worth doing in the first place). Regards, Alan On 26 Oct, 02:36, mdipierro wrote: > This issues comes up once every week. > > Web2py promises backward compa

[web2py:/] Re: powered by web2py?

2009-10-26 Thread Yarko Tymciurak
Very cool; so so for about double the starting price on webfaction (for example) you get entire root to a machine (virtual) of your own I'll have to keep my eye on this. I may be asking you questions about setup, Thadeus ;-) On Mon, Oct 26, 2009 at 4:38 PM, Thadeus Burgess wrote: > Ah... w

[web2py:33762] Re: powered by web2py?

2009-10-26 Thread mr.freeze
Yes, me too. Could be a good opportunity for you to make a slice about slicehost :) On Oct 26, 5:29 pm, Yarko Tymciurak wrote: > Very cool;  so so for about double the starting price on webfaction (for > example) you get entire root to a machine (virtual) of your own I'll > have to keep my

[web2py:33760] Re: powered by web2py?

2009-10-26 Thread Thadeus Burgess
Ah... well it is explained here: qoute >>The site is a web app that tracks fish tanks on gaiaonline.com. Basically, >>gaia has this mini game called "Booty Grab" (here is more info >>https://www.gaiaonlinehelp.com/ics/support/KBAnswer.asp?questionID=17

[web2py:33759] Re: Looking for a simple reservation system

2009-10-26 Thread villas
We have a similar system requirement: accommodation bookings. In this case, each room/property is booked for a flexible period of days. As Weheh says, in each type of resource booking system, there are so many add-on requirements for each use case. I believe one of the central features of a

[web2py:33758] Re: powered by web2py?

2009-10-26 Thread Doxaliber
Also webfaction don't register domains! For me this isn't an issue, because if you register your domain using a domain provider you can change your server at any time without worries! I host all my .com and .net domains at godaddy and all .it domains at an italian hosting provider. Slicehost is

[web2py:33757] Re: powered by web2py?

2009-10-26 Thread Thadeus Burgess
The only cavaet is they don't register domains, so you still need to register your domain with like dreamhost/webfaction/yahoo etc. and just point your nameservers to slicehost. So in this case, thadeusb.com is still hosted on Dreamhost, and I have the subdomain's A record pointing to my slicehost.

[web2py:33756] Re: VPS Hosting reviews

2009-10-26 Thread villas
Hi Alex > I'm from Spain That's cool, I live next door, in Portugal! But we also have a UK company. > Vps.net goes to eeuu, do you know the uk server ip? can I specify that I > want uk server for hosting or its up to them? You rent the number of 'nodes' that you want and then load into thes

[web2py:33755] Re: GIS

2009-10-26 Thread mdipierro
This may be useful. It is a view to use to add points to google maps: http://bazaar.launchpad.net/~mdipierro/web2conf/devel/annotate/head%3A/views/default/maps.html > Hello > > Im trying to mak e a GIS oriented application in web2py. Id like to > know if someone has already tried doing this and

[web2py:33754] Re: powered by web2py?

2009-10-26 Thread mdipierro
wow slicehost is incredibly fast! Massimo On Oct 26, 4:02 pm, Thadeus Burgess wrote: > Gah, forgot the -R on the chmod command :) > > Try it now please. > > -Thadeus > > On Mon, Oct 26, 2009 at 3:56 PM, Doxaliber wrote: > > > I'm sorry Thadeus but still I see "internal error, ticked issue" :-/

[web2py:33753] GIS

2009-10-26 Thread Adolfo
Hello Im trying to mak e a GIS oriented application in web2py. Id like to know if someone has already tried doing this and where can i find information about this subjetct My application would be very simple. I'll have a world map that can show me some database records by their coordinates than

[web2py:33752] Re: powered by web2py?

2009-10-26 Thread Thadeus Burgess
Gah, forgot the -R on the chmod command :) Try it now please. -Thadeus On Mon, Oct 26, 2009 at 3:56 PM, Doxaliber wrote: > > I'm sorry Thadeus but still I see "internal error, ticked issue" :-/ > > On 26 Ott, 21:47, Thadeus Burgess wrote: > > I don't... ok checked the ticket logs, incorrec

[web2py:33751] Re: powered by web2py?

2009-10-26 Thread Doxaliber
I'm sorry Thadeus but still I see "internal error, ticked issue" :-/ On 26 Ott, 21:47, Thadeus Burgess wrote: > I don't... ok checked the ticket logs, incorrect permissions on the > languages directory. :) > > Try now. Thanks for debugging! > > -Thadeus > > On Mon, Oct 26, 2009 at 3:41 PM, Doxal

[web2py:33750] Re: powered by web2py?

2009-10-26 Thread Thadeus Burgess
Yes, I had it on dreamhost using their Passenger/WSGI implementation with a custom install of Python 2.6 -Thadeus On Mon, Oct 26, 2009 at 3:46 PM, mr.freeze wrote: > > That is much faster than before. Was it on Dreamhost previously? > > On Oct 26, 3:16 pm, Thadeus Burgess wrote: > > surren

[web2py:33749] Re: powered by web2py?

2009-10-26 Thread Thadeus Burgess
I don't... ok checked the ticket logs, incorrect permissions on the languages directory. :) Try now. Thanks for debugging! -Thadeus On Mon, Oct 26, 2009 at 3:41 PM, Doxaliber wrote: > > I think you can see it by yourself. :-) When I click to the link I > get: internal error and the ticked

[web2py:33748] Re: powered by web2py?

2009-10-26 Thread mr.freeze
That is much faster than before. Was it on Dreamhost previously? On Oct 26, 3:16 pm, Thadeus Burgess wrote: > surrenderthebooty.thadeusb.com is back online. > > For web2py users, I created a default account so yall can take a gander. > > E: web...@example.com > P: web2py > > I am hosting on 256

[web2py:33747] Re: powered by web2py?

2009-10-26 Thread Doxaliber
I think you can see it by yourself. :-) When I click to the link I get: internal error and the ticked issue. On 26 Ott, 21:27, Thadeus Burgess wrote: > elaborate? > > -Thadeus > > On Mon, Oct 26, 2009 at 3:20 PM, salingrosso wrote: > > rry, there is an error at the moment... :-/ --~--~

[web2py:33746] Re: powered by web2py?

2009-10-26 Thread Thadeus Burgess
elaborate? -Thadeus On Mon, Oct 26, 2009 at 3:20 PM, salingrosso wrote: > rry, there is an error at the moment... :-/ > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this grou

[web2py:33745] Re: powered by web2py?

2009-10-26 Thread salingrosso
Sorry, there is an error at the moment... :-/ 2009/10/26 Thadeus Burgess > surrenderthebooty.thadeusb.com is back online. > > For web2py users, I created a default account so yall can take a gander. > > E: web...@example.com > P: web2py > > I am hosting on 256mb slicehost. Ubuntu 9.04 Server. Ap

[web2py:33744] Re: powered by web2py?

2009-10-26 Thread Thadeus Burgess
surrenderthebooty.thadeusb.com is back online. For web2py users, I created a default account so yall can take a gander. E: web...@example.com P: web2py I am hosting on 256mb slicehost. Ubuntu 9.04 Server. Apache + mod_wsgi + localhost postgresql & python2.6. I have an average load of 50 users du

[web2py:33743] Re: Location of .htaccess for mod_rewrite using Apache WSGI virtual host

2009-10-26 Thread Thadeus Burgess
Ok [SOLVED] the routes_in and routes_out problem. Solution below... However I am having trouble finding the right location for my .htaccess, I would much prefer using apache mod_rewrite. I have tried using a basic "Deny from all" .htaccess for testing, I have tried the web2py directory, the app di

[web2py:33742] Re: VPS Hosting reviews

2009-10-26 Thread Alex Fanjul
Yes of course, I did it with visual route, I leave teamporally a link to download the software (I think trials) here in my server: http://mhproject.org/media/users/aleksdj/Visual_Route_2008_v.12.rar http://mhproject.org/media/users/aleksdj/VisualRoute_2009-v13.1e.zip When you enter several ips or

[web2py:33741] Re: FORM with self located fields and data from two tables

2009-10-26 Thread znafets
Massimo, I am sorry, I will try to be more explicite here: the model (two tables user and addr) db.define_table('user', Field('name', length=12, requires=IS_NOT_EMPTY()), Field('alias',length=12 ), Field('rname', length=28), Field(

[web2py:33740] Re: VPS Hosting reviews

2009-10-26 Thread salingrosso
Hi Alex, can you send us the script that you've used to create those statistics and this screenshot? 2009/10/26 Alex Fanjul > > Yea, its so important Villas, I'm from Spain and I'm doing in fact round > trip time benchmarks to all of vps hosting you expose, by the moment the > most direct (les

[web2py:33739] Re: VPS Hosting reviews

2009-10-26 Thread mdipierro
Nice plot.how ddid you make it? On Oct 26, 1:48 pm, Alex Fanjul wrote: > Yea, its so important Villas, I'm from Spain and I'm doing in fact round > trip time benchmarks to all of vps hosting you expose, by the moment the > most direct (less hops) and quickests is serveraxis.com > > Connection Gr

[web2py:33738] Re: VPS Hosting reviews

2009-10-26 Thread Alex Fanjul
Yea, its so important Villas, I'm from Spain and I'm doing in fact round trip time benchmarks to all of vps hosting you expose, by the moment the most direct (less hops) and quickests is serveraxis.com Connection Graph: http://irekia.com/screenshots/2009-10-26_194649.png Vps.net goes to eeuu,

[web2py:33737] Re: FORM with self located fields and data from two tables

2009-10-26 Thread mdipierro
Stephan, I think I am not completely understanding what you need. can you make a concrete example of a model, how the model should look like (use a drawing or text) and what should happen when the form is submitted? Massimo On Oct 26, 1:33 pm, znafets wrote: > @weheh: I saw that but couldn't t

[web2py:33736] Re: FORM with self located fields and data from two tables

2009-10-26 Thread znafets
@weheh: I saw that but couldn't take too much from it @Thadeus: Woooa, that looks like for a second generation BF compiler - I am blinded :) , thank you anyway @Massimo: I knew you would like that highly sophisticated stuff but please don't ask me if it helps to solve my problem, or better put: is

[web2py:33735] Re: OR and LIKE on GAE

2009-10-26 Thread mattynoce
i think this is a great idea. i'm currently trying to implement a search that would ordinarily use LIKE and have had two problems: 1) i can't use LIKE, so your new suggestion would be wonderful. i was planning to write it on my own, so having syntax for it would be wonderful. 2) i would like my se

[web2py:33734] Re: VPS Hosting reviews

2009-10-26 Thread villas
I suggest you also take a look at vps.net The appliances are great and bandwidth allowance better than slicehost. Apart from USA, they can also provide servers based in UK which is of some interest to us. Best wishes. David On Oct 26, 10:51 am, Alex Fanjul wrote: > Could you tell us about sli

[web2py:33733] Re: Location of .htaccess for mod_rewrite using Apache WSGI virtual host

2009-10-26 Thread Thadeus Burgess
Also, temporarily. How would I use routes to rewrite a url except Normal url mysite.com/init/default/index I want mysite.com/index But still have accessible. mysite.com/admin And mysite.com/appadmin This is what I have, however admin still does not work. routes_in = ( ('/appadm

[web2py:33732] Location of .htaccess for mod_rewrite using Apache WSGI virtual host

2009-10-26 Thread Thadeus Burgess
When using Apache Virtual Hosts, set up exactly like in the book, where does the .htaccess to rewrite url go? -Thadeus --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send

[web2py:33731] Re: FORM with self located fields and data from two tables

2009-10-26 Thread mdipierro
An aesthetic issue. Consider you can replace: {{ def req(): return XML('''*''') }} with {{req=SPAN("*",_class="required")}} and call it with {{=req}} or {{def req():}}*{{return}} and call it with {{req()}} (no equal) Massimo On Oct 26, 11:51 am, Thadeus Burgess wrote: > This is usuall

[web2py:33730] Re: OR and LIKE on GAE

2009-10-26 Thread mdipierro
On Oct 26, 10:54 am, Thadeus Burgess wrote: > If you perform > > rows1 = db(db.a.b<10).select() | db(db.a.b>5).select() > > This is all on the python level? Yes > Strictly to allow for joins on gae? It is not a join. It just merges two sets of records. The main purpose is to bypass the GAE lim

[web2py:33729] Re: FORM with self located fields and data from two tables

2009-10-26 Thread Thadeus Burgess
This is usually what I end up doing for custom form. It allows for fully customizable XHTML/CSS 3 forms. {{ def req(): return XML('''*''') }} {{pass}} {{def labels(field, required):}} {{=form.custom.label[field]}}{{if required:}}{{=req()}}{{pass}} {{=form.custo

[web2py:33728] Re: new site using web2py

2009-10-26 Thread Álvaro Justen [Turicas]
On Sat, Oct 24, 2009 at 00:02, Darcy Clark wrote: > > htpt://www.qualitysystems.com > > This is our first site built using web2py. We have been Zope/Plone > developers for many years and have built many Plone sites - we decided > to stick with Python for this project but wanted to try something >

[web2py:33727] Re: backward compatibility

2009-10-26 Thread Álvaro Justen [Turicas]
On Mon, Oct 26, 2009 at 13:42, mdipierro wrote: > > Good point. web2py can do this > > import logging > logging.warn('something is deprecated') > > I could redefine > >   SQLDB=lambda *a,**b: logging.warn(...) and DAL(*a,**b) > > this would already produce lots of logs. I would not do it for SQLX

[web2py:33726] Re: OR and LIKE on GAE

2009-10-26 Thread Thadeus Burgess
If you perform rows1 = db(db.a.b<10).select() | db(db.a.b>5).select() This is all on the python level? Strictly to allow for joins on gae? -Thadeus On Mon, Oct 26, 2009 at 10:34 AM, mdipierro wrote: > > As you know assuming: > > db.define_table('a',Field('b','integer')) > > the followi

[web2py:33725] Re: new site using web2py

2009-10-26 Thread snfctech
Clean site, Darcy. If you didn't like Rails for being too "magical", then I'm surprised you like web2py. I thought that was one of the criticisms of web2py from the Django camp. Personally, I prefer magic, as long as it is readable and not impossible to get under the hood when you need to. On

[web2py:33724] Re: backward compatibility

2009-10-26 Thread mdipierro
Good point. web2py can do this import logging logging.warn('something is deprecated') I could redefine SQLDB=lambda *a,**b: logging.warn(...) and DAL(*a,**b) this would already produce lots of logs. I would not do it for SQLXyy because that would make even more logs. Pros/Cons? On Oct 26,

[web2py:33723] backward compatibility

2009-10-26 Thread Renato-ES-Brazil
Massimo, About the question of "backward compatibility", maybe there will come a time that one of the principles Python and web2py are broken, specifically this: "There should be only one way of doing things". Or not? :-) Example (extracted from manual): "For backward compatibility SQLDB=DAL a

[web2py:33722] OR and LIKE on GAE

2009-10-26 Thread mdipierro
As you know assuming: db.define_table('a',Field('b','integer')) the following expressions do not work on gae: rows1 = db((db.a.b<10)|(db.a.b>5)).select() rows2 = db(db.a.b.belongs(2,3,4)).select() So with the latest code in trunk you can now do: rows1 = db(db.a.b<10).selec

[web2py:33721] Re: Http Error 500

2009-10-26 Thread mdipierro
Is this related to the issue? http://code.google.com/p/web2py/issues/detail?id=60&can=1 Massimo On Oct 26, 9:58 am, Thadeus Burgess wrote: > Can you browse the site without Flex? > > Also, I've found the apache error logs and wsgi error logs can be > invaluable. > > -Thadeus > > On Mon, Oct 26,

[web2py:33720] Re: powered by web2py?

2009-10-26 Thread Wes James
go to google and search on "http://www.appliedstacks.com/ web2py" then click on the cached link Someone would need to manually scrape this info into somewhere else. Someone could make a python script with urllib to do this. -wes On Sun, Oct 25, 2009 at 8:46 PM, mdipierro wrote: > > www.applie

[web2py:33719] Re: Http Error 500

2009-10-26 Thread Thadeus Burgess
Can you browse the site without Flex? Also, I've found the apache error logs and wsgi error logs can be invaluable. -Thadeus On Mon, Oct 26, 2009 at 7:24 AM, Felipe wrote: > > Hello, > > My problem is -> I have a server, with Apache2 and wsgi enabled to > call the web2py server, and a Flex

[web2py:33718] Re: VPS Hosting reviews

2009-10-26 Thread Thadeus Burgess
I'm not a day into my first slice, and I absolutely love it, don't know why I didn't go with them earlier! It is blazing fast, on shared hosting my site would crawl, and it just pops right up now. So far my average use with web2py/mod_wsgi has been only 90MB of ram for the whole slice. I used Dr

[web2py:33717] Re: VPS Hosting reviews

2009-10-26 Thread Doxaliber
I use webfaction and I'm really satisfied with their services. For now I don't need a real VPS but I must say that although my webfaction plan is a shared hosting in many aspects it looks like a VPS. :-) On 26 Ott, 15:42, Julio wrote: > I've been using serveraxis.com for at least 4 years uninter

[web2py:33716] Re: VPS Hosting reviews

2009-10-26 Thread Julio
I've been using serveraxis.com for at least 4 years uninterrupted, the only server failure that I can remember is a couple of years back when they upgraded their infrastructure and caused several outages that were quickly corrected. They in fact lowered their prices recently, you can get a decent

[web2py:33715] Re: powered by web2py?

2009-10-26 Thread Julio
http://www.techfuel.net/ :) - Thanks Massimo. On Oct 25, 7:46 pm, mdipierro wrote: > www.appliedstacks.comis dead. This means I lost a way to keep track > of web2py sites. So I made something trivial for now: > > http://web2py.com/poweredby > > I am sure I missing many sites that were reported.

[web2py:33714] Re: FORM with self located fields and data from two tables

2009-10-26 Thread weheh
http://groups.google.com/group/web2py/browse_thread/thread/c6e3021507efbcd/42060d6ceaae75cb?q= On Oct 26, 7:55 am, znafets wrote: > the call to form.accepts fails with "key error" no-table ... after the > form gets submitted... > >   if form.accepts(request.vars, session): > > On 26 Okt., 11:05,

[web2py:33713] Re: FORM with self located fields and data from two tables

2009-10-26 Thread znafets
Is there no example how to do this ? I mean this is not such an exotic case that you want to create a edit form for some record in more than one table and locate the fields you want them to show up and pre-filled with data that is already in the db (edit form). But it seems that either you can do

[web2py:33712] Re: web2py certificates RFC

2009-10-26 Thread mdipierro
yes, accepted patches and pointing our errors in source code. On Oct 26, 12:35 am, Richard wrote: > kownledge -> knowledge > > Does contributing to web2py mean submitting accepted patches, or more > general? > Richard > > On Oct 26, 3:26 pm, mdipierro wrote: > > > A user asked for a web2py cert

[web2py:33711] Http Error 500

2009-10-26 Thread Felipe
Hello, My problem is -> I have a server, with Apache2 and wsgi enabled to call the web2py server, and a Flex application. But when I make a remote Object call, it returns a Http error 500, something about the server. The server side is located at Linode, with ubuntu 9 instaled, everything just l

[web2py:33710] Re: powered by web2py?

2009-10-26 Thread Yannick
www.onemewebservices.com is powered by web2py... Good job ! Yannick P. On Oct 26, 4:34 am, Boris Manojlovic wrote: > http://designer.bojanka.net/ > is hosted on appspot with web2py > > On Mon, Oct 26, 2009 at 3:46 AM, mdipierro wrote: > > >www.appliedstacks.comis dead. This means I lost a way

[web2py:33709] Re: FORM with self located fields and data from two tables

2009-10-26 Thread znafets
the call to form.accepts fails with "key error" no-table ... after the form gets submitted... if form.accepts(request.vars, session): On 26 Okt., 11:05, znafets wrote: > Hi Thadeus, weheh, > > if I make it read like this: > >         req_user_id = request.args[0] > >         user = db((db.us

[web2py:33708] Re: new on web2pyslices.com: comment subscriptions

2009-10-26 Thread Renato-ES-Brazil
Cool! Thanks! On 26 out, 03:27, "mr.freeze" wrote: > You can now subscribe to comments on a slice.  You will receive an > email if anyone posts a new comment. > > Enjoy! > -Nathan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Go

[web2py:33707] Re: VPS Hosting reviews

2009-10-26 Thread Darcy Clark
I tried several VPS providers before settling on Slicehost. There's not the cheapest, but they are reliable, proactive when problems hit (DoS attacks, hardware issues) and communicative about problems when they occur (which isn't often). They wrote their own VPS management layer which lets you pro

[web2py:33706] gae "like" operator

2009-10-26 Thread mattynoce
hi, i have a question regarding google app engine. i'm trying to institute a search feature, where people can type into a box and get a result. i understand that gae doesn't allow use of "like" because it results in a full table scan and their datastore is built to not allow for anything that wou

[web2py:33705] Re: plugin system again

2009-10-26 Thread suiato
Hi all, http://www.web2pyslices.com/main/slices/take_slice/13 presents a work on the idea of class-based plugin. far from complete, but its contemplation got a bit closer to implementation :-) probably a lot of oversights and shortcomings. a lot to find out including limitations of this approach.

[web2py:33704] VPS Hosting reviews

2009-10-26 Thread Alex Fanjul
Could you tell us about slicehost? cons, pros, etc? It seems quite good in price and flexibility. Anyone have/know cheap and reliable* *alternatives for vps hosting (to recommend)? Actually I'm using Site5.com but as shared hosting and It's incredible good because of price and unlimited features

[web2py:33703] Additional Information under a TR | CSS / HTML

2009-10-26 Thread Sebastian Brandt
Hello everyone, I want to display dynamic information under a table row entry. I want the information to toggle if you click on the entry in the table (I want to use jQuerys toggle for that). for row in rows: table.append(TR(\ TD(row.severity.severity),\ TD(row.status

[web2py:33702] Re: FORM with self located fields and data from two tables

2009-10-26 Thread znafets
Hi Thadeus, weheh, if I make it read like this: req_user_id = request.args[0] user = db((db.user.id == req_user_id) & (db.addr.user == req_user_id)).select()[0] db.user.id.default = user.user.id db.user.name.default = user.user.name

[web2py:33701] Re: A simple patch to provide upload progress

2009-10-26 Thread AndCycle
lol update the view is better, and maybe the only solution, current cache implement have no direct way to check if the cache do exist or not, so you have write some js for this :p On Oct 26, 11:53 am, Richard wrote: > From debugging gluon/main.py I found out the problem - me! > The upload was

  1   2   >