[web2py:32982] Re: hg and google

2009-10-15 Thread Bottiger
I recommend Google. Bitbucket has had way too much downtime. The downtime that happened a couple of days ago was not the first (speaking from experience). On Oct 10, 9:16 am, mdipierro wrote: > http://googlecode.blogspot.com/2009/10/mercurial-server-side-clone-su... --~--~-~--~~

[web2py:31228] Using DAL outside of Web2py?

2009-09-17 Thread Bottiger
I need to take snapshots of a websites. This will take a couple seconds so I need to run it in a separate process from Web2py. So I am wondering if it is possible to use the DAL inside that separate python program so I can update the DB when the snapshot is complete. --~--~-~--~~-

[web2py:30791] Generic comment or rating code

2009-09-11 Thread Bottiger
How would you go about making a generic comment or rating logic for any model? Say you have a bunch of models in different tables like this: Websites Plugins Links etc... How would you make a generic rating or commenting logic that could apply to websites/plugins/links or whatever other models

[web2py:30675] Re: Fixing Autocomplete for Web2Py With Pydev IDE

2009-09-10 Thread Bottiger
import DAL from gluon.validators import * from gluon.html import * from gluon.http import * from gluon.sqlhtml import SQLFORM, SQLTABLE, form_factory from gluon.globals import * session = Session() request = Request() response = Response() On Sep 10, 8:11 pm, Bottiger w

[web2py:30671] Re: Fixing Autocomplete for Web2Py With Pydev IDE

2009-09-10 Thread Bottiger
Ah never mind. I forgot to enable the source analyzer, so you still have to import the data. On Sep 10, 7:55 pm, Bottiger wrote: > I starting to use PyDev now that the extensions are now free. I > remembered some of you had problems with the autocomplete because of > the Web2Py globals

[web2py:30668] Fixing Autocomplete for Web2Py With Pydev IDE

2009-09-10 Thread Bottiger
I starting to use PyDev now that the extensions are now free. I remembered some of you had problems with the autocomplete because of the Web2Py globals. Here is a solution. When you add a Python Interpreter, go into forced globals. Click new. Copy and paste the following: request,response,sessio

[web2py:30461] Re: I'd like to see people add their web2py developed sites to an area of "www.web2py.com"?

2009-09-08 Thread Bottiger
I'm working on it. On Sep 8, 6:05 pm, mdipierro wrote: > I normally used this;http://www.appliedstacks.com/PoweredBy/web2py > to track sites. > > I invite everybody to submit their sites. For now I will just link > this, then we'll find a better solution. > > Massimo > > On Sep 8, 7:05 pm, cesmi

[web2py:30191] Re: Authentication using Facebook / Google / Myspace ...

2009-09-05 Thread Bottiger
I forgot to mention this. If you want the latest version of OpenID Auth, download the tip, not AUTH 1. On Sep 5, 7:20 pm, Bottiger wrote: > Here is my version of openID for web2py. There are two versions. > > http://bitbucket.org/bottiger/web2py-openid/downloads/ > > CAS 1 is a f

[web2py:30190] Re: Authentication using Facebook / Google / Myspace ...

2009-09-05 Thread Bottiger
Here is my version of openID for web2py. There are two versions. http://bitbucket.org/bottiger/web2py-openid/downloads/ CAS 1 is a fixed up version of the one at w2popenid which had some problems with different providers and python 2.6. AUTH 1 is the recommended version. It fully replaces the

[web2py:30013] Re: Error With Shell

2009-09-03 Thread Bottiger
It works! On Sep 3, 8:37 pm, mdipierro wrote: > This is now fixed in trunk, please give it a try. > > On Sep 3, 2:03 pm, Bottiger wrote: > > > Ok I think I found out the problem. > > > response.cookies = Storage(). > > > I think this is supposed to be Co

[web2py:29995] Complex Queries for DAL?

2009-09-03 Thread Bottiger
Is there any mechanism in the DAL for things like "INSERT if not exists" "INSERT or ignore" upserts? Or do I need to resort to using executesql? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py-users" group

[web2py:29983] Re: Error With Shell

2009-09-03 Thread Bottiger
se.cookies[response.session_id_name] = response.session_id response.cookies[response.session_id_name]['path'] = '/' Otherwise you would be assigning a string to a string. With SimpleCookie, the string response.session_id is wrapped in a "morsel" object which has a path attribute. O

[web2py:29981] Re: Error With Shell

2009-09-03 Thread Bottiger
It worked when I commented out that line. I would like to store sessions in database though. On Sep 3, 6:10 am, mdipierro wrote: > As a test, can you try commenting the line >    session.connect(request, response, db) > in your model? > > Massimo > > On Sep 2, 10:1

[web2py:29942] Error With Shell

2009-09-02 Thread Bottiger
Executing shell has stopped working for me. It now displays this error in the console: Traceback (most recent call last): File "C:\Users\admin\Desktop\web2py\gluon\restricted.py", line 178, in restricted exec ccode in environment File "applications\cas\models/db.py", line 34, in sess

[web2py:29911] Re: YAL - yet another logo

2009-09-02 Thread Bottiger
Thank you and Diane, here are my thoughts on the logo. The logo must be easily recognized at a distance or reduced in size (when you iconize for example). The logo here has many fine details such as the mouth and the eyes which can barely be seen as I am looking at it through Google Groups. At it

[web2py:29836] Re: Hiding Fields or Making them Unwritable?

2009-09-01 Thread Bottiger
...,fields=[]). > > On Sep 1, 7:27 pm, Bottiger wrote: > > > I have a field called "author" which I want set to "auth.user.id". > > Users should not be able to edit this field. > > > If I have an SQLFORM, is it sufficient to simply omit this fi

[web2py:29828] Hiding Fields or Making them Unwritable?

2009-09-01 Thread Bottiger
I have a field called "author" which I want set to "auth.user.id". Users should not be able to edit this field. If I have an SQLFORM, is it sufficient to simply omit this field in the "fields" argument? Or do I also need to specify "writable = False" for the field? --~--~-~--~~---

[web2py:29811] Re: How to insert seperate field in SQLFORM?

2009-09-01 Thread Bottiger
be useful > > http://www.vimeo.com/2720410 > > On Aug 31, 10:27 pm, Bottiger wrote: > > > I have a database schema where users submit their websites in one > > table, and a list of tags in another table. > > > I would like to place an input box inside the SQLFORM w

[web2py:29763] How to insert seperate field in SQLFORM?

2009-08-31 Thread Bottiger
I have a database schema where users submit their websites in one table, and a list of tags in another table. I would like to place an input box inside the SQLFORM where people can enter tags. What is the best way to do this? --~--~-~--~~~---~--~~ You received this

[web2py:29117] Re: stackless python

2009-08-21 Thread Bottiger
Stackless does not scale for multiple CPUs. It is only for cooperative multitasking. Stackless is meant to solve massive context switching costs, which I think Web2Py has very little of. On Aug 17, 7:47 am, mdipierro wrote: > Just for fun I tried the following: > 1) Installed Stackless Python 2.

[web2py:28951] Re: Almost working on the dreamhost server... $50 to the person that can make this a script!

2009-08-19 Thread Bottiger
Well I'm not sure about an automated script, as I don't have a dreamhost account anymore, but I believe you need to fix these 2 things: 1. change yourusername here "#!/home/youruserhere/run/bin/python" 2. place dispatch.fcgi and the web2py folder to the base of the subdomain folder. Not in subdom

[web2py:28857] Re: Reddit Story Link does not work

2009-08-17 Thread Bottiger
Well its too late now, but as a rule of thumb, only 2% of visitors ever bother to read the comments of a website. On Aug 17, 2:28 pm, Yarko Tymciurak wrote: > Right - I posted a comment on reddit with the link corrections. > > On Mon, Aug 17, 2009 at 3:58 PM, Bottiger wrote: > &

[web2py:28845] Re: Reddit Story Link does not work

2009-08-17 Thread Bottiger
Aug 17, 1:51 pm, Yarko Tymciurak wrote: > On Mon, Aug 17, 2009 at 3:34 PM, Bottiger wrote: > > > Hello Massimo, I've noticed that you posted a reddit story here. > > >http://www.reddit.com/r/programming/comments/9bg5i/draft_chapters_of_... > > > Unfortunately, th

[web2py:28843] Re: web2py in events/meetings

2009-08-17 Thread Bottiger
I am planning to put up a web2py community website soon. I have only seen one website with a list of Web2Py powered websites here: http://www.appliedstacks.com/NewestFirst/web2py Unfortunately, it is very ugly, not web2py specific, probably isn't powered by web2py, and some of them are even Dja

[web2py:28841] Reddit Story Link does not work

2009-08-17 Thread Bottiger
Hello Massimo, I've noticed that you posted a reddit story here. http://www.reddit.com/r/programming/comments/9bg5i/draft_chapters_of_new_web2py_book_covers_forms/ Unfortunately, the link to the pdf does not work (at least for me). It does not appear to be a pdf file, and here is the binary cont

[web2py:28766] Re: logo

2009-08-16 Thread Bottiger
Is it just me or is the logo edge a bit blurry? On Aug 16, 11:11 am, mdipierro wrote: > Try the new one..http://www.web2py.com > > The fact I posted it does not prevent us form working more on the > fonts and page layout. > > Thank you Peter for the logo. > Thank you Mateusz for the new page bac

[web2py:28723] Re: logo

2009-08-15 Thread Bottiger
Here are some more logos I whipped up as amusement. I don't have a strong preference either way, maybe we will find some inspiration from looking at these. http://imgur.com/Y2XZu.png http://imgur.com/1zrdp.png http://imgur.com/vh5gY.png http://imgur.com/QHeZD.png On Aug 15, 7:22 pm, Jonathan Lun

[web2py:28715] Re: logo

2009-08-15 Thread Bottiger
I think it may be ok to remove the regular W, but it is a little too chunky compared to the other letters right now. On Aug 15, 1:06 pm, Yarko Tymciurak wrote: > I think that generally looks nice, but should be an "alternate" Logo - > I still think we also need the original w/ the full word beca

[web2py:28567] Re: logo

2009-08-13 Thread Bottiger
Sans-serif is cleaner and professional looking, that's why you see so much of it. On Aug 13, 6:28 pm, __future__ wrote: > A ... and I like the font... if I see one more thing with a font like > B, I am going to gouge my eyes out with a rusty fork > > On Aug 13, 6:58 pm

[web2py:28565] Re: logo

2009-08-13 Thread Bottiger
Choice A I think it would be best if it was changed to a more Sans-Serif font like B. On Aug 13, 9:29 am, Massimo Di Pierro wrote: > Two logos have been proposed for web2py. I love them both and I would   > like your opinions. Here they are attached. > > Which one should go on the main web2py p

[web2py:28557] Re: Web2py.com down

2009-08-13 Thread Bottiger
Do you have any error logs to make sure it isn't a web2py problem? On Aug 13, 12:20 am, mdipierro wrote: > I do not know what happened but I restarted and it works. > > On Aug 12, 8:29 pm, emaynard wrote: > > > Same here in Ohio.  Neither Domain name nor IP appear to be working. > > > -Eric > >

[web2py:28468] Re: Web2py.com down

2009-08-12 Thread Bottiger
Same here in the US using OpenDNS. I even tried the IP address when it popped up occasionally and it gave a 503 Service Temporarily Unavailable error. On Aug 12, 6:06 pm, Yannick wrote: > Same here in Canada... > > On Aug 12, 8:30 pm, Richard wrote: > > > I can't accesswww.web2py.comatthe momen

[web2py:28291] Re: New book. Chapters 6,7,8 again

2009-08-10 Thread Bottiger
Massimo are you going to release the chapters for the new DAL engine soon, or is it going to use the same API as this one? On Jul 11, 7:57 am, Massimo Di Pierro wrote: > Chapters 7 and 8 have been revised including corrections from Mr   > Admin, Fran and Jonathan. > >  web2py_manual_678.pdf > 19

[web2py:28252] Re: Very Strange Bug. Could be a Consequence of Exec

2009-08-09 Thread Bottiger
ssue rather than a path/import issue. On Aug 9, 1:03 am, mdipierro wrote: > I think, this should not work > > from w2popenid import Web2pyFetcher > > because w2popenid is not in path. Twy > > exec('from applications.%s.modules.w2popenid import Web2pyFetcher' % > requ

[web2py:28249] Very Strange Bug. Could be a Consequence of Exec

2009-08-09 Thread Bottiger
I have been trying to create an OpenID version of Auth. I stumbled upon a very puzzling behavior that I think may be an underlying consequence of using exec. I do not know for sure though because the bug is very strange. First the setup. I am using hcvst's openid provider so I can test locally.

[web2py:28192] Re: Web2py.com down

2009-08-07 Thread Bottiger
I'm using OpenDNS and it looks like the DNS records are messed up. If you visit http://140.192.37.194 it will work fine as usual. On Aug 7, 9:35 pm, Yarko Tymciurak wrote: > trywww.web2py.com > > On Fri, Aug 7, 2009 at 11:33 PM, b00m_chef wrote: > > > Just tried to access web2py.com and was no

[web2py:28181] Moving Questions to Stackoverflow

2009-08-07 Thread Bottiger
We should direct people to http://stackoverflow.com to answer questions in order to boost traffic. There is a bigger audience there and people regularly seeing Web2Py being asked may stumble upon it. Google Groups is not a very convenient way to find questions and answers. --~--~-~--~

[web2py:28127] Re: Bizzare Auth Bug. Could Fix But Need Massimo's Ok

2009-08-06 Thread Bottiger
At this point I think it would just be easier to let Massimo decide. Anyway, OpenID integration with Auth is coming along. It is usable but has some security concerns because people can change their OID in their profile. http://bitbucket.org/bottiger/web2py-openid-cas/overview/ On Aug 6, 7:05

[web2py:28124] Re: Bizzare Auth Bug. Could Fix But Need Massimo's Ok

2009-08-06 Thread Bottiger
users might not like it if you displayed their email or First/Last name to the whole Internet. On Aug 6, 6:47 pm, Yarko Tymciurak wrote: > On Thu, Aug 6, 2009 at 8:42 PM, Bottiger wrote: > > > Well you see, unlike the "username" column, the "email" column is

[web2py:28121] Re: Bizzare Auth Bug. Could Fix But Need Massimo's Ok

2009-08-06 Thread Bottiger
ined, such as "first_name" 3. Remove the "username" check and usage completely. On Aug 6, 6:38 pm, Yarko Tymciurak wrote: > I see - so you would want an exception to be raised?   What do you propose? > > On Thu, Aug 6, 2009 at 8:26 PM, Bottiger wrote: > > > The fu

[web2py:28119] Re: Bizzare Auth Bug. Could Fix But Need Massimo's Ok

2009-08-06 Thread Bottiger
The function takes a dictionary where if the username key is defined, then it assumes that your database has a "username" column which is incorrect behavior. On Aug 6, 6:16 pm, Yarko Tymciurak wrote: > On Thu, Aug 6, 2009 at 8:09 PM, Bottiger wrote: > > > I am using the

[web2py:28113] Re: Bizzare Auth Bug. Could Fix But Need Massimo's Ok

2009-08-06 Thread Bottiger
parent = fp.read() >             fp.close() > > should read: > >         try: >             fp = open(t, 'rb') >             parent = fp.read() >             fp.close() > > - Yarko > > On Thu, Aug 6, 2009 at 7:29 PM, Bottiger wrote: > > >

[web2py:28109] Bizzare Auth Bug. Could Fix But Need Massimo's Ok

2009-08-06 Thread Bottiger
I am trying to incorporate OpenID into Auth. In my attempt to implement a CAS style plugin into auth, I stumbled upon a bizzare error. On line 628 of gluon.tools, there is the following line: "users = self.db(table_user[username] == keys[username]).select()" username is defined to be "username

[web2py:28066] Re: Fwd: My thoughts on web2py

2009-08-05 Thread Bottiger
Agree 100% If you are going to rewrite, best to do it soon instead of later. A quick look at the available applications:http://www.web2py.com/ appliances There simply is not that many of them, and most are just proofs of concept. They are not building blocks for Web2Py except for CAS which isn'

[web2py:27874] Re: Fwd: My thoughts on web2py

2009-08-02 Thread Bottiger
I haven't had time to verify the other findings, but there are definitely file handle leakages. I can never delete an application if I just visited it once. On Aug 2, 12:21 pm, mdipierro wrote: > I am about to catch a plane so I will be short. We can talk more about > this in a couple of days. >

[web2py:27795] Re: gluon.contrib.login_methods.CasAuth

2009-08-01 Thread Bottiger
Massimo, are you saying that there will never be an official Web2Py incorporation of OpenID and Auth? On Aug 1, 3:54 pm, mdipierro wrote: > Sorry it took me so long. I looked into this and it cannot be done > this way easily as I though. The reason is that OID uses the two > tables you created (

[web2py:27794] Re: Google seems to know Web2Py

2009-08-01 Thread Bottiger
Google has sunk too much time and effort into adapting Django to recommend another framework. They also need to attract more users to GAE which Django has plenty of. On Aug 1, 3:12 pm, mdipierro wrote: > Yes, if only they'd understand we support GAE better than Django does. > Our DAL and our app

[web2py:27748] Re: Default CRYPT() is unsecure

2009-07-31 Thread Bottiger
Also, I just downloaded winrtgen, the one that is displayed all over your google results. No ability for specifying a salt, or even a custom salting function. On Jul 31, 11:15 pm, Jonathan Lundell wrote: > On Jul 31, 2009, at 11:11 PM, Bottiger wrote: > > > 2. Attackers will

[web2py:27747] Re: Default CRYPT() is unsecure

2009-07-31 Thread Bottiger
Yes the software is there, but the hardware is a completely different matter. On Jul 31, 11:15 pm, Jonathan Lundell wrote: > On Jul 31, 2009, at 11:11 PM, Bottiger wrote: > > > 2. Attackers will specifically target Web2Py's deterministic algorithm > > with a custom rainb

[web2py:27745] Re: Default CRYPT() is unsecure

2009-07-31 Thread Bottiger
having the database reinserted with different ids. On Jul 31, 9:09 pm, Francisco Gama wrote: > On Jul 31, 6:26 am, Bottiger wrote: > > > > That may not be a good idea, I think. That makes your password longer but > > > with a possible cryptographic weakness because it'

[web2py:27739] Re: Can I use HTTP PUT method?

2009-07-31 Thread Bottiger
You will need to do request.body.read() for PUT. Web2Py does not parse the body of PUT requests. Example: Request: PUT /test/default/ HTTP/1.1 Content-Length: 21 blah blah hello hello Output: Body "blah blah hello hello" On Jul 31, 12:28 am, 诚子 wrote: > Hi, I wan't use PUT method and DELE

[web2py:27737] Re: OpenID for Web2Py

2009-07-31 Thread Bottiger
provider for web2py. > My first attempt (the whole w2popenid thing is derived from it) is > here:http://github.com/hcvst/icy-openid > and intended to replace the php! provider athttp://icy.co.zaasap. > Can we work together? > > Regards, > HC > > On Jul 27, 7:45 am, Bottiger wr

[web2py:27697] Re: Default CRYPT() is unsecure

2009-07-31 Thread Bottiger
; wrote: > > >> On Jul 31, 2009, at 12:16 AM, Bottiger wrote: > > >> . > >> The difference is that with a deterministic transform of the password > >> (this includes static salt, or salt that's a function of the base > >> password), the at

[web2py:27692] Re: Default CRYPT() is unsecure

2009-07-31 Thread Bottiger
Ah, someone here finally understands me. On Jul 31, 12:38 am, Yarko Tymciurak wrote: > On Fri, Jul 31, 2009 at 2:31 AM, Jonathan Lundell wrote: > > > > > On Jul 31, 2009, at 12:16 AM, Bottiger wrote: > > > . > > The difference is that with a deterministic tr

[web2py:27689] Re: Default CRYPT() is unsecure

2009-07-31 Thread Bottiger
, 12:31 am, Jonathan Lundell wrote: > On Jul 31, 2009, at 12:16 AM, Bottiger wrote: > > > > >> If the attacker knows (by reading the web2py source) that you're,   > >> say, > >> concatenating the base password three times, then he knows that you > >>

[web2py:27686] Re: Default CRYPT() is unsecure

2009-07-31 Thread Bottiger
We can probably make a validator called CRYPT2() so we don't have to break backward compatibility. In my opinion though, this is a rather insecure default for a framework that bills itself as being very secure. I have seen many hacklogs where PHP frameworks were often compromised by sql injection

[web2py:27683] Re: Default CRYPT() is unsecure

2009-07-31 Thread Bottiger
you used a random number generator or a function related to the password. On Jul 30, 11:52 pm, Jonathan Lundell wrote: > On Jul 30, 2009, at 11:43 PM, Bottiger wrote: > > > > >> Dictionary attacks work for short > >> passwords, but are impractical against longer passwords. A

[web2py:27676] Re: Default CRYPT() is unsecure

2009-07-30 Thread Bottiger
pm, Jonathan Lundell wrote: > On Jul 30, 2009, at 10:26 PM, Bottiger wrote: > > > > > > >> That may not be a good idea, I think. That makes your password   > >> longer but with a possible cryptographic weakness because it's   > >> following a known

[web2py:27675] Re: Default CRYPT() is unsecure

2009-07-30 Thread Bottiger
our salt is. The only thing that really matters is that it is reasonably different for each password, and that no one else has made a rainbow table for a salt that you happened to choose. On Jul 30, 10:50 pm, Jonathan Lundell wrote: > On Jul 30, 2009, at 10:26 PM, Bottiger wrote: > > >

[web2py:27673] Re: Default CRYPT() is unsecure

2009-07-30 Thread Bottiger
g the password as a salt. In fact, many websites such as Reddit (which I examined the source code) does this. On Jul 30, 9:51 pm, Francisco Gama wrote: > On Jul 31, 5:16 am, Bottiger wrote: > > > As long as the salt is different for every password, it pretty much > > makes i

[web2py:27669] Re: Default CRYPT() is unsecure

2009-07-30 Thread Bottiger
computational speed, you could double or triple the original password before putting it through the hash. On Jul 30, 8:38 pm, Jonathan Lundell wrote: > On Jul 30, 2009, at 8:30 PM, Bottiger wrote: > > > > > I know you have the mantra of not breaking backwards compatibility, > >

[web2py:27665] Re: Default CRYPT() is unsecure

2009-07-30 Thread Bottiger
pecify a key > and use the HMAC+SHA512 anyway. > > Massimo > > On Jul 30, 9:49 pm, Bottiger wrote: > > > The CRYPT validator is unsecure because it uses unsalted MD5. > > > There are public rainbow tables that have unsalted MD5 passwords of up > > to 10 ch

[web2py:27662] Default CRYPT() is unsecure

2009-07-30 Thread Bottiger
The CRYPT validator is unsecure because it uses unsalted MD5. There are public rainbow tables that have unsalted MD5 passwords of up to 10 characters long including symbols. I highly recommend that if no "key" is specified, that CRYPT will automatically salt the password based on a substring of

[web2py:27595] Re: irc#web2py

2009-07-30 Thread Bottiger
Just for reference, even though I was the one who noted that mitsuhiko was Armin (which is written on his public blog), I am not one of the supposed people who emailed or stalked him. On Jul 30, 1:01 am, mdipierro wrote: > To web2py users. > > Please do not stalk Armin. He is a talented develope

[web2py:27576] Re: IRC should not be neglected!

2009-07-29 Thread Bottiger
I agree that the IRC channel is neglected. When I did benchmarks to show that the bundled version of flup does not scale for multicore machines and that the prefork version should be used, no one said anything. When I mentioned it here, no one has bothered to do anything about it. And this is stil

[web2py:27558] Re: Allowable Characters in Web2Py URLS

2009-07-29 Thread Bottiger
erro wrote: > Sorry allowing ~ is a bad idea. It may allow directory traversal > attacks. > > Massimo > > On Jul 29, 2:35 am, Bottiger wrote: > > > I was going over Web2Py code, and I noticed that the allowable URLs > > are a bit narrow. > > > As a reference fo

[web2py:27532] Allowable Characters in Web2Py URLS

2009-07-29 Thread Bottiger
I was going over Web2Py code, and I noticed that the allowable URLs are a bit narrow. As a reference for URL handling, I am using RFC 3986: http://tools.ietf.org/html/rfc3986 which is has a summary at Wikipedia here: http://en.wikipedia.org/wiki/Percent-encoding The default allowable URLs are ne

[web2py:27450] Re: OpenID for Web2Py

2009-07-26 Thread Bottiger
permits headers etc. to be > > > > > > send. > > > > > > > Please see whether it works for you. My battery is about to die, so > > > > > > I > > > > > > don't have time to > > > > > >

[web2py:27410] Re: override default application

2009-07-25 Thread Bottiger
Well I would say that if you started customizing, you would be using routes.py anyway. On Jul 25, 10:21 pm, Jonathan Lundell wrote: > The default application logic right now is: init if present, otherwise   > welcome. > > Would it not be useful to be able to specify a default application   > fro

[web2py:27335] Re: OpenID for Web2Py on Google App Engine?

2009-07-24 Thread Bottiger
hanged all 8000 to 8080 as per the App Engine Development Server, > but still > when I click Submit, I get the 'Invalid Request' page. > > Any suggestions? > > Thanks. > > On Jul 21, 7:57 pm, Bottiger wrote: > > > I've uploaded to my website the mi

[web2py:27274] Re: Global setting for domain name?

2009-07-23 Thread Bottiger
you are not showing anything about servers; you are only showing > network connections.   I have one server with 4 network cables feeding, and > the server listening on all, and passing them on as assigned...  can be to > one instance of a framework, or not... > > On Thu, Jul 23, 2009

[web2py:27269] Re: Global setting for domain name?

2009-07-23 Thread Bottiger
> whatever way). > > While the case you put forth also exists, unless I am missing something I do > not think it is a generic case. > > On Thu, Jul 23, 2009 at 1:40 PM, Bottiger wrote: > > > It is unreasonable because most non-hobbyist sites only have 1 > > c

[web2py:27266] Re: Global setting for domain name?

2009-07-23 Thread Bottiger
le domains as it is for web servers to do > so. > > On Jul 23, 9:10 am, Bottiger wrote: > > > I think its safe to assume that one single copy of the web2py library > > serves a single domain. It works for Django. > > > Serving multiple domains on a single Web2Py inst

[web2py:27225] Re: Global setting for domain name?

2009-07-23 Thread Bottiger
, 12:02 am, Hans Donner wrote: > Be carefull with this. The same instance may serve on multiple domain > names > It's up to the developer to make these choices and decissions. > > On Thu, Jul 23, 2009 at 07:20, Bottiger wrote: > > > Also a setting like this should

[web2py:27222] Re: Global setting for domain name?

2009-07-22 Thread Bottiger
Also a setting like this should be global to all applications while stuffing it in a model will only apply to one application. So there needs to be a global site-wide config just like routes.py. On Jul 22, 7:47 pm, Bottiger wrote: > Uhhh, so the solution is to make a file called 0.py in

[web2py:27218] Re: Global setting for domain name?

2009-07-22 Thread Bottiger
are available for the model files also, > a filename in controllers such as  "0.py"  or "0_setup.py"   (that's a > zero)  will accomplish this. > > Hope this helps. > > - Yarko > > On Wed, Jul 22, 2009 at 5:18 PM, Bottiger wrote: > > > And that

[web2py:27196] Re: Global setting for domain name?

2009-07-22 Thread Bottiger
And that is my question. Where can I put it so it is a globally accessable variable? I don't think Web2Py has a global configuration file, or does it? On Jul 22, 3:05 pm, Fran wrote: > On Jul 22, 11:01 pm, Bottiger wrote: > > > Its useful when you need the full URL. >

[web2py:27193] Re: Global setting for domain name?

2009-07-22 Thread Bottiger
Its useful when you need the full URL. I needed this when getting Massimo's OpenID to work. Right now, its hardcoded in. On Jul 22, 2:40 pm, Fran wrote: > On Jul 22, 10:20 pm, Bottiger wrote: > > > Yarko, what I am saying is that URL() does not add the "http:// >

[web2py:27187] Re: Global setting for domain name?

2009-07-22 Thread Bottiger
come/default/index, then > > URL( r=request, f=afterindex) > > will returnhttp://localhost:8000/welcome/default/afterindex > > On Wed, Jul 22, 2009 at 3:57 PM, Bottiger wrote: > > > Let's say you simply want the URL for a page such as > > >http://127.0.0.1:800

[web2py:27182] Global setting for domain name?

2009-07-22 Thread Bottiger
Let's say you simply want the URL for a page such as http://127.0.0.1:8000/welcome/default/index You can use URL(f='index') but it gives you a somewhat relative path. /welcome/default/index So what is the best way to go about adding the http://127.0.0.1:8000 prefix for the entire website? --~-

[web2py:27140] Re: Questions for large deployment

2009-07-22 Thread Bottiger
installations behind a load balancer I suggest you > > > use the "pound" load balancer to keep sessions sticky. In that case > > > the different processes do not need to share any data. > > > > - Has anyone done any work with web2py in a cluster (s

[web2py:27112] Re: OpenID for Web2Py

2009-07-21 Thread Bottiger
n internal error. http://www.codexon.com/temp/openid.zip On Jul 21, 4:27 pm, Bottiger wrote: > Yes, I accidentally missed your 2nd message and fixed it on my own. I > also found another error. > > So as a canonical reference, here are the 3 things that need to be > edited to get

[web2py:27111] Re: OpenID for Web2Py

2009-07-21 Thread Bottiger
rtOpenID' > > > Does that help you? (the error message you posted is not helping here) > > > The next stop is web2py's response: > > message > > : > > something heppened:{'failure_reason': "return_to does not match return > > URL. Expec

[web2py:27094] Re: The 80/20 rule

2009-07-21 Thread Bottiger
is no way around it when you need to scale. On Jul 21, 12:51 pm, Yarko Tymciurak wrote: > On Tue, Jul 21, 2009 at 2:38 PM, Bottiger wrote: > > > "This discussion should probably be moved to the web2py developers > > group:" > > > I don't have access to th

[web2py:27083] Re: The 80/20 rule

2009-07-21 Thread Bottiger
ce it is schema free. The map/reduce paradigm also allows you to scale complex queries to multiple cores and machines. For everything except banking, document based stores are the future. On Jul 21, 12:15 pm, Yarko Tymciurak wrote: > On Tue, Jul 21, 2009 at 1:51 PM, Bottiger wrote: > &g

[web2py:27072] Re: The 80/20 rule

2009-07-21 Thread Bottiger
extent, but this put it off my radar for my list (but I'm happy > > for any evidence / additional info to change that) > > > On Mon, Jul 20, 2009 at 8:16 PM, Bottiger wrote: > > > > Redis requires the entire database to fit in memory. > > > > I've don

[web2py:27071] Re: OpenID for Web2Py

2009-07-21 Thread Bottiger
nt me to "Massimo's OpenID implementation" that you are referring > to? > Perhaps you could send me teh code that your are using? > > When I get back from work I'll try to have a look. > > On Tue, Jul 21, 2009 at 10:10, Bottiger wrote: > > > I'v

[web2py:27031] Re: OpenID for Web2Py

2009-07-21 Thread Bottiger
e: > you might try looking at what gets sent back and forth to try to discover > what's wrong;  wireshark or LiveHTTPHeaders for Firefox might help... > > On Tue, Jul 21, 2009 at 3:10 AM, Bottiger wrote: > > > I've been trying to get Massimo's OpenID implementat

[web2py:27028] OpenID for Web2Py

2009-07-21 Thread Bottiger
I've been trying to get Massimo's OpenID implementation to work, which seems to be the only OpenID implementation for Web2Py. It doesn't seem to work with either Yahoo or Google, each time saying: "Sorry! Something is not quite right with the request we received from the website you are trying t

[web2py:27020] Re: Questions for large deployment

2009-07-20 Thread Bottiger
If it is truly not computationally intensive, and does not even use a database, it should not be a problem. I have benchmarked Web2Py on the static welcome page to 700 requests/ second with a concurrency level of 50. To increase the level of concurrency (if you have additional CPU cores), you sh

[web2py:26999] Web2Py Editor Graphical glitches

2009-07-20 Thread Bottiger
I remember that I mentioned that the Web2Py editor had graphical glitches but no one believed me. I stumbled upon it again while using Chrome, but rest assured, it also happens in Firefox. http://imgur.com/8AiTg.png --~--~-~--~~~---~--~~ You received this message

[web2py:26998] Re: The 80/20 rule

2009-07-20 Thread Bottiger
Redis requires the entire database to fit in memory. I've done a comparison a couple weeks ago between all of the free distributed databases and found that mongodb and couchdb are the most advanced and with the least quirks and requirements. On Jul 20, 3:44 pm, JohnMc wrote: > Yarko, > > Liked

[web2py:26935] Condensing jquery.js

2009-07-19 Thread Bottiger
Is there any reliable way to condense common static files into one folder? For example, Jquery, a 56 kb file, is replicated among every application. If your website is comprised of more than 2 apps, your users will be forced to download jquery twice. The only way I have thought of is to use rout

[web2py:26933] Re: killer app idea

2009-07-19 Thread Bottiger
This sounds very similar to RSS feeds and aggregators. It uses http/ rpc to fetch news items and you can optionally mirror them on your server. You can then filter them with keywords. There are problems with this with regards to censorship. 1. XML is unencrypted. And easy to use deep packet insp

[web2py:26836] Re: web2py-users and web2py-developers

2009-07-18 Thread Bottiger
Kolivas to the footnotes. Moving development discussion into web2py-developers, which is by one person's invite only, seems to be moving towards this direction. On Jul 18, 1:44 pm, Hans Donner wrote: > Bottiger, > > "and I planned to for Web2Py but now it is looking more difficu

[web2py:26831] Re: web2py-users and web2py-developers

2009-07-18 Thread Bottiger
I can't shake the feeling that I spurred this move. I might be a newcomer to Web2Py, but I have already sunk some time into studying Web2Py such as finding broken links on the main page and benchmarking the bundled version of flup (which should not be used in a production environment because of G

[web2py:26782] Re: The 80/20 rule

2009-07-17 Thread Bottiger
pm, mdipierro wrote: > On Jul 17, 4:54 pm, Bottiger wrote: > > > > It parses all views and collapses the three structure associated to each > > > action into one byte-code compiled view. that means there is no > > > parsing and minimal file IO when executing a

[web2py:26781] Re: The 80/20 rule

2009-07-17 Thread Bottiger
lt for a company to do something like: build a packaged and compressed one click executable web2py that runs a single application. These little things lessens the usage you can do with a framework. On Jul 17, 3:13 pm, mdipierro wrote: > On Jul 17, 4:54 pm, Bottiger wrote: > > > &

[web2py:26780] Re: The 80/20 rule

2009-07-17 Thread Bottiger
wanted a Full-Package framework look towards Django first and Web2Py second. On Jul 17, 3:06 pm, mdipierro wrote: > On Jul 17, 4:15 pm, Bottiger wrote: > > > > Since no one else completed, web2py didn't get recognized at the > > > conference > > > You also

[web2py:26759] Re: The 80/20 rule

2009-07-17 Thread Bottiger
D-style license that does not come with the definition of "derivatives" which is so often a problem in GPL. On Jul 17, 2:37 pm, mdipierro wrote: > On Jul 17, 2:43 pm, Bottiger wrote: > > > > > - Compilation > > > Django does this automatically, so I don'

  1   2   >