[web2py:35071] Re: Validator IS_IN_DB display string from joined tables

2009-11-11 Thread Frederik Wagner
great! thanks a lot! On Tue, Nov 10, 2009 at 6:20 PM, mdipierro mdipie...@cs.depaul.edu wrote: It seems I was wrong. This is not possible but not diffciult to implement. Give me a couple of days. On Nov 10, 10:15 am, Frederik Wagner fner...@googlemail.com wrote: thanks for the fast reply,

[web2py:35072] web2py CRM (version 0.1)

2009-11-11 Thread mdipierro
CRM = Customer Relationship Management https://launchpad.net/web2py-crm It is a simplified clone of highrise by 37signals. Manages companies, people, tasks, logs, files and almost everything is taggable Includes a stand alone portable tagging plugin Include fullcalendar.js Lots of ajax It

[web2py:35073] Re: floating imprecision

2009-11-11 Thread villas
We're missing the DECIMAL data type (for those DBs that support it). I believe it may still be under consideration. However, without this, it will be difficult to make accounting-type apps. Regards, David On Nov 11, 7:49 am, Richard richar...@gmail.com wrote: Hello, I have some floating

[web2py:35074] Problem with MySql Connection

2009-11-11 Thread Pepe
Hi, I recently installed mysql-python in my account on Dreamhost and changed my sqlite connection to mysql: before: db = DAL('sqlite://storage.sqlite') after: db = DAL('mysql://db_username:db_passw...@mysql.mydomain.cl/ db_name') and now I get this error: Traceback (most recent call last):

[web2py:35075] borken IPV4 validator?

2009-11-11 Thread Frederik Wagner
Hi .*, I already filed it as a bug some days ago, but should have ask here before. Could it be, that the IS_IPV4 provider validates erroneous IPv4's? Reproduction in the shell: 1. type: a=IS_IPV4() 2. type e.g.: a('123.123') which gives a validated output ('123.123', None), also an IP like

[web2py:35076] New features not documented in book 2 ed.

2009-11-11 Thread DenesL
New features not documented in book 2 ed. = 1.72.1 * Alias for id field allows to redefine the name of the 'id' field. * make_migrate=True rebuild missing .table files http://groups.google.com/group/web2py/browse_thread/thread/eed21229883b5a1a *

[web2py:35078] Re: Where is sneaky webserver?

2009-11-11 Thread Markus Gritsch
Hi, what's the status of the Sneaky webserver? In gluon/main.py:676 I see that it is prepared to be used, but it is still commented out. Are there any plans to switch to this server? Kind regards, Markus --~--~-~--~~~---~--~~ You received this message because

[web2py:35079] proper threading in web2py

2009-11-11 Thread Jason (spot) Brower
I want to run a small command over and over to check for data from a serial port. It will be using web2py as the frontend to this application. Not only am I new to threading techniques, but I want to get your advise on how to properly create this thread in the controller or elsewhere if needed.

[web2py:35080] Transfer-Encoding: chunked vs. Content-Length: xxx response

2009-11-11 Thread Markus Gritsch
Hi, when running a web2py app locally using the CherryPy server, the response is sent using Transfer-Encoding: chunked. Also when deployed on appengine. Is there a way to get a non-chunked response which has a Content- Length: field in the response header? Kind regards, Markus

[web2py:35081] Re: GAE caching

2009-11-11 Thread Markus Gritsch
Hi, this is quite nice and it worked for me for some time now. The app loads fast, even if no one was visiting the site for hours. Until recently: When I was visiting the appengine dashboard today, there were 9 keep- alive tasks in the queue which raised the average request rate considerably

[web2py:35082] Re: Python + C++ = Go

2009-11-11 Thread Timbo
Another language? I don't like the syntax much. It's Python + C# + C++. While I sometimes miss curly braces in python (it makes scope more clear in my mind), I do not miss the: - pointers - references - boilerplate code On the plus side, I agree with Massimo, this makes IPC and shared memory

[web2py:35083] Re: w2p files missing from svn?

2009-11-11 Thread mdipierro
It was and people asked for it to be removed for size concerns. On Nov 11, 5:39 am, DenesL denes1...@yahoo.ca wrote: Shouldn't admin.w2p and examples.w2p be in the svn branch? web2py.py --upgrade=yes fails otherwise. Denes --~--~-~--~~~---~--~~ You received

[web2py:35084] Re: Where is sneaky webserver?

2009-11-11 Thread mdipierro
Hopefully soon. On Nov 11, 6:22 am, Markus Gritsch m.grit...@gmail.com wrote: Hi, what's the status of the Sneaky webserver?  In gluon/main.py:676 I see that it is prepared to be used, but it is still commented out. Are there any plans to switch to this server? Kind regards, Markus

[web2py:35085] Re: Transfer-Encoding: chunked vs. Content-Length: xxx response

2009-11-11 Thread mdipierro
Edit wsgiserver and use http 1.0 instead of http 1.1. There is a flag for that. Massimo On Nov 11, 7:06 am, Markus Gritsch m.grit...@gmail.com wrote: Hi, when running a web2py app locally using the CherryPy server, the response is sent using Transfer-Encoding: chunked.  Also when deployed

[web2py:35086] Re: floating imprecision

2009-11-11 Thread DenesL
This has been discussed (a lot) before. It should not be too hard to add. IMO first step would be to document which of the DBs have decimal support. From a previous thread: http://groups.google.com/group/web2py/browse_thread/thread/0aa4a0671489f6ac p=precision, s=scale, [means optional]

[web2py:35087] editable combo

2009-11-11 Thread Sophie
There is a way to have an editable combo in web2py? but i want to define this in the model, so i can have my combo, and find words in there with an autocomplete function. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[web2py:35088] Re: w2p files missing from svn?

2009-11-11 Thread DenesL
Good point. --~--~-~--~~~---~--~~ 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 email to

[web2py:35089] Re: web2py CRM (version 0.1)

2009-11-11 Thread DenesL
Nice but a quick test trying to add a task gave me: Traceback (most recent call last): File C:\web2py\trunk\gluon\restricted.py, line 184, in restricted exec ccode in environment File C:\web2py\trunk\applications\crm/views/default/ view_task.html, line 72, in module NameError: name

[web2py:35090] Re: floating imprecision

2009-11-11 Thread Jonathan Lundell
On Nov 10, 2009, at 11:49 PM, Richard wrote: I have some floating point numbers in my database which I need to test for equality. Numbers like 0.3 are failing an equality test. So, is there a way to store floating point numbers precisely? Or should I be using something like: offset =

[web2py:35091] Re: borken IPV4 validator?

2009-11-11 Thread Jonathan Lundell
On Nov 11, 2009, at 2:32 AM, Frederik Wagner wrote: I already filed it as a bug some days ago, but should have ask here before. Could it be, that the IS_IPV4 provider validates erroneous IPv4's? Reproduction in the shell: 1. type: a=IS_IPV4() 2. type e.g.: a('123.123') which gives a

[web2py:35092] Re: New features not documented in book 2 ed.

2009-11-11 Thread Jonathan Lundell
Thank you for this. A suggestion: perhaps the 2ed errata page could have both errata and additions? On Nov 11, 2009, at 3:32 AM, DenesL wrote: New features not documented in book 2 ed. = 1.72.1 * Alias for id field allows to redefine the name

[web2py:35093] Re: borken IPV4 validator?

2009-11-11 Thread Frederik Wagner
On Wed, Nov 11, 2009 at 5:15 PM, Jonathan Lundell jlund...@pobox.com wrote: On Nov 11, 2009, at 2:32 AM, Frederik Wagner wrote: I already filed it as a bug some days ago, but should have ask here before. Could it be, that the IS_IPV4 provider validates erroneous IPv4's? Reproduction in

[web2py:35094] Auth Question

2009-11-11 Thread Wiiboy
Is there a way to change the expiration time of a session per-session, as opposed to globally (e.g. a default global expiration time, and some method of the session to change the expiration time). I've found that per-session expiration can work well with things like auto-logout.

[web2py:35095] plugin_tagging

2009-11-11 Thread Massimo Di Pierro
How to use it: 1) import the plugin in your app using the latest admin (1.72.3) 2) in your views include {{=tag('mytable',45)}} It will create a tagging widget (that uses ajax) for table mytable, record 45. 3) In other pages or layout you can add {{=tag_cloud()}} and it should be

[web2py:35096] Re: New features not documented in book 2 ed.

2009-11-11 Thread DenesL
You are welcome. Is all the errata in one place? any volunteers otherwise?. Why have them together (errata additions)? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups web2py-users group. To post to this group, send

[web2py:35097] Re: New features not documented in book 2 ed.

2009-11-11 Thread Jonathan Lundell
On Nov 11, 2009, at 9:04 AM, DenesL wrote: You are welcome. Is all the errata in one place? any volunteers otherwise?. http://wiki.web2py.com/Errata_for_web2py_2nd_Edition_Book Why have them together (errata additions)? Perhaps not on the same page, but parallel, and linked. I was

[web2py:35098] Re: web2py CRM (version 0.1)

2009-11-11 Thread mdipierro
Sorry. Fixed. Here is (as a demo) running on GAE: http://web2py-crm.appspot.com/ --~--~-~--~~~---~--~~ 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

[web2py:35099] Re: Auth Question

2009-11-11 Thread mdipierro
Yes. Set the auth.expiration to something very long (in seconds) and expire session yourself: if auth.user and auth.last_visit: expiration = if auth.last_visit + datetime.timedelta(days=0,expiration) request.now: auth.user = None session.auth = None where expiration is

[web2py:35100] Re: plugin_tagging

2009-11-11 Thread mdipierro
You can see it in action at http://web2py-crm.appspot.com On Nov 11, 10:54 am, Massimo Di Pierro mdipie...@cs.depaul.edu wrote: How to use it: 1) import the plugin in your app using the latest admin (1.72.3) 2) in your views include      {{=tag('mytable',45)}} It will create a tagging

[web2py:35101] GAE mail problem

2009-11-11 Thread mdipierro
Does this work for you for 1.72.3? mail.settings.server='gae' It does not seem to work for me but does not give me any error either. Massimo --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups web2py-users group.

[web2py:35102] Re: ssh tunnel Dreamhost

2009-11-11 Thread Thadeus Burgess
http://www.google.com/search?q=ssh+port+forwardingie=utf-8oe=utf-8aq=trls=com.ubuntu:en-US:officialclient=firefox-a -Thadeus On Wed, Nov 11, 2009 at 12:03 AM, Pepe pepea...@gmail.com wrote: Hi! I need to manage the application I installed on Dreamhost, but I do not have ssl. Anyone

[web2py:35103] Re: Problem with MySql Connection

2009-11-11 Thread Thadeus Burgess
YOu need to install the python mysql drivers. apt-get install python-mysql -Thadeus On Wed, Nov 11, 2009 at 4:16 AM, Pepe pepea...@gmail.com wrote: Hi, I recently installed mysql-python in my account on Dreamhost and changed my sqlite connection to mysql: before: db =

[web2py:35104] Re: floating imprecision

2009-11-11 Thread villas
Please add Firebird to list, thanks! D FIREBIRD spec: For DECIMAL(P,S), Precision must be from 1 to 18. Precision = Scale create: CREATE TABLE foo( bar decimal(10,4) ) i.e. This allows: pp. --~--~-~--~~~---~--~~ You received this message because you

[web2py:35105] Re: Python + C++ = Go

2009-11-11 Thread Thadeus Burgess
I like it because it is a compiled language. If it becomes cross-platform without need for an interpreter to be installed, I think it would be a awesome language. But for now it seems to only compile for linux. -Thadeus On Wed, Nov 11, 2009 at 8:17 AM, Timbo tfarr...@swgen.com wrote:

[web2py:35106] Re: editable combo

2009-11-11 Thread Thadeus Burgess
Are you looking for something like the dojo edit combo? -Thadeus On Wed, Nov 11, 2009 at 8:41 AM, Sophie kfarron...@gmail.com wrote: There is a way to have an editable combo in web2py? but i want to define this in the model, so i can have my combo, and find words in there with an

[web2py:35107] Re: New features not documented in book 2 ed.

2009-11-11 Thread DenesL
On Nov 11, 12:08 pm, Jonathan Lundell jlund...@pobox.com wrote: On Nov 11, 2009, at 9:04 AM, DenesL wrote: You are welcome. Is all the errata in one place? any volunteers otherwise?. http://wiki.web2py.com/Errata_for_web2py_2nd_Edition_Book I knew of that one but I believe there is more

[web2py:35108] Re: New features not documented in book 2 ed.

2009-11-11 Thread Jonathan Lundell
On Nov 11, 2009, at 10:01 AM, DenesL wrote: On Nov 11, 12:08 pm, Jonathan Lundell jlund...@pobox.com wrote: On Nov 11, 2009, at 9:04 AM, DenesL wrote: You are welcome. Is all the errata in one place? any volunteers otherwise?.

[web2py:35109] Re: plugin_tagging

2009-11-11 Thread villas
That's a really great little app. Nice layout and I prefer the top corner flash too. Thanks for sharing! D --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups web2py-users group. To post to this group, send email to

[web2py:35110] auth table question

2009-11-11 Thread mr.freeze
Why does the default auth.settings.table_user use IS_NOT_IN_DB for enforce uniqueness on the email field instead of unique=True? I'm curious because the example on creating your own auth table in the book uses unique=True (which obviously enforces at the db level instead of at the form level).

[web2py:35111] Re: auth table question

2009-11-11 Thread mdipierro
it should do both. you are right. On Nov 11, 12:20 pm, mr.freeze nat...@freezable.com wrote: Why does the default auth.settings.table_user use IS_NOT_IN_DB for enforce uniqueness on the email field instead of unique=True? I'm curious because the example on creating your own auth table in the

[web2py:35112] Re: plugin_tagging

2009-11-11 Thread Thadeus Burgess
Ok I'm starting to like your plugin system Massimo. What are the chances we can get a in depth document/tutorial on *developing* plug-ins, including architecture, how LOAD works, etc etc. -Thadeus On Wed, Nov 11, 2009 at 12:09 PM, villas villa...@gmail.com wrote: That's a really great

[web2py:35113] Re: plugin_tagging

2009-11-11 Thread mdipierro
I assume you have seen this: http://www.vimeo.com/7182692 I agree we need something better. On Nov 11, 12:44 pm, Thadeus Burgess thade...@thadeusb.com wrote: Ok I'm starting to like your plugin system Massimo. What are the chances we can get a in depth document/tutorial on *developing*

[web2py:35114] Re: web2py CRM (version 0.1)

2009-11-11 Thread mdipierro
This app is the best example to date of use of web2py and plugins. A good place to start learning. It uses a lot of new syntax. It is clean. It contains less than 2500 lines of code (python + html including layout). It was developed during my last lecture at DePaul IPD. Massimo On Nov 11,

[web2py:35115] Re: plugin_tagging

2009-11-11 Thread Thadeus Burgess
Yes, I was hoping for more of a plugin developer perspective instead of plugin user perspective. -Thadeus On Wed, Nov 11, 2009 at 1:13 PM, mdipierro mdipie...@cs.depaul.edu wrote: I assume you have seen this: http://www.vimeo.com/7182692 I agree we need something better. On Nov 11,

[web2py:35116] Re: plugin_tagging

2009-11-11 Thread Thadeus Burgess
And your the only one who knows the depths of this plugin system :) -Thadeus On Wed, Nov 11, 2009 at 1:40 PM, Thadeus Burgess thade...@thadeusb.comwrote: Yes, I was hoping for more of a plugin developer perspective instead of plugin user perspective. -Thadeus On Wed, Nov 11, 2009

[web2py:35117] Re: web2py CRM (version 0.1)

2009-11-11 Thread Thadeus Burgess
I bzr branched the C.R.M. It contains no views for plugin_tags? Should it? -Thadeus On Wed, Nov 11, 2009 at 1:18 PM, mdipierro mdipie...@cs.depaul.edu wrote: This app is the best example to date of use of web2py and plugins. A good place to start learning. It uses a lot of new syntax. It

[web2py:35118] web2py + mod_wsgi

2009-11-11 Thread Massimo Di Pierro
from 0 to web2py+postgresql+apacge2+mod_wsgi+ssl+postfix in a couple of seconds. On ubuntu just run this script and it will: 1) install all necessary packages 2) download and install web2py 3) download and install postgresql, apache2, mod_wsgi, postfix 4) create a self-signed certificate 5)

[web2py:35119] Re: web2py CRM (version 0.1)

2009-11-11 Thread mdipierro
oops. sorry. try again. On Nov 11, 2:10 pm, Thadeus Burgess thade...@thadeusb.com wrote: I bzr branched the C.R.M. It contains no views for plugin_tags? Should it? -Thadeus On Wed, Nov 11, 2009 at 1:18 PM, mdipierro mdipie...@cs.depaul.edu wrote: This app is the best example to date of

[web2py:35120] Re: web2py CRM (version 0.1)

2009-11-11 Thread mdipierro
I would take some help in adding internationalization and improving/ testing the fullcalendar capabilities. Also need to add search by tag. On Nov 11, 3:23 pm, mdipierro mdipie...@cs.depaul.edu wrote: oops. sorry. try again. On Nov 11, 2:10 pm, Thadeus Burgess thade...@thadeusb.com wrote:

[web2py:35121] Re: flexible routes

2009-11-11 Thread Christopher Steel
Is this what you mean? Models db.py db_news.py db_wiki.py Controllers /default.py /news.py /wiki.py On Nov 9, 1:22 pm, eggy_ markflorisso...@gmail.com wrote: I don't need it as such, but I want to group certain related parts of the web application that don't necessarily need to be in the

[web2py:35122] Twill + Web2Py

2009-11-11 Thread David
Hey guys, I've been studying up on working with scraping/parsing and remote logins for sites that don't have APIs and I came across Twill. Have any of you used it to automate things like login and screen/html parsing? It would be nice to be able to login to a remote site via a model/

[web2py:35123] Re: SQLFORM problem

2009-11-11 Thread __Kyo__
I create a sqlform who contains a multicombo, and i also using the slyce of the add link, thanks a lot for those things, however when i want to include this into the appadmin controler, i have an error. Instead of appearing in the multicombo boxes appears another form. On Nov 9, 10:35 am,

[web2py:35124] Re: Twill + Web2Py

2009-11-11 Thread mdipierro
perhaps integrate it with this: http://code.google.com/p/web2py/source/browse/trunk/scripts/layout_make.py It takes an html template with css and makes a web2py layout. It would be nice to make a camelion app that make web2py look like the site at a given url, at the click of a button. Ideally

[web2py:35126] Not Encoding HTML in View {{=}}

2009-11-11 Thread Mark Larsen
How can I get my view to not encode my html. For example if I do: '/tdtd'.join(['A','B','C']) I get: Alt;/tdgt;lt;tdgt;Blt;/tdgt;lt;tdgt;C I want: A/tdtdB/tdtdC Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[web2py:35127] Re: Twill + Web2Py

2009-11-11 Thread Richard
I have been using Mechanize (http://wwwsearch.sourceforge.net/ mechanize/) recently and found it useful. Do you know how Twill and Mechanize compare? My impression was Twill is a high level wrapper around Mechanize, which makes it suitable for basic tasks, but the larger Mechanize API is

[web2py:35128] Re: Twill + Web2Py

2009-11-11 Thread Dmitri Zagidulin
I haven't used Twill for screen scraping or parsing, but I do use it extensively for functional testing (and unit testing, actually) of web2py apps. But for scraping, I could see how you could use Twill's python API to go to a page, login, and call show() to get back the html for a page (which

[web2py:35129] Re: Not Encoding HTML in View {{=}}

2009-11-11 Thread Wes James
XML('/tdtd'.join(['A','B','C'])) On Wed, Nov 11, 2009 at 3:40 PM, Mark Larsen larsen...@gmail.com wrote: How can I get my view to not encode my html. For example if I do: '/tdtd'.join(['A','B','C']) I get: Alt;/tdgt;lt;tdgt;Blt;/tdgt;lt;tdgt;C I want: A/tdtdB/tdtdC Thanks!

[web2py:35130] Re: floating imprecision

2009-11-11 Thread Richard
OMG that's bad!! For now I have restructured my logic so I can just deal with integers. Hopefully decimal support comes soon, though I am using sqlite for this... On Nov 12, 3:03 am, Jonathan Lundell jlund...@pobox.com wrote: On Nov 10, 2009, at 11:49 PM, Richard wrote: I have some floating

[web2py:35131] Re: Not Encoding HTML in View {{=}}

2009-11-11 Thread Mark Larsen
XML('/tdtd'.join(['A','B','C'])) Thanks Wes, I knew there had to me a simple mechanism in place. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups web2py-users group. To post to this group, send email to

[web2py:35132] Re: Twill + Web2Py

2009-11-11 Thread Wes James
On Wed, Nov 11, 2009 at 3:48 PM, Dmitri Zagidulin dzagidu...@gmail.com wrote: snip # Go to a url go('http://en.wikipedia.org/wiki/Web2py') # Use formvalue() and submit() functions to log in xhtml = show()   # Capture the contents of the html page in a variable # Send the variable to a

[web2py:35133] Connection to mysql problem

2009-11-11 Thread ShoqulKutlu
Hi, I installed web2py Version 1.72.3 on Windows. When I started the web2py server it found the MySql driver. But I couldn't get connected to mysql in db.py. I tried following connection strings: db = DAL(mysql://root:@localhost:3306/test) or db = DAL(mysql://root:@localhost/test) both

[web2py:35134] Combo model

2009-11-11 Thread Sophie
Hi i was checking the web2py slices, and i think i can help the community if i made an example, making some of them. So i am using multi combo, i am using the slice autocomplete of mr.freeze, the options_with_add_link of renatocaliari. I was trying to make this demo for all of you and i have

[web2py:35135] Re: Connection to mysql problem

2009-11-11 Thread Wiiboy
Are there any error messages? --~--~-~--~~~---~--~~ 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 email to

[web2py:35136] Re: Connection to mysql problem

2009-11-11 Thread ShoqulKutlu
Hi again, Sorry I confused about error shown at web2py. Now I am able to connect it. Thank you. What is the gluon library exactly? I am new on web2py even on python programming. I have another question which should have a different topic. But if you consider responding here I'd like to ask it

[web2py:35138] Re: editable combo

2009-11-11 Thread Sophie
what is that? On 11 nov, 12:58, Thadeus Burgess thade...@thadeusb.com wrote: Are you looking for something like the dojo edit combo? -Thadeus On Wed, Nov 11, 2009 at 8:41 AM, Sophie kfarron...@gmail.com wrote: There is a way to have an editable combo in web2py? but i want to define

[web2py:35139] Re: Twill + Web2Py

2009-11-11 Thread David
what DOM parser do you recommend or do you know is available? snip In my search for answers I happened across this link. http://blog.ianbicking.org/2008/03/30/python-html-parser-performance/ - David On Nov 11, 4:52 pm, Wes James compte...@gmail.com wrote: On Wed, Nov 11, 2009 at 3:48 PM,

[web2py:35140] Re: editable combo

2009-11-11 Thread ShoqulKutlu
I think autocomplete combos are just simple text boxes. If I were you I would look for some javascript and ajax code about that. The following widget is an example of that but I haven't investigated it. I think it's within a python library called plone.

[web2py:35141] Re: Connection to mysql problem

2009-11-11 Thread Wiiboy
Sorry I confused about error shown at web2py. Now I am able to connect it. Thank you. What is the gluon library exactly? Web2py used to be called gluon. The gluon modules etc. is all the Web2py libs, I think. I am new on web2py even on python programming. I have another question which

[web2py:35142] Re: Connection to mysql problem

2009-11-11 Thread ShoqulKutlu
OK, thanks for your response. Regards, Kutlu On Nov 12, 1:55 am, Wiiboy jordon...@gmail.com wrote: Sorry I confused about error shown at web2py. Now I am able to connect it. Thank you. What is the gluon library exactly? Web2py used to be called gluon.  The gluon modules etc. is all the

[web2py:35143] Re: Connection to mysql problem

2009-11-11 Thread mdipierro
About the second questions. The answer is yes but the howto really depends on many optimizaiton trade-off. Chapter 11 of the book discusses the issue in some detail. Massimo On Nov 11, 5:21 pm, ShoqulKutlu kursat.ku...@gmail.com wrote: Hi again, Sorry I confused about error shown at web2py.

[web2py:35144] [Please, help ] error on admin via ssl

2009-11-11 Thread Pepe
Hi! this is the error ticket: (dp1 S'output' p2 S'' sS'layer' p3 S'/home/.debuggers/ftp_python/biencomun.cl/applications/admin/models/ access.py' p4 sS'code' from gluon.admin import apath # ### # ## make sure administrator is on localhost

[web2py:35145] new on web2pyslices.com: concurrent RPX and web2py auth

2009-11-11 Thread mr.freeze
This lightweight module allows you to use RPX multi-provider single sign on service and web2py forms auth concurrently. http://www.web2pyslices.com/main/slices/take_slice/28 Enjoy! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[web2py:35146] Re: error on admin via ssl

2009-11-11 Thread mr.freeze
Looks like a DNS problem. Try setting a breakpoint and seeing what http_host is before the first if/else. On Nov 11, 6:22 pm, Pepe pepea...@gmail.com wrote: Hi! this is the error ticket: (dp1 S'output' p2 S'' sS'layer' p3

[web2py:35147] upload form keepvalues

2009-11-11 Thread Richard
Hello, I have an upload form with keepvalues=True. When there is a form error all my text fields remain intact but the upload field is empty, which means the user has to navigate to the file again. Is it possible to keep this file selected in the upload field, or is this a security risk blocked

[web2py:35148] Re: Twill + Web2Py

2009-11-11 Thread Richard
that blog post got me interested in lxml, which is a very efficient library with a robust HTML parser. On Nov 12, 10:51 am, David digitalcry...@gmail.com wrote: what DOM parser do you recommend or do you know is available? snip In my search for answers I happened across this link.

[web2py:35149] Re: error on admin via ssl

2009-11-11 Thread Pepe
hi! how i can to do that? sorry, i'm not a very experimented programmer the site is hosted in Dreamhost, with a self-signed ssl Thanks so much for your help! On Nov 11, 9:59 pm, mr.freeze nat...@freezable.com wrote: Looks like a DNS problem.  Try setting a breakpoint and seeing what

[web2py:35150] Re: error on admin via ssl

2009-11-11 Thread mr.freeze
In that case you can't. Putty into your server, start python and type this: import socket hn = socket.gethostname() socket.gethostbyname(hn) And see if you get the same error. On Nov 11, 7:51 pm, Pepe pepea...@gmail.com wrote: hi! how i can to do that? sorry, i'm not a very experimented

[web2py:35151] Re: upload form keepvalues

2009-11-11 Thread mr.freeze
HTML spec supports it but most browsers don't for security reasons. On Nov 11, 7:43 pm, Richard richar...@gmail.com wrote: Hello, I have an upload form with keepvalues=True. When there is a form error all my text fields remain intact but the upload field is empty, which means the user has

[web2py:35152] Re: error on admin via ssl

2009-11-11 Thread Graham Dumpleton
On Nov 12, 11:22 am, Pepe pepea...@gmail.com wrote: if request.env.http_x_forwarded_for or request.env.wsgi_url_scheme\      in ['https', 'HTTPS']:     session.secure() elif not remote_addr in hosts:     raise HTTP(200, T('Admin is disabled because insecure channel')) Huh, what exactly is

[web2py:35153] Re: error on admin via ssl

2009-11-11 Thread Pepe
no error, i get this: '208.113.149.17' but the ip of the site is different. the domain have a Unique IP. know you what i can to do? thanks! On Nov 11, 10:59 pm, mr.freeze nat...@freezable.com wrote: In that case you can't. Putty into your server, start python and type this: import

[web2py:35155] Re: new on web2pyslices.com: concurrent RPX and web2py auth

2009-11-11 Thread mdipierro
We should include this in web2py. It is great! On Nov 11, 6:56 pm, mr.freeze nat...@freezable.com wrote: This lightweight module allows you to use RPX multi-provider single sign on service and web2py forms auth concurrently. http://www.web2pyslices.com/main/slices/take_slice/28 Enjoy!

[web2py:35156] Re: error on admin via ssl

2009-11-11 Thread Pepe
Thanks very much, thats work. On Nov 11, 11:30 pm, mr.freeze nat...@freezable.com wrote: You could try removing 'socket.gethostbyname(http_host), ' from the else if you need to get the site back up. Not sure what the root cause is though. On Nov 11, 8:18 pm, Pepe pepea...@gmail.com wrote:

[web2py:35157] Re: error on admin via ssl

2009-11-11 Thread mr.freeze
Good to hear. I think Dreamhost is probably the culprit. On Nov 11, 8:47 pm, Pepe pepea...@gmail.com wrote: Thanks very much, thats work. On Nov 11, 11:30 pm, mr.freeze nat...@freezable.com wrote: You could try removing 'socket.gethostbyname(http_host), ' from the else if you need to

[web2py:35158] Re: Twill + Web2Py

2009-11-11 Thread David
That definitely turned me on to lxml as well. I've been running with BeautifulSoup but sometimes it chokes and lxml seems to play better. I was also reading about a BeautifulSoup wrapper for lxml but have not gotten into it much as I was working on the first part of this with twill tonight.

[web2py:35159] Re: Python + C++ = Go

2009-11-11 Thread waTR
Check out the video to find out why they did a new language rather than a library for Instert Language of Choice Here. It is actually a very interesting development in the world of programming languages because it is the the first SYSTEM PROGRAMMING language to be released in a very long time.

[web2py:35160] Re: plugin_tagging

2009-11-11 Thread Wiiboy
I'm just messing around with this, and I'm getting: Traceback (most recent call last): File /media/apps/web2py/gluon/restricted.py, line 184, in restricted exec ccode in environment File /media/apps/web2py/applications/main/models/ plugin_tagging.py, line 7, in module Field

[web2py:35161] Re: upload form keepvalues

2009-11-11 Thread Richard
hmm, guess I should do more form error checking client side then. Would it be possible for SQLFORM to also do some of the form checks client side, and cancel submit if there is a problem? Most of the validators would be easy to implement in Javascript, I imagine. Richard On Nov 12, 1:06 pm,

[web2py:35163] Re: upload form keepvalues

2009-11-11 Thread mr.freeze
There are several good client side validation plugins for jQuery. That would be a good starting point for a module. On Nov 11, 10:28 pm, Richard richar...@gmail.com wrote: hmm, guess I should do more form error checking client side then. Would it be possible for SQLFORM to also do some of the

[web2py:35164] plugin_tagging

2009-11-11 Thread Massimo Di Pierro
resending with some bug fixes --~--~-~--~~~---~--~~ 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 email to

[web2py:35165] new in trunk, for fun

2009-11-11 Thread mdipierro
I do not know if this should be in web2py or not but it can be useful for testing and debugging. from gluon.contrib.populate import populate db=DAL() db.define_table('person', Field('name')) db.define_table('dog', Field('name'),

[web2py:35166] Re: new in trunk, for fun

2009-11-11 Thread Jason (spot) Brower
AWSOME This would come in very handy in teaching and testing! On Thu, Nov 12, 2009 at 8:39 AM, mdipierro mdipie...@cs.depaul.edu wrote: I do not know if this should be in web2py or not but it can be useful for testing and debugging. from gluon.contrib.populate import populate db=DAL()