[web2py] Re: Debugging in web2py

2012-02-02 Thread Ross Peoples
Forgot to mention that when the debugger pauses on a line of code, besides using the key commands mentioned before, you can run single-line Python commands as if you were in an interactive session. This allows you to inspect variables and such. For example, once the debugger pauses and displays

[web2py] Re: lungo.js

2012-02-06 Thread Ross Peoples
GPL licensing would be an issue for me.

Re: [web2py] Re: keep shared objects permanently in RAM: Is it possible ?

2012-02-06 Thread Ross Peoples
I can't imagine that every request would need to access all 16G every time. I use a method for caching data between requests using modules. I don't know if it would be truly shared between requests, or like Niphlod said, would be duplicated for each request. I have had a lot of success using mo

[web2py] Re: VPScolo.com Five dolar VPS, anybody knows it?

2012-02-07 Thread Ross Peoples
I haven't heard of them before, but I have learned a quick lesson about VPS providers: most of them are one-man operations that only last for a few months. I have done a LOT of research on VPS providers over the last couple of weeks and the one site I always end up turning to for advice on prov

[web2py] Re: default layout.html error (or just me)

2012-02-07 Thread Ross Peoples
Can you paste the code in your controllers/default/index.html? Also, you should be able to scroll down near the bottom of the ticket to see the line of code in the view that triggers the issue.

[web2py] Re: default layout.html error (or just me)

2012-02-07 Thread Ross Peoples
Sorry, I meant views/default/index.html, not controllers/default/index.html.

[web2py] Re: Set username as default

2012-02-07 Thread Ross Peoples
I usually do this: default = auth.user.username.upper() if auth.user else None

[web2py] Re: [w2py-dev] Re: Movuca - Social CMS beta 0.1

2012-02-07 Thread Ross Peoples
I'm not sure how much my opinion matters here, but a lot of times, I am not allowed to touch GPL code, especially AGPL code for a business project. The legal department avoids (A)GPL like the plague. There are just too many gotchas with it, whether real or imaginary. They much prefer I use MIT o

Re: [web2py] Workflow engine for web2py

2012-02-07 Thread Ross Peoples
I don't know workflow engines in the general sense that well. I once created a full documentation management system where each document couple have a workflow assigned to it. The workflow (predefined, or created on-the-fly) would push the document around from person to person, ensuring that eac

Re: [web2py] default layout.html error (or just me)

2012-02-07 Thread Ross Peoples
Glad you figured it out!

Re: [web2py] Re: keep shared objects permanently in RAM: Is it possible ?

2012-02-07 Thread Ross Peoples
Marino is referring to the method I mentioned earlier of using modules and the singleton pattern. You could use this in combination with Michele's mmap suggestion to hold the data to do what you want. I've never used mmap before, but I can get you on the right track with modules. This is a very

Re: [web2py] Re: keep shared objects permanently in RAM: Is it possible ?

2012-02-07 Thread Ross Peoples
Sorry Mariano, I misspelled your name in my last post :) To give you a better example of what you might want to do here is a more advanced module that makes a static class and better resembles the singleton pattern: class Counter(object): instance = None @classmethod def get(cl

[web2py] Re: is_https

2012-02-07 Thread Ross Peoples
Using nginx, you have to have a line somewhere for "fastcgi_pass". If this line isn't: fastcgi_pass http://127.0.0.1:9000 Then you will have problems. When you connect to web2py through nginx, web2py only sees nginx. So if nginx is passing fastcgi to another computer on the network, then web2p

Re: [web2py] Re: keep shared objects permanently in RAM: Is it possible ?

2012-02-08 Thread Ross Peoples
That is a VERY good question. If you already have a setup like this, give it a shot and see if it worksI would be interested to know the result.

[web2py] Re: Modules: how to access db

2012-02-09 Thread Ross Peoples
from gluon import * This should give you the "current" object which has these: current.request current.response current.cache You must initialize your modules with a db instance though. So I usually do this: class MyModule(object): def __init__(self, db, ...)

Re: [web2py] Re: keep shared objects permanently in RAM: Is it possible ?

2012-02-09 Thread Ross Peoples
Thanks for pointing that out Michele. I may need to use something like this in the future.

[web2py] Re: option to move smartgrid buttons to the left side

2012-02-09 Thread Ross Peoples
I was wondering about the previously. I haven't tried this yet, but as a temporary workaround, are you able to insert buttons using JavaScript?

[web2py] Re: xml-rpc code causes compile error in mywiki default.py

2012-02-09 Thread Ross Peoples
You have a syntax error in fony_by(keyword): return db(db.page.title.contains(keyword).select().as_list() Should be: return db(db.page.title.contains(keyword)).select().as_list() You forgot the closing parenthesis before .select().

[web2py] Re: Folder inside controller dosen't work.

2012-02-09 Thread Ross Peoples
Not sure on the subfolder thing, but is it possible for you to put most of your code into modules and just use controllers as the gateway to your modules?

[web2py] Re: security check in web2py

2012-02-10 Thread Ross Peoples
Another option, which I use is to generate SSL certs and run web2py with -k and -c so that web2py runs on SSL, enabling admin from other computers.

[web2py] Markmin Output Questions

2012-02-10 Thread Ross Peoples
I am looking into writing lots of documentation and have been looking around at the different solutions. I know that the web2py book was written with Markin, and seeing as how it is able to output to multiple different formats and supports things like tables and image alignment, I figure it's p

Re: [web2py] Re: [w2py-dev] Re: Movuca - Social CMS beta 0.1

2012-02-10 Thread Ross Peoples
CKEditor is licensed under LGPL, so you're good there. As for plugin_ckeditor. I wrote it, but I haven't given it a license yet (on my todo list). However, I will probably go with LGPL as well. It only makes sense as web2py and CKEditor are both LGPL. So you are all set with the CKEditor stuff.

[web2py] Re: Image from Video

2012-02-11 Thread Ross Peoples
ffmpeg is video encoder / decoder. You might be able to use the Python bindings for it to grab a single frame of video from the video file, and save that as a PNG or JPG. This is the project page for the ffmpeg bindings: http://code.google.com/p/pyffmpeg/ I've never done this before myself, bu

[web2py] Re: Markmin Output Questions

2012-02-11 Thread Ross Peoples
Anyone have any thoughts on this?

[web2py] Re: Image from Video

2012-02-11 Thread Ross Peoples
You would have to compile it yourself in that case. I don't know how to do that on Windows, so maybe someone else would have some tips for that.

Re: [web2py] Dedicated IDE

2012-02-12 Thread Ross Peoples
I have been following ide/rad2py for a little while now. I am really looking forward to trying this out and I appreciate all the work you have put into it Mariano! Depending on the type of project, I will use either TextMate or Komodo Edit. For larger projects, I use Komodo for the code complet

[web2py] Re: Markmin Output Questions

2012-02-12 Thread Ross Peoples
Massimo, How do you generate the PDF book now?

[web2py] New Plugin: plugin_markitup

2012-02-12 Thread Ross Peoples
I have created another plugin for the MarkItUp widget. I know that plugin_wiki has this currently, but I wanted a dedicated plugin for this for an upcoming project I'm working on. You can get the plugin from Bitbucket: https://bitbucket.org/PhreeStyle/web2py_markitup There is no documentation

[web2py] Re: Memcache ??

2012-02-14 Thread Ross Peoples
http://web2py.com/books/default/chapter/29/4?search=cache#cache When it takes a while to figure something out, like a complex query, you typically want to hold on to the result for a little while so that the next few requests don't have to do through the same process every time. It is used to i

[web2py] Re: * DATE FIELDS REPRESENT *

2012-02-14 Thread Ross Peoples
I don't know if this is the correct way, but I have done this before: {{=db.contracts.date_start.represent(row.date_start)}}

[web2py] Re: digitally sign static files?

2012-02-14 Thread Ross Peoples
I don't think you can do anything with the static folder. You would have to put all the files in "uploaded" or another custom folder, then do something like {{=URL('default', 'download', user_signature=True)}}.

[web2py] Re: css before js advice

2012-02-14 Thread Ross Peoples
I've always read that CSS should go in the and JS should go right before the closing tag.

[web2py] Re: can we use JSONRPC to upload?

2012-02-15 Thread Ross Peoples
I've never tried before, but traditionally, you would encode the binary file into a base64 string, then decode it on the other end. I don't know if JSONRPC does this for you, or has a better way.

[web2py] Re: can we use JSONRPC to upload?

2012-02-15 Thread Ross Peoples
The best way might be to use JSONRPC to get an authorization code, which is then POSTed along with the binary contents in a separate HTTP request.

Re: [web2py] OFF Topic - Business inteligence in Python, web2py?

2012-02-15 Thread Ross Peoples
I think he means reporting functions like Crystal Reports or SQL Server Reports.

Re: [web2py] Re: How to Generate the effective report by using web2py

2012-02-16 Thread Ross Peoples
I had to write a lot of code to get FPDF to do proper headers, footers, and page numbers. Then about another 100 lines of code to get it to wrap long lines of text inside of a table. I'm also not using HTML to PDF conversion. I am using FPDF's methods to create PDFs. If I recall correctly, I tri

[web2py] Re: Associative Table

2012-02-16 Thread Ross Peoples
Good practice says you should ALWAYS have an identity (ID) field, even if you don't use it.

[web2py] Re: Forms not working with web2py in Chrome

2012-02-17 Thread Ross Peoples
I don't know if it helps, but I spotted a typo: Replace the dollar sign in: 'image, format = '$(title)s' with format ='%(title)s'

Re: [web2py] Re: How to Generate the effective report by using web2py

2012-02-17 Thread Ross Peoples
Sanjeet. I sent some code to Mariano last night. So we will have to wait and see if it works for him.

[web2py] Re: Why admin|examples|welcome in hgignore?

2012-02-17 Thread Ross Peoples
I'm not great with regular expressions, but I think it's saying ignore everything in the applications folder EXCEPT admin, examples, welcome, and __init__. I think that's what the '?!' means.

[web2py] Re: using a guid in web2py

2012-02-22 Thread Ross Peoples
You can also use web2py's more robust UUID-generation method: from gluon.utils import web2py_uuid myuuid = web2py_uuid()

[web2py] Re: request.user_agent() dumping

2012-02-27 Thread Ross Peoples
Glad you like the feature! I don't think dimensions are available in the user-agent string that the browser passes to the server. So your only option is to use jQuery or CSS media queries. On Sunday, February 26, 2012 11:13:42 PM UTC-5, weheh wrote: > > And, I might add, this is simply awesome.

[web2py] Re: Web2py and SSLH

2012-02-27 Thread Ross Peoples
I would be interested to see if SSH can actually be forwarded without triggering a main-in-the-middle error. I'm not sure on the first question, but I would guess that you would want to disable everything except your app. At the bottom of the db.py model, just put "session.forget(request)". Thi

[web2py] Re: Time Substraction

2012-02-27 Thread Ross Peoples
Well, one of the issues is going to be that you are using 'date' for your fields instead of 'datetime'. When using 'datetime', it becomes easy to do something like this: delta = row.employee_logout_date - row.employee_login_date minutes = delta.minutes + (delta.hours * 60) On Monday, February 2

Re: [web2py] Get the IP of the System

2012-02-28 Thread Ross Peoples
Alternatively, you can run ipconfig/ifconfig depending on the operating system and parse the results. I have been using this method for a year now and it works great. I would much rather have an API solution, but this method seemed to be the easiest with the fewest dependencies on external libr

Re: [web2py] web2py instance accessible only from localhost

2012-03-07 Thread Ross Peoples
The -i argument should be 0.0.0.0 instead of 127.0.0.1 if you want other machines on the network to access the web2py instance. On Wednesday, March 7, 2012 3:07:20 PM UTC-5, Richard wrote: > > Hello, > > I am pretty mistify by that issue. My ssh port forwarding is running just > fine, I can star

Re: [web2py] Re: TEXT data type deprecated in future MSSQL?

2012-03-19 Thread Ross Peoples
I don't think we need to worry about this for a while. It doesn't say "deprecated", but that it will be removed in a future version (semantics, I know). But, they have not given any indication of what version, which means they probably won't remove it until the version AFTER 2012 (2014, maybe).

[web2py] Re: trouble reading this list

2012-03-19 Thread Ross Peoples
I would suggest clearing browser cache and restarting it. On Monday, March 19, 2012 1:20:01 PM UTC-4, Massimo Di Pierro wrote: > > Is it just me? > > I am having trouble accessing some recent posts on this list. I see the > title, author, and content says "loading...". > I apologize if I cannot a

[web2py] Re: How to best contribute?

2012-03-26 Thread Ross Peoples
Most of my contributions come from code written while working on a project. While working on a project, I will find a bug or notice something that could be much better, then I correct it and send Massimo a patch. The mobile detection feature currently in web2py started as some code that I wrote

[web2py] Re: uploading my web2py website

2011-09-06 Thread Ross Peoples
Shared hosting is the cheapest type of hosting for simple web sites and blogs. In order to get your app to run on a web server, the web server must first have web2py installed. When web2py is installed and running on a server, it acts like an application server (server that runs individual apps

[web2py] Re: accessing webserver

2011-09-07 Thread Ross Peoples
If you are running web2py from the command line, you have to tell it to listen to connections from other computers. This is a security measure. http://web2py.com/book/default/chapter/03?search=0.0.0.0 Or if you aren't using the GUI version, then your string would look something like this: pyth

[web2py] Re: Can anyone explain this jQuery behavior?

2011-09-08 Thread Ross Peoples
Seeing some code would help. I also wonder if you have encapsulated your external js code in something like: jQuery(document).ready(function() { });

[web2py] Off topic: New Google Groups Look

2011-09-09 Thread Ross Peoples
Anyone else see the new look for Google Groups this morning? It looks like the Google+ theme. It's a little different, but it's kind of cool, I think. I like the way it handles source code in messages.

[web2py] simjsonrpc Client and Keyword Arguments

2011-09-12 Thread Ross Peoples
I know that the XMLRPC spec doesn't support keyword arguments, but JSONRPC does. I have been playing with the new simplejsonrpc client and it doesn't seem to support keyword arguments. Here is an example controller: @service.jsonrpc def concat(str1, str2, str3=''): """ Concatenates two

[web2py] XML-RPC Service Introspection / Discovery

2011-09-12 Thread Ross Peoples
One of the nice things about SOAP is the WDSL that gives you information about the methods the service supports. I recently discovered that you can do the same thing with XML-RPC. The trick is to document your methods properly, like you should be doing anyways. Lets say I have the following con

[web2py] Re: New UI package

2011-09-12 Thread Ross Peoples
This looks like a good alternative to jQuery UI

[web2py] Re: If you have not followed recent changes .....

2011-09-14 Thread Ross Peoples
I have tried this using a new app, no jQuery UI or anything yet, just stock welcome app. I have a couple of issues. First in the list, it only shows the index numbers instead of the auth.user representation. Boolean values are also given in numbers instead of checkboxes, or simply 'Yes' / 'No':

[web2py] RPC Performance Testing with Sessions and SSL

2011-09-14 Thread Ross Peoples
This is by no means an academic benchmark, but I was doing some testing with RPC methods and decided to come up with a benchmark to get some average times for the time it takes to make several types of RPC calls, and if one protocol has a performance advantage over another. I tested JSON-RPC and

[web2py] Re: RPC Performance Testing with Sessions and SSL

2011-09-14 Thread Ross Peoples
Another detail I should mention is that the JSON-RPC client can't seem to serialize datetime values, which is why I wrap them in str() in the test.py file. The server can serialize them, and the client can deserialize them (as strings), but the client cannot send a datetime to the server.

[web2py] Re: RPC Performance Testing with Sessions and SSL

2011-09-14 Thread Ross Peoples
Anthony, the only model is the one generated by the welcome app when a new app is created. I have attached it here just for clarification. It has only one model defined (besides the default Auth tables), and that is a simple "task" model.# -*- coding: utf-8 -*- # this file is released under publ

Re: [web2py] Re: If you have not followed recent changes .....

2011-09-14 Thread Ross Peoples
Issue 421

Re: [web2py] RPC Performance Testing with Sessions and SSL

2011-09-14 Thread Ross Peoples
Jonathan, I have downloaded the jsonrpclib and rerun the SSL without Sessions test again. MUCH better: ADD TWO NUMBERS == JSON-RPC: 102.86 ms XML-RPC: 62.83 ms Result: XML won by: 40.04 ms CONCATENATE TWO STRINGS == JSON-RPC: 47.3

Re: [web2py] RPC Performance Testing with Sessions and SSL

2011-09-14 Thread Ross Peoples
Jonathan, I remember now that sessions were optimized so that you didn't need to use session.forget(response) to increase performance. I ran these tests several times, and each test run makes 100 RPC calls per protocol, so there is a large test sample size. When playing with sessions, I would c

Re: [web2py] RPC Performance Testing with Sessions and SSL

2011-09-14 Thread Ross Peoples
Jonathan, Good point about the nop. The nop is on BOTH protocols and does not count against the total time or the averages. Here are the results from that: ADD TWO NUMBERS == JSON-RPC: 75.57 ms XML-RPC: 45.65 ms Result: XML won by: 29.92 ms (165.5% faster) CONCA

Re: [web2py] RPC Performance Testing with Sessions and SSL

2011-09-14 Thread Ross Peoples
Ok, I think I've narrowed down the problem: I put the old db.py file back (the one from the welcome app), then I commented everything. The percentage difference with everything commented out is XML 293% faster. I started uncommenting lines, one by one and running the test with each one. I enabl

Re: [web2py] RPC Performance Testing with Sessions and SSL

2011-09-14 Thread Ross Peoples
Normally, I wouldn't use that kind of percentage, except I wanted to highlight the large gap between the two protocols with Auth is used. JSON-RPC calls stay around 56 ms regardless of what I enable or disable in db.py. But for some reason, XML-RPC falls from 45 ms to 18 ms when Auth is disable

Re: [web2py] RPC Performance Testing with Sessions and SSL

2011-09-14 Thread Ross Peoples
I don't think request stores headers. I tried but couldn't find it in the sources or through introspection. The response object has it, and I included that here. Had to do some work arounds as just returning response.headers generated a ticket, but these are the headers for when Auth is activate

Re: [web2py] RPC Performance Testing with Sessions and SSL

2011-09-15 Thread Ross Peoples
Ok, this is what I had to do in order to get the headers to work over RPC, since it can't serialize file objects and things like that: @service.xmlrpc @service.jsonrpc def headers(): """ Returns the request headers. @return: request headers as dict. """ h = dict(**request

Re: [web2py] RPC Performance Testing with Sessions and SSL

2011-09-15 Thread Ross Peoples
The way it is now, the JSON runs first, then the XML. I never interleaved the two because I wanted to keep it simple. I can make the XML run first instead and do another test: FINAL RESULTS == JSON-RPC Average Time: 59.91 ms JSON-RPC Total Time Taken: 10007.80 ms

[web2py] Re: Apache + mod_wsgi: Allow http access for application

2011-09-15 Thread Ross Peoples
If you used the configuration file in the book, then you would change it to look something like this: Notice that the VirtualHost ports have been changed to 80, and the SSL directives were removed. NameVirtualHost *:80 DocumentRoot "C:/web2py/applications" ServerName server1 Order a

Re: [web2py] RPC Performance Testing with Sessions and SSL

2011-09-15 Thread Ross Peoples
On Thursday, September 15, 2011 11:35:24 AM UTC-4, Jonathan Lundell wrote: > > On Sep 15, 2011, at 8:04 AM, Ross Peoples wrote: > > > The way it is now, the JSON runs first, then the XML. I never interleaved > the two because I wanted to keep it simple. I can make the XML ru

Re: [web2py] RPC Performance Testing with Sessions and SSL

2011-09-15 Thread Ross Peoples
I think we can rule out the json serializer. I just replaced the code in tools.py and serializers.py and tried this. I also confirmed that the C json library was installed. There wasn't any change. However, I wonder if I should send those changes to Massimo as a patch anyways since it seems like

Re: [web2py] RPC Performance Testing with Sessions and SSL

2011-09-15 Thread Ross Peoples
That is correct. I removed Auth from the model, and just added one dummy table, and this table definition had the same effect of auth.define_tables(). Then when I added "migrate=False" to my dummy table, the times for XML dropped back down to 20 ms. During all of this, the JSON times remained b

[web2py] Re: Apache and mod_wsgi: cannot connect mssql by pyodbc

2011-09-15 Thread Ross Peoples
Strangely, I haven't had issues connecting to MSSQL using Linux, but I have never tried on a Windows machine. Usually, the problem lies with pyodbc (or ODBC specifically). Does it give more information about what object it's trying to call 'connect' on?

[web2py] Re: Comments/issues with SQLFORM.smartgrid

2011-09-15 Thread Ross Peoples
Jim, I have also been working on finding ways to improve the grid. Massimo has encouraged me to submit tickets so that these can be tracked easier and don't get lost in discussion. I have already created a couple of issues myself: http://code.google.com/p/web2py/issues/list

Re: [web2py] RPC Performance Testing with Sessions and SSL

2011-09-15 Thread Ross Peoples
Well, the jsonrpclib you had me download is that one that I was using for all of the testing, as it is certainly faster than the simplejsonrpc.py file. I also like the fact that it follows the xmlrpclib logic. I have found it to be more consistent. I also like that it is mature. It is licensed

Re: [web2py] RPC Performance Testing with Sessions and SSL

2011-09-15 Thread Ross Peoples
I forgot to mention that I submitted a patch for preferring the C libraries in web2py: http://code.google.com/p/web2py/issues/detail?id=426

Re: [web2py] Re: Comments/issues with SQLFORM.smartgrid

2011-09-15 Thread Ross Peoples
You'll get there Jim, just keep digging. I don't know all the pieces yet, but just like anything else, once you spend enough time with it, you'll know it like the back of your hand.

[web2py] Re: Apache and mod_wsgi: cannot connect mssql by pyodbc

2011-09-15 Thread Ross Peoples
According to the pyodbc's connection strings info: http://code.google.com/p/pyodbc/wiki/ConnectionStrings you will probably have to use a different driver than FreeTDS, since that's a *nix-only driver (I think). Microsoft has their own driver you can use on Windows machines. Can you manually c

[web2py] Re: Apache and mod_wsgi: cannot connect mssql by pyodbc

2011-09-15 Thread Ross Peoples
There should be an extra { in there, sorry: >>> import pyodbc >>> conn = pyodbc.connect("DRIVER={SQL Server};SERVER=dns_or_ip_of_server;UID=username;PWD=password;DATABASE=database_name")

[web2py] Re: Apache and mod_wsgi: cannot connect mssql by pyodbc

2011-09-15 Thread Ross Peoples
Sounds like there's a problem with wsgihandler.py or main.py's wsgibase() function. I've never really gotten too involved with this part of web2py. My guess would be that you would somehow need to add pyodbc to the sys.path. But again, I don't know much about how WSGI works. Is there more of a

[web2py] Re: Trying to implement token authentication for web service

2011-09-15 Thread Ross Peoples
I am very interested in token-based authentication and authorization using web services because I'm about to have to start getting in to that. I do have a question though, because I was wondering this: can you make a login(username, password) function that does the authentication, then saves so

[web2py] Re: Trying to implement token authentication for web service

2011-09-15 Thread Ross Peoples
Eric, I may have found a way to do it, but it's not pretty. Create a controller that only has login / logout methods. The login method will return your token that is saved somewhere (cache or database). Then in other controllers where you need to enforce token authentication, put this into your

[web2py] Re: web2py received 2011 BOSSIE Award by InfoWorld.com

2011-09-16 Thread Ross Peoples
That post was actually an interesting read. I've worked with you a bit here and there on various things and never knew that much about you. It's nice to know something about the people you talk to on a near daily basis :)

[web2py] Re: Question About Higher level protocols for inter-process socket communication

2011-09-19 Thread Ross Peoples
You can try JSON, Python 2.6+ has a C JSON parser in it already which web2py uses for JSON communications. I haven't done any testing with it versus XML, but JSON is such a simple protocol with minimal parsing requirements that I'd imagine it's much faster than parsing XML.

Re: [web2py] Re: Web2py MVC and Qooxdoo

2011-09-19 Thread Ross Peoples
I have been looking at qooxdoo as a replacement for jQuery UI for quite a while, since they seem to have a nice set of widgets. I don't know why it takes the jQuery UI team over a year to make a menubar widget (that's still not finished), when you could probably write your own high-quality versi

[web2py] Re: web2py at ohloh

2011-09-19 Thread Ross Peoples
Put mine in.

Re: [web2py] what about web2py 2.0?

2011-09-20 Thread Ross Peoples
I was looking at something that would potentially be big, although it would be more of an addon rather than replacement. Integrating qooxdoo to make RIA applications rather than the traditional HTML + AJAX applications. I think we could do something like this, without breaking backwards compatib

Re: [web2py] Re: Are we ready to launch 1.99.1?

2011-09-20 Thread Ross Peoples
You should be using "db.auth_table", not just "auth_table"

Re: [web2py] Re: Are we ready to launch 1.99.1?

2011-09-20 Thread Ross Peoples
Actually, sorry, it should be "db.auth_user". Where did you get the "auth_table" variable from anyways?

Re: [web2py] Re: Are we ready to launch 1.99.1?

2011-09-20 Thread Ross Peoples
The actual code from the book: db.define_table( auth.settings.table_user_name, Field ('first_name', length=128, default=''), Field ('last_name', length=128, default=''), Field

Re: [web2py] Re: Are we ready to launch 1.99.1?

2011-09-20 Thread Ross Peoples
The code I posted is from here: http://web2py.com/book/default/chapter/08#Customizing-Auth

[web2py] Re: password storage with per-user salt

2011-09-21 Thread Ross Peoples
If we are talking about improving security a bit, I would recommend that we also hash passwords in the browser before sending them to the server. I just read about this here: http://dustwell.com/how-to-handle-passwords.html Basically, when a user logs in, registers, or otherwise enters a passwo

[web2py] Re: online book

2011-09-21 Thread Ross Peoples
That's a LOT of stuff to document, but it's worth it. All of those great features in just a short time. Everyone has been doing an awesome job!

[web2py] Re: what about web2py 2.0?

2011-09-21 Thread Ross Peoples
About the documentation. We add features all the time and it will take a long time to document those in the book. Maybe we should be using something like epydoc or sphinx to generate documentation from the code. Then we just have to make sure we document the code properly (which we should all be

[web2py] Re: what about web2py 2.0?

2011-09-21 Thread Ross Peoples
True, but it's not updated. That's why I was leaning more towards Sphinx. You could document the API and the web2py book at the same time. Again, Django's documentation is always updated when they add new features because they add the documentation to the code and rerun Sphinx. So there's no nee

[web2py] Re: maybe it is time to think on starting web3py

2011-09-22 Thread Ross Peoples
Is there still performance issues with Python 3? Last time I checked it ran about 25% slower than Python 2.

[web2py] Re: new web2py issue tracking app

2011-09-22 Thread Ross Peoples
Got a ticket when I clicked the "issue" button on web2py -> "Cannot make it work..." issue: http://tests.web2py.com/admin/default/ticket/tracker/75.150.73.185.2011-09-22.16-22-55.145aae1c-68ec-461b-914f-3c992e712c99 I didn't register or login or anything, so I'm getting "not authorized" message

[web2py] SQLFORM.grid Natural Language Queries

2011-09-23 Thread Ross Peoples
This is a very cool feature! However, I don't think regular users will know how to use this. For one, you have to know the field names. You have to know that "First Name" is actually "first_name" and that "E-mail" is actually "email". Is there a way to make these queries easier for users? Maybe

Re: [web2py] mailing list and web2py apps

2011-09-23 Thread Ross Peoples
You forgot #6: Kick it until it works :)

<    1   2   3   4   5   6   >