Re: [web2py] Re: mail plain text message wrong charset

2010-02-25 Thread Thadeus Burgess
rewritten by mail transport agent. So my primary concern is the generated instruction about how to read the rest of the message. Is it us-ascii or utf-8. I don't mind how is the text actually encoded... On febr. 25, 17:18, Thadeus Burgess thade...@thadeusb.com wrote: There might be an issue

Re: [web2py] Re: web2py with Cherokee via uWSGI: a simple, easy guide

2010-02-25 Thread Thadeus Burgess
and, again, outside the scope of this entry. On Feb 25, 4:47 pm, Thadeus Burgess thade...@thadeusb.com wrote: The following packages are not installed by the PPA... cherokee-doc libcherokee-mod-geoip libcherokee-mod-ldap libcherokee-mod-libssl libcherokee-mod-mysql libcherokee-mod-rrd libcherokee

Re: [web2py] Re: Plugin useradmin (membership manager)

2010-02-25 Thread Thadeus Burgess
You can use Admin to pack this in a installable format that admin can then be used to reimport it into another system. This is so it is a one click installation instead of having to go unzip it and everything. -Thadeus On Thu, Feb 25, 2010 at 6:02 PM, Alexandre Andrade

[web2py] LOAD requires up to date web2py_ajax.html

2010-02-25 Thread Thadeus Burgess
Is there a way that LOAD will just create the necessary javascript, I have noticed in my apps that haved used LOAD, that they break unless I update the jquery functions in web2py_ajax.html. -Thadeus -- You received this message because you are subscribed to the Google Groups web2py-users

Re: [web2py] Re: LOAD requires up to date web2py_ajax.html

2010-02-25 Thread Thadeus Burgess
with no response but I'll say it again: web2py_ajax.html needs an area for something similar to response.files but for raw script. Plugins, widgets and other components could use it to include just this sort of thing. On Feb 25, 6:51 pm, Thadeus Burgess thade...@thadeusb.com wrote: Is there a way

Re: [web2py] Re: importing local modules

2010-02-25 Thread Thadeus Burgess
Done. -Thadeus On Thu, Feb 25, 2010 at 7:06 PM, Jonathan Lundell jlund...@pobox.com wrote: On Feb 25, 2010, at 4:19 PM, mr.freeze wrote: Just do: dt = local_import('datatables') Thanks. Maybe the book should reflect this: http://web2py.com/book/default/section/4/18 (I'd make the

Re: [web2py] Re: LOAD requires up to date web2py_ajax.html

2010-02-25 Thread Thadeus Burgess
py2jquery handles dependencies :) -Thadeus On Thu, Feb 25, 2010 at 8:21 PM, mr.freeze nat...@freezable.com wrote: Sure, but clienttools had it first :) On Feb 25, 8:05 pm, Thadeus Burgess thade...@thadeusb.com wrote: py2jquery manager class does this already also your clienttools

Re: [web2py] app admin - old app missing from list

2010-02-25 Thread Thadeus Burgess
web2py stores all applications in web2py/applications So in this folder you will find web2py/applications/admin web2py/applications/welcome web2py/applications/yourapp You can edit these files with any external editor that you desire. Personally I prefer WingIDE, however since I cannot afford

Re: [web2py] Re: app admin - old app missing from list

2010-02-25 Thread Thadeus Burgess
development and like it a lot for  general coding/debugging. P.S. I'm not sure if it's possible to symlink in windows (xp). Windows short cuts are somewhat similar to symlinks but may not work with web2py . thx again! On Feb 25, 6:43 pm, Thadeus Burgess thade...@thadeusb.com wrote: web2py

Re: [web2py] Re: web2py with Cherokee via uWSGI: a simple, easy guide

2010-02-25 Thread Thadeus Burgess
Web Server/address', 'path_translated': '/home/thadeusb/web2py/admin', 'query_string': '', 'wsgi_run_once': False, 'path_info': '/admin'} -Thadeus On Thu, Feb 25, 2010 at 4:46 PM, Thadeus Burgess thade...@thadeusb.com wrote: Actually, SSL is not out of the scope of this entry. How do you

[web2py] Typo in contrib/markdown/__init__.py

2010-02-25 Thread Thadeus Burgess
Traceback (most recent call last): File gluon/restricted.py, line 173, in restricted exec ccode in environment File /home/thadeusb/web2py/applications/thadeusb/views/default/index.html, line 268, in module File /home/thadeusb/web2py/applications/thadeusb/views/default/index.html, line

Re: [web2py] Re: web2py with Cherokee via uWSGI: a simple, easy guide

2010-02-25 Thread Thadeus Burgess
/apache2 -k start thadeusb 3830 0.0 0.2 7340 884 pts/1S+ 01:04 0:00 grep apache -Thadeus On Fri, Feb 26, 2010 at 12:36 AM, Thadeus Burgess thade...@thadeusb.com wrote: I was able to get the server started with my SSL pem files. It was quite easily actually, I just was only

Re: [web2py] Re: web2py with Cherokee via uWSGI: a simple, easy guide

2010-02-25 Thread Thadeus Burgess
typo on cherokee+uwsgi before testing total should be 31064 -Thadeus On Fri, Feb 26, 2010 at 1:21 AM, Thadeus Burgess thade...@thadeusb.com wrote: I did some interesting ab testing with cherokee / apache. Both installed on the same server, running the exact same web2py app. My apache

Re: [web2py] Re: web2py with Cherokee via uWSGI: a simple, easy guide

2010-02-25 Thread Thadeus Burgess
, Thadeus Burgess thade...@thadeusb.com wrote: typo on cherokee+uwsgi before testing total should be 31064 -Thadeus On Fri, Feb 26, 2010 at 1:21 AM, Thadeus Burgess thade...@thadeusb.com wrote: I did some interesting ab testing with cherokee / apache. Both installed on the same server

Re: [web2py] Re: Plugin system status

2010-02-24 Thread Thadeus Burgess
I also am in favor of a class based plugin system that works like crud/auth. Plugins would not pollute your global namespace. And they would be configurable. Though the loss is of having plugins with their own controllers since the module would be the controller instead. -Thadeus On Wed,

Re: [web2py] Re: Unit testing in web2py : Some thoughts

2010-02-24 Thread Thadeus Burgess
If I create a unittest init/tests/testControllerDefault.py and run the following command line python web2py.py -S yourapp -M -R applications/init/tests/testControllerDefault.py My test is ran. I don't see what is so confusing. -Thadeus On Wed, Feb 24, 2010 at 12:01 PM, Thadeus Burgess

Re: [web2py] Re: Some interrogations concerning Web2py compatibilities

2010-02-24 Thread Thadeus Burgess
I run all of my web2py apps on 2.6 and have never had any problems. web2py will never support python 3.x. For this there will be a fork of web2py created named web3py which will support the python 3.x branch. Python 3.x goes against everything that web2py stands for (backwards compatibility).

Re: [web2py] typos in new documentation?

2010-02-24 Thread Thadeus Burgess
Massimo this looks like an issue with the latex converter ? I cannot get it to see the tilde for the life of me. -Thadeus On Wed, Feb 24, 2010 at 8:57 AM, aure aureliengir...@googlemail.com wrote: Here is what reads on page 6.5. Query, Set, Rows, in part orderby, groupby, limitby,

Re: [web2py] Re: Unit testing in web2py : Some thoughts

2010-02-24 Thread Thadeus Burgess
in web2py.py, finds none, and quits. So now I'm stuck: the unittest module expects test.py to be run as a standalone script, but instead test.py is being executed within the scope of web2py.py, which is confusing the unittest module in several ways. On Feb 24, 1:02 pm, Thadeus Burgess thade

Re: [web2py] Re: Download and Update Progress +a general question

2010-02-24 Thread Thadeus Burgess
... response.write(hello bworld/b, escape=False) The issue is that you will not see until the request actually finishes. There is no way to stream text to the server in the way that you are asking unless using a system such as comet -Thadeus On Wed, Feb 24, 2010 at 4:09 PM, Tiago Almeida

Re: [web2py] Re: Automagically create a user - solved

2010-02-24 Thread Thadeus Burgess
Yes one of the tricks I usually employ is A_settings.py - global settings, etc B_web2py.py - dal definition, auth, crud, services, etc (web2py related things) C_model2.py - model definitions D_model3.py - query definitions plugin_etc.py plugin_etc2.py Z_compress_output.py -Thadeus On Wed,

Re: [web2py] Re: Automagically create a user - solved

2010-02-24 Thread Thadeus Burgess
independent on the ordering. On Feb 24, 4:33 pm, Thadeus Burgess thade...@thadeusb.com wrote: Yes one of the tricks I usually employ is A_settings.py  - global settings, etc B_web2py.py - dal definition, auth, crud, services, etc (web2py related things) C_model2.py - model definitions D_model3.py

Re: [web2py] Re: Unit testing in web2py : Some thoughts

2010-02-24 Thread Thadeus Burgess
on the mailing list indicate that I need to run exec_enviroment() for access to my controllers. Also, the Request/Storage/Response objects don't seem to exist in the shell. On Feb 24, 2:52 pm, Thadeus Burgess thade...@thadeusb.com wrote: Replacing the way you run test suites helps. Instead

Re: [web2py] Re: {{=form.custom.begin}} - How set an ID to form

2010-02-24 Thread Thadeus Burgess
') or form['_id'] = 'thisformid' the latter works with crud forms too. Remember that class SQLFORM(FORM): ... is a helper. On Feb 19, 11:03 am, Thadeus Burgess thade...@thadeusb.com wrote: he wants a HTML CSS id on the form. -Thadeus

Re: [web2py] Re: {{=form.custom.begin}} - How set an ID to form

2010-02-24 Thread Thadeus Burgess
and for the record SQLFORM freaking rocks. It just needs to be redesigned with customization in mind. -Thadeus On Wed, Feb 24, 2010 at 9:55 PM, Thadeus Burgess thade...@thadeusb.com wrote: And hence the inherent flaw in SQLFORM :) Though I can't complain since I have not devoted time

Re: [web2py] Re: Unit testing in web2py : Some thoughts

2010-02-23 Thread Thadeus Burgess
What version of web2py are you running? What is the output of ``python web2py.py --help`` -Thadeus On Tue, Feb 23, 2010 at 5:23 AM, Jon Romero darks...@gmail.com wrote: ust put a prin Hello world! inside the test file, everything works ok. So, I suppose that this file tries to load AGAIN

Re: [web2py] Re: mail plain text message wrong charset

2010-02-23 Thread Thadeus Burgess
Mail has an encoding variable, unless you are running an older version of web2py. The code you posted is for the attachment class. -Thadeus On Tue, Feb 23, 2010 at 3:05 AM, szimszon szims...@gmail.com wrote: tools.py       │ 113589│febr 18 21.57 class Mail(object):        Class for

Re: [web2py] Re: mail plain text message wrong charset

2010-02-23 Thread Thadeus Burgess
           tls: enables/disables encryption (True by default) I can't do another, the file is dated: tools.py       │ 113589│febr 18 21.57 Is it old? On febr. 23, 17:32, Thadeus Burgess thade...@thadeusb.com wrote: Mail has an encoding variable, unless you are running an older version of web2py

Re: [web2py] Re: mail plain text message wrong charset

2010-02-23 Thread Thadeus Burgess
:(  : --===1981490134== Content-Type: multipart/alternative; boundary859693== MIME-Version: 1.0 --===859693== Content-Type: text/plain; charset=us-ascii MIME-Version: 1.0 Content-Transfer-Encoding: 7bit On febr. 23, 20:06, Thadeus Burgess thade...@thadeusb.com wrote

Re: [web2py] Re: mail plain text message wrong charset

2010-02-23 Thread Thadeus Burgess
: text/plain; charset=us-ascii MIME-Version: 1.0 Content-Transfer-Encoding: 7bit On febr. 23, 20:47, Thadeus Burgess thade...@thadeusb.com wrote: Have you tried mail.send(encoding='us-ascii') ? -Thadeus On Tue, Feb 23, 2010 at 1:33 PM, szimszon szims...@gmail.com wrote: Okay. I see

Re: [web2py] web2py with Cherokee via uWSGI: a simple, easy guide

2010-02-23 Thread Thadeus Burgess
Thank you for this. Is uWSGI not available to apt-get ? Any idea on how cherokee performs serving both python and ruby applications? In my apache/mod_wsgi setup, web2py was happily running at 35MB. Then I installed mod_passenger to serve the ruby app and apache memory usage spiked to ~250 just

Re: [web2py] Re: [web2py:38005] Re: auth.settings.controller

2010-02-23 Thread Thadeus Burgess
) There is a special place to put auth.settings.controller (models?) 2009/12/29 mdipierro mdipie...@cs.depaul.edu It is a bug. On Dec 28, 11:54 pm, Thadeus Burgess thade...@thadeusb.com wrote: When I set auth.settings.controller = 'admin' Shouldn't it then default to that? When I request

Re: [web2py] Re: web2py with Cherokee via uWSGI: a simple, easy guide

2010-02-23 Thread Thadeus Burgess
benchmarks and the true results to match. Additionally, it is constantly being improved and there are many wizards. What more can a host ask for? :) - Evan Gray On Feb 23, 7:04 pm, Thadeus Burgess thade...@thadeusb.com wrote: Thank you for this. IsuWSGInot available to apt-get ? Any idea

Re: [web2py] what distinguishes update form from create form

2010-02-22 Thread Thadeus Burgess
Whether it is performing an db.update or a db.insert. With sqlform, when passing a record it assumes db.update -Thadeus On Mon, Feb 22, 2010 at 2:12 AM, hamdy.a.farag hamdy.a.fa...@inbox.com wrote: Hi I was curious , what distinguishes update form from create from in crud, and SQLFORM ?

Re: [web2py] Re: small improvement to TK gui

2010-02-22 Thread Thadeus Burgess
errors are just pickle files. Have at it :) -Thadeus On Mon, Feb 22, 2010 at 2:28 AM, Jason Brower encomp...@gmail.com wrote: +1 And it would be nice to see a list of error links and they happen on the server.  Or a link or viewer for the error logs. Etc... That brings up another point.

Re: [web2py] google app engine, file size limits

2010-02-22 Thread Thadeus Burgess
Well, with RAR files you can split them up into 1MB files. So you get the uploaded file, rar it in .9MB splits, upload to a table that stores chunks. Now when you need the file, pull the chunks out of your table, and unrar them. I know that this works on the unix command line, not sure if the

Re: [web2py] Re: Saving Thumbnail Files

2010-02-22 Thread Thadeus Burgess
What if two requests come in at the same time and they overwrite the thumbnail.jpg file ? Would there be a conflict or does PIL store the image in memory anyways? Also, web2py hashes the filename, so wouldn't it get overwritten if you had multiple thumbnail.jpg of the same size ? -Thadeus

Re: [web2py] creating Microsot Excel type charts

2010-02-22 Thread Thadeus Burgess
google has a charting api for python. it can do most any kind of chart excel can do, if you don't mind your data going to google that is. there are plenty of jquery charts that will turn a html table into a chart. -Thadeus On Mon, Feb 22, 2010 at 8:28 AM, Ramon ramonnova...@hotmail.com

Re: [web2py] Question about web2py license

2010-02-22 Thread Thadeus Burgess
This has come up in the past, the topics on this subject are in the google group if the search would actually work I would share the links to the posts. The licensing of web2py does NOT extend to the apps that you create. What you cannot do is take web2py code, make some modifications to the

Re: [web2py] Unit testing in web2py : Some thoughts

2010-02-22 Thread Thadeus Burgess
Are we looking at the same thing? The link you provided gives an example of using the unittest classes (not doctest), in which you can import anything you want since it is just a python file. In the example is an example of executing your controllers in a web2py environment. Also the doctest

Re: [web2py] Re: uWSGI + Cherokee + web2py - a howto.

2010-02-22 Thread Thadeus Burgess
How do you tell what user cherokee gets executed as when the server boots up? In my typical installation I have a generic user account (like servant) that everything server related exists in this home directory, and it owns everything. With Apache I have to chown/mod the files so that www-data

Re: [web2py] Re: Saving Thumbnail Files

2010-02-22 Thread Thadeus Burgess
are right, I was just demonstrating a concept rather than writing production code but I should include some extra lines to help avoid such issues.  Thanks for your constructive comments. D On Feb 22, 4:41 pm, Thadeus Burgess thade...@thadeusb.com wrote: What if two requests come in at the same time

Re: [web2py] Re: Unit testing in web2py : Some thoughts

2010-02-22 Thread Thadeus Burgess
python web2py.py --help -S APPNAME, --shell=APPNAME run web2py in interactive shell or IPython (if installed) with specified appname -T TEST_PATH, --test=TEST_PATH run doctests in web2py environment; TEST_PATH like

Re: [web2py] Re: Google Authentication with Auth

2010-02-22 Thread Thadeus Burgess
Isn't this what the gluon/contrib/login_methods/gae_google_account.py is for? It integrates directly into web2py auth mechanisms? -Thadeus On Mon, Feb 22, 2010 at 6:52 PM, mr.freeze nat...@freezable.com wrote: I haven't used their api directly but have used RPX to authenticate google

Re: [web2py] Re: something happened to web2py.com

2010-02-21 Thread Thadeus Burgess
, Thadeus Burgess escribió: Or slicehost. I run 3 servers currently on slicehost and never have a problem, A+ support. I also know a client who is using rackspace cloudservers, it is also an A+ service. Rackspace owns slicehost, so it really depends on how much you want to pay. -Thadeus

Re: [web2py] Re: How much memory does web2py need on Unix

2010-02-20 Thread Thadeus Burgess
As another added note.I can further reduce my memory footprint by using wsgi 3.X. 3.X has new directives, one called LazyInitialization, which does not initialize the python interpreter when apache starts, only when a request to the wsgi process is made. Along with this is a directive that tells

Re: [web2py] Re: something happened to web2py.com

2010-02-20 Thread Thadeus Burgess
Or slicehost. I run 3 servers currently on slicehost and never have a problem, A+ support. I also know a client who is using rackspace cloudservers, it is also an A+ service. Rackspace owns slicehost, so it really depends on how much you want to pay. -Thadeus On Sat, Feb 20, 2010 at 7:58

Re: [web2py] Re: How much memory does web2py need on Unix

2010-02-20 Thread Thadeus Burgess
You need to change your tone of voice John. If anyone has been have crying foul, and won't accept test results. It is you. I have shown you a valid apache configuration that is comparable to lighttpd, for the sake of this thread it is important to show that apache can too have a low memory

Re: [web2py] Re: something happened to web2py.com

2010-02-20 Thread Thadeus Burgess
No http://www.linode.com/faq.cfm#do-you-offer-backups For comparative purposes, slicehost does, for a couple dollars extra a month. -Thadeus On Sat, Feb 20, 2010 at 11:36 PM, mdipierro mdipie...@cs.depaul.edu wrote: Brian, do they provide automatic backup? VPS.net have been having major

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

2010-02-19 Thread Thadeus Burgess
, 2010 at 9:22 AM, Timothy Farrell tfarr...@swgen.com wrote: Not if you like Python. On 2/18/2010 6:59 PM, Thadeus Burgess wrote: http://www.coderun.com/ -Thadeus On Thu, Feb 18, 2010 at 8:43 AM, Timothy Farrelltfarr...@swgen.com  wrote: kodingen uses Bespin at its core.  Try using

Re: [web2py] Re: {{=form.custom.begin}} - How set an ID to form

2010-02-19 Thread Thadeus Burgess
): ... is a helper. On Feb 19, 11:03 am, Thadeus Burgess thade...@thadeusb.com wrote: he wants a HTML CSS id on the form. -Thadeus On Fri, Feb 19, 2010 at 6:41 AM, mdipierro mdipie...@cs.depaul.edu wrote: What do you mean by setting an ID? On Feb 19, 2:05 am, arnaud arnaud.masse

Re: [web2py] Re: How much memory does web2py need on Unix

2010-02-19 Thread Thadeus Burgess
You would have a similar memory footprint running apache/mod_wsgi. Mind you I am also running Ruby (mod_passenger) as well as mod_wsgi, so the memory usage is a tiny bit higher because of the extra ruby processes. free -m total used free sharedbuffers cached

Re: [web2py] Re: Any way to close a window from the controller?

2010-02-19 Thread Thadeus Burgess
You could totally do a jqueryui dialog box, and use ajax to get the request :) -Thadeus On Fri, Feb 19, 2010 at 8:03 PM, waTR r...@devshell.org wrote: Sounds like I will just need to have it be a javascript dialog box later. On Feb 19, 5:12 pm, Russell russell.mcmur...@gmail.com wrote:

Re: [web2py] Re: How much memory does web2py need on Unix

2010-02-19 Thread Thadeus Burgess
start) 20,236 (=6620+1756+1572+1992+1692+6604) for Postgres database Data missing: Apache proper web server RSS use John Heenan On Feb 20, 7:33 am, Thadeus Burgess thade...@thadeusb.com wrote: ps aux | grep wsgi ps aux | grep postgres ps aux | grep python USER       PID %CPU %MEM    VSZ

Re: [web2py] Re: How much memory does web2py need on Unix

2010-02-19 Thread Thadeus Burgess
Apache: 6360 web2py: 21244 Postgres: 26693 Total of 27MB, during peak hours of this site. PostgreSQL is negligible since you can pick your database. -Thadeus On Fri, Feb 19, 2010 at 10:55 PM, Thadeus Burgess thade...@thadeusb.com wrote: ww-data  3950  0.0  1.2 145288  6360 ?        S    22

Re: [web2py] Re: How much memory does web2py need on Unix

2010-02-19 Thread Thadeus Burgess
an issue on a tight VPS, so also is CPU use. I have started up another VPS and am working on a stripped down /etc/ lighttpd.conf file that also includes SSL access. When it is ready I will make the file available. John Heenan On Feb 20, 2:55 pm, Thadeus Burgess thade...@thadeusb.com wrote

Re: [web2py] Re: apache prefork

2010-02-18 Thread Thadeus Burgess
look at my slice on web2pyslices about this. It uses mpm-worker only. -Thadeus On Thu, Feb 18, 2010 at 10:01 AM, mdipierro mdipie...@cs.depaul.edu wrote: I am having a problem with apache running out of memory. Not sure if this is a problem with web2py caching or web2py. Can you provide an

Re: [web2py] Re: apache prefork

2010-02-18 Thread Thadeus Burgess
actually, i am wrong, it is using mpm-prefork -Thadeus On Thu, Feb 18, 2010 at 3:55 PM, Thadeus Burgess thade...@thadeusb.com wrote: look at my slice on web2pyslices about this. It uses mpm-worker only. -Thadeus On Thu, Feb 18, 2010 at 10:01 AM, mdipierro mdipie...@cs.depaul.edu

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

2010-02-18 Thread Thadeus Burgess
http://www.coderun.com/ -Thadeus On Thu, Feb 18, 2010 at 8:43 AM, Timothy Farrell tfarr...@swgen.com wrote: kodingen uses Bespin at its core.  Try using it in IE and you get this: http://kodingen.com/_browsehappy.html On 2/17/2010 1:07 AM, mdipierro wrote: This is a cool layout and

Re: [web2py] Problem with example in the book.

2010-02-18 Thread Thadeus Burgess
db.define_table not db.define.table -Thadeus On Thu, Feb 18, 2010 at 7:01 PM, Wayne shalo...@gmail.com wrote: I have been working on section 3.6 of the book but cannot get past the initial database sample.  When I enter the following into db.py and click on 'database administration' I get

Re: [web2py] Re: Custom functions in Model

2010-02-17 Thread Thadeus Burgess
You might have to do both, if there is a way to determine if the script is being called, then use compute, and if it is a form submission use the onvalidation of the form. -Thadeus On Wed, Feb 17, 2010 at 6:31 AM, JAY jwi...@web.de wrote: Hi, yes i think it is an requirement... because

Re: [web2py] Re: routes for subdomain

2010-02-17 Thread Thadeus Burgess
'), ) routes_out = ( ('/init/dashboard/(?Pany.*)', '/\gany'), ) This makes me extremely happy (because it makes my boss happy) -Thadeus On Wed, Feb 17, 2010 at 10:33 AM, Jonathan Lundell jlund...@pobox.com wrote: On Feb 16, 2010, at 10:38 PM, Thadeus Burgess wrote: example.com/controllerA

Re: [web2py] Re: storing a Python list

2010-02-17 Thread Thadeus Burgess
Could you write a function that handles the inserts/selects instead? class MY_PICKLE(): @classmethod def get(keyname): pkldump = db(db.pickle_table.keyname == keyname).select().first() return pickle.loads(pkldump.value) @classmethod def save(keyname, value):

Re: [web2py] To book editors...

2010-02-17 Thread Thadeus Burgess
if you delete a intermediate version (say you had a typo) will you still be able to diff with latex correctly? The diff shows with the previous versions that are now deleted. -Thadeus On Wed, Feb 17, 2010 at 3:11 PM, mdipierro mdipie...@cs.depaul.edu wrote: ou save many times go to the log

Re: [web2py] Re: Possible to separate app and appadmin files?

2010-02-17 Thread Thadeus Burgess
appadmin.html does not use any static files. appadmin.html does however inherit from layout.html, which layout.html does use static files. -Thadeus On Wed, Feb 17, 2010 at 3:39 PM, J.R. thefluxl...@gmail.com wrote: Actually when I restarted the server, after having moved all of the

Re: [web2py] Re: storing a Python list

2010-02-17 Thread Thadeus Burgess
Well basically my idea was to make your own pickle class that would access the DAL and then pickle it. But your wanting to subclass the DAL that can pickle unless you used something like virtualfields ? -Thadeus On Wed, Feb 17, 2010 at 9:20 PM, spiffytech spiffyt...@gmail.com wrote:

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

2010-02-16 Thread Thadeus Burgess
the ability to, is all I'm saying. -Thadeus On Tue, Feb 16, 2010 at 12:44 AM, mdipierro mdipie...@cs.depaul.edu wrote: explain more please On Feb 15, 10:35 pm, Thadeus Burgess thade...@thadeusb.com wrote: what if i want my server to host ssh mercurial repositories ? -Thadeus On Mon, Feb 15

Re: [web2py] Re: flush cache

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

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

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

[web2py] routes for subdomain

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

Re: [web2py] routes for subdomain

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

Re: [web2py] Re: routes for subdomain

2010-02-16 Thread Thadeus Burgess
you list all options for c). You can do this with mod-rewrite in apache. On Feb 16, 4:06 pm, Thadeus Burgess thade...@thadeusb.com wrote: No. example.com/$c/$f maps to /init/public/$c/$f and then dashboard.example.com/$f maps to /init/dashboard/$f I basically want $c.example.com

Re: [web2py] Re: routes for subdomain

2010-02-16 Thread Thadeus Burgess
, line 245, in _compile [Tue Feb 16 16:14:58 2010] [error] [client ] raise error, v # invalid expression [Tue Feb 16 16:14:58 2010] [error] [client] error: syntax error -Thadeus On Tue, Feb 16, 2010 at 5:06 PM, Thadeus Burgess thade...@thadeusb.com wrote: Can I do it for just one $c

Re: [web2py] Re: routes for subdomain

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

Re: [web2py] Re: An enhanced BEAUTIFY class

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

Re: [web2py] Re: An enhanced BEAUTIFY class

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

Re: [web2py] Re: routes for subdomain

2010-02-16 Thread Thadeus Burgess
from path. On Feb 16, 5:37 pm, Thadeus Burgess thade...@thadeusb.com wrote: I can't find any apache rewrite rules that work in this manner. Basically i am just trying to get dashboard.example.com to internally rewrite web2py's URL scheme so that it looks at /init/dashboard but the user

Re: [web2py] Re: routes for subdomain

2010-02-16 Thread Thadeus Burgess
. -Thadeus On Wed, Feb 17, 2010 at 12:03 AM, Jonathan Lundell jlund...@pobox.com wrote: On Feb 16, 2010, at 9:31 PM, Thadeus Burgess wrote: Ok I have spent way to long on this, I can't get any configuration of routes/mod_rewrite to rewrite the hostname. I think Massimo is right: you don't have

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

2010-02-16 Thread Thadeus Burgess
http://kodingen.com/ ?? this seems more along the lines. -Thadeus On Tue, Feb 16, 2010 at 12:29 PM, mikech mp.ch...@gmail.com wrote: To quote a saying: Imitation is the sincerest form of flattery. On Feb 16, 6:48 am, mdipierro mdipie...@cs.depaul.edu wrote: sorry was a joke and I did

Re: [web2py] Re: Execute file in web2py environment fails with cron

2010-02-15 Thread Thadeus Burgess
On Feb 15, 12:29 am, Thadeus Burgess thade...@thadeusb.com wrote: /web2py -Thadeus On Sun, Feb 14, 2010 at 10:30 PM, mdipierro mdipie...@cs.depaul.edu wrote: can you print os.getcwd() to see in which folder it is being executed? On Feb 14, 9:04 pm, Thadeus Burgess thade...@thadeusb.com

Re: [web2py] Re: web2py site problem ?!

2010-02-15 Thread Thadeus Burgess
I would say a negligible difference. How does vps.net compare to slicehost.com ? -Thadeus On Mon, Feb 15, 2010 at 8:46 AM, mdipierro mdipie...@cs.depaul.edu wrote: I just tried this. I have to say vps.net is much easier to use than amazon. They seem to be a little sloppy on security

Re: [web2py] Re: Issue with jquery datepicker calendar not returning the date

2010-02-15 Thread Thadeus Burgess
Try installing firebug and seeing if anything is logging to the console that could be causing the issue ? -Thadeus On Mon, Feb 15, 2010 at 9:22 AM, mdipierro mdipie...@cs.depaul.edu wrote: which browser? I never heard of this issue before. On Feb 15, 6:50 am, Throngly ad...@throngly.com

Re: [web2py] Re: web2py 1.75.1 is Out

2010-02-15 Thread Thadeus Burgess
I test code in trunk with my development, I always pull changes at the start of my day. On the server however... I havn't upgraded those things in forever, and I won't until I find a version I am happy with :) -Thadeus On Mon, Feb 15, 2010 at 9:33 AM, mdipierro mdipie...@cs.depaul.edu

Re: [web2py] Re: Issue with jquery datepicker calendar not returning the date

2010-02-15 Thread Thadeus Burgess
15, 2010 at 9:48 AM, Throngly ad...@throngly.com wrote: Yes, I've been running firebug and could see nothing untoward. I have read that mistakenly having two copies of jquery running can have strange side effects. Is there any way that could happen under web2py? On Feb 15, 3:29 pm, Thadeus

Re: [web2py] Re: Ladies and Gentelmen... the web2py book is online

2010-02-15 Thread Thadeus Burgess
The markdown, it converts single qoutes and drops them sometimes. So most code if it includes a string will not be copy/pastable. Is there a way to have the markdown ignore anything that is code ? -Thadeus On Mon, Feb 15, 2010 at 9:20 AM, mdipierro mdipie...@cs.depaul.edu wrote: Create a

Re: [web2py] Re: Ladies and Gentelmen... the web2py book is online

2010-02-15 Thread Thadeus Burgess
Look at http://web2py.com/book/default/section/6/8 under the code samples. and here http://web2py.com/book/default/section/6/10 Are they typos then ? -Thadeus On Mon, Feb 15, 2010 at 11:38 AM, Anthon anthon.van.der.n...@googlemail.com wrote: Very nice. I already got the PDF, but with the

Re: [web2py] Re: csv import

2010-02-15 Thread Thadeus Burgess
Appadmin has a nasty except: clause that will catch any potential errors that could be happening :) -Thadeus On Mon, Feb 15, 2010 at 3:31 PM, Russell russell.mcmur...@gmail.com wrote: o the lack of validation is a bit of a trap...once I edited an exported CSV with MS Excel, which

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

2010-02-15 Thread Thadeus Burgess
The issue here is that MAX is not a single record, it could be 5 records with the same date, it could be 5000 records with the same date. -Thadeus On Mon, Feb 15, 2010 at 5:08 PM, Tiago Almeida tiago.b.alme...@gmail.com wrote: Can't you sort by day and get the first? I don't know if max

Re: [web2py] Re: Ladies and Gentelmen... the web2py book is online

2010-02-15 Thread Thadeus Burgess
dope. I forgot you had to do all of that conversion stuff :) -Thadeus On Mon, Feb 15, 2010 at 5:42 PM, mdipierro mdipie...@cs.depaul.edu wrote: errors in conversion from latex On Feb 15, 4:25 pm, Thadeus Burgess thade...@thadeusb.com wrote: Look athttp://web2py.com/book/default/section

Re: [web2py] help with password and admin

2010-02-15 Thread Thadeus Burgess
Potential security risk validating against root. but a user account definitely. -Thadeus On Mon, Feb 15, 2010 at 7:46 PM, mdipierro mdipie...@cs.depaul.edu wrote: Currently in admin you login using a password stored in the file parameters_443.py (443 is the post number). I would like the

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

2010-02-15 Thread Thadeus Burgess
provide enough web2py tools to completely manage the vm from inside. On Feb 15, 9:20 pm, Thadeus Burgess thade...@thadeusb.com wrote: Potential security risk validating against root. but a user account definitely. -Thadeus On Mon, Feb 15, 2010 at 7:46 PM, mdipierro mdipie...@cs.depaul.edu

[web2py] Execute file in web2py environment fails with cron

2010-02-14 Thread Thadeus Burgess
When running the command below everything works fine, the python file executes correctly. thadeus$ /usr/bin/python /web2py/web2py.py -S MYAPP -M -R /web2py/applications/MYAPP/cron/update_records.py /web2py/applications/MYAPP/cron/cron.log This works great when running from bash, however when I

Re: [web2py] Re: Execute file in web2py environment fails with cron

2010-02-14 Thread Thadeus Burgess
I can't stress this enough. This exact same line in the system crontab (I just copied and pasted over to the new server and changed the paths) works perfectly on one server running web2py 1.73.1. -Thadeus On Sun, Feb 14, 2010 at 12:54 PM, Thadeus Burgess thade...@thadeusb.com wrote: You

Re: [web2py] Re: Execute file in web2py environment fails with cron

2010-02-14 Thread Thadeus Burgess
/applications/MYAPP/cron/cron.log notice -N in 1.73.1 hardcorn was not working for you. Now that it is working unix cron calls you script wich calls hardcron again. This makes me think that -N should be default if -S. Massimo On Feb 14, 1:00 pm, Thadeus Burgess thade...@thadeusb.com wrote: I can't

Re: [web2py] Re: Execute file in web2py environment fails with cron

2010-02-14 Thread Thadeus Burgess
/web2py -Thadeus On Sun, Feb 14, 2010 at 10:30 PM, mdipierro mdipie...@cs.depaul.edu wrote: can you print os.getcwd() to see in which folder it is being executed? On Feb 14, 9:04 pm, Thadeus Burgess thade...@thadeusb.com wrote: Adding -N does not fix it. Only the following happens

Re: [web2py] Re: why use the admin interface, at all?

2010-02-13 Thread Thadeus Burgess
Hey when your trying to find a solution for your company, you need to go with the system that has the most thorough documentation right up front. If I did not dislike django's way of doing things so much I probably would not have looked into web2py any further when I realized documentation was

Re: [web2py] Re: first gae app

2010-02-13 Thread Thadeus Burgess
i have a web2py app that uses ngrams Also I made a python program that ngrams an mp3 library so you can quickly search and create playlists. http://hg.thadeusb.com/Audio/PlaylistGrepper/ and here is the web2py app http://static.thadeusb.com/web2py.app.ngram.w2p -Thadeus On Sat, Feb 13,

Re: [web2py] about docs

2010-02-12 Thread Thadeus Burgess
No. But we do need quickstart section and the examples does help with that, especially the DAL/tools/interactive examples page is a nice quick reference. -Thadeus On Fri, Feb 12, 2010 at 12:03 AM, mdipierro mdipie...@cs.depaul.edu wrote: now that the book is almost online, after we merge it

Re: [web2py] validation from the shell

2010-02-12 Thread Thadeus Burgess
validators are only for crud / SQLFORM. If you want to verify the record you must do so manually before insertion. (value, error) = IS_NOT_EMPTY()(myvalue) # value is the same as myvalue, but in the case of validators such as IS_UPPER() it is converted to upper case. # error is either a blank

Re: [web2py] Re: Book 6.8. Exporting and Importing Data ( CSV and remote Database Synchronization )

2010-02-12 Thread Thadeus Burgess
No its not missing the leading c. There is no leading c. Try importing cStringIO.cStringIO and see the stacktrace complaining there is no cStringIO module in the cStringIO package. -Thadeus On Fri, Feb 12, 2010 at 9:19 AM, raven ravenspo...@yahoo.com wrote: In the export controller * need

<    3   4   5   6   7   8   9   10   11   12   >