[web2py] Re: cron issue

2010-02-08 Thread AchipA
an > > On Jan 31, 2:17 pm, mdipierro wrote: > > > Unless we misunderstand we have that already. The file just needs to > > end in .py as in > > > * * * * * root myscript.py > > > You can also call actions > > > * * * * * root *myscript.py > > >

[web2py] Re: cron issue

2010-02-08 Thread AchipA
is misleading (they are executed after > ever action for every app). May not be thread safe. > > On Feb 8, 7:40 am, AchipA wrote: > > > Fiddling with this now, but have a few concerns, so I'd like Massimo > > to chime is as the exec expert. The main reason for going PO

[web2py] Re: cron issue

2010-02-08 Thread AchipA
On Feb 8, 8:22 pm, mdipierro wrote: > On Feb 8, 11:43 am, AchipA wrote: > > > 1) ok > > 2) this would be the cron.master file. Sadly, it must be a file as > > otherwise multiprocess setups (like wsgi) would trip over each other. > > ok. but there should be a func

[web2py] Re: cron issue

2010-02-08 Thread AchipA
want to include models in the story) - that's why calling a new web2py process to sort or controller/model issues was a simple way of doing it in a foolproof manner. On Feb 9, 3:14 am, John Heenan wrote: > Since AchipA is working on other changes to cron.py and cron.py is > his, I thi

[web2py] Re: web2py site problem ?!

2010-02-12 Thread AchipA
That is not correct. EBS provides permanent storage, but even without that, you have instance level consistency, so if you reboot your instance, your stuff will still be there. You also have monitoring features that make it easy to bring back a service on an another instance. AWS is not built to a

[web2py] Re: web2py site problem ?!

2010-02-12 Thread AchipA
When you are creating an EBS volume you can choose a snapshot to prepopulate it with. On Feb 12, 8:32 pm, mdipierro wrote: > I have an instance with root mounted on EBS storage and if take > snapshots of the latter. If I understand how this works the root > filesystem should be backed up in the s

[web2py] Re: cron warning...

2010-03-01 Thread AchipA
3 is the correct choice for several reasons. If the jobs should not overlap, it's the scripts reponsibility to provide a check and react accordingly. IMHO Cron should not skip tasks or change the start time voluntarily (it's not a resource manager). Also, 3 is how the 'real' cron works. On Mar 1,

[web2py] Re: web2py book and softcron

2010-04-01 Thread AchipA
There is some overhead, but efficiency is a disputable term - there is certainly more overhead than hardcron, but IMO not in a way that would affect overall performance unless you're running it on a site that has hundreds of thousands of hits per day... On Apr 1, 5:40 pm, Jonathan Lundell wrote:

[web2py] Re: web2py book and softcron

2010-04-01 Thread AchipA
Exactly, hardcron checks once a minute, softcron checks on each page load. The 'check' is calling a function or two and comparing a file's timestamp, so not *that* much more expensive. On Apr 1, 7:51 pm, Jonathan Lundell wrote: > On Apr 1, 2010, at 10:37 AM, AchipA wrote: &

[web2py] Re: web2py book and softcron

2010-04-02 Thread AchipA
11:20 AM, AchipA wrote: > > > Exactly, hardcron checks once a minute, softcron checks on each page > > load. The 'check' is calling a function or two and comparing a file's > > timestamp, so not *that* much more expensive. > > Thanks. > > In that case, I

[web2py] Re: webserver slow, misreported

2010-04-05 Thread AchipA
Can you elaborate how can cron cause database locking issues (apart from such issues being caused by child processes)? The content of the crontab is irrelevant, whether you only have @reboot or more makes no difference. If there would be no check, you could not change cron parameters without resta

[web2py] Re: web2py book and softcron

2010-04-12 Thread AchipA
ingle request - as opposed to a simple cached non-locking filesystem call). On Apr 1, 8:20 pm, AchipA wrote: > Exactly, hardcron checks once a minute, softcron checks on each page > load. The 'check' is calling a function or two and comparing a file's > timestamp, so not *that

[web2py] Re: web2py book and softcron

2010-04-12 Thread AchipA
s most of the try.. except... (people > complained about that) and just stores start_time, stop_time > explicitly in a picke. > > On Apr 12, 8:00 am, AchipA wrote: > > > To correct myself, it seems the cron in web2py no longer uses the > > filesystem timestamps, but cPickl

[web2py] Re: web2py book and softcron

2010-04-13 Thread AchipA
e a minute, but read quite a bit more as we scale upwards - like on a shared volume or on a busy site with softcron). On Apr 12, 11:27 pm, mdipierro wrote: > On Apr 12, 1:19 pm, AchipA wrote: > > > Why do we need the time range ? If the tasks are overlapping it's > > their resp

[web2py] Re: web2py book and softcron

2010-04-13 Thread AchipA
We may also need to id each schedules call to > cron and detect not only whether a cron task is running but which of > past scheduled tasks are running. > > Bottom line: the part of cron/newcron that runs every 1 minute need to > be redesigned completely in my view. > > Massimo

[web2py] Re: web2py book and softcron

2010-04-14 Thread AchipA
... ? On Apr 13, 8:18 pm, mdipierro wrote: > This an easier one. @Achipa, want to do this? > > On Apr 13, 10:49 am, Thadeus Burgess wrote: > > > If we are working on cron can I inject a feature request? > > > Support for multiple crontab files in applicati

[web2py:23730] Re: web2py perfomance

2009-06-09 Thread AchipA
Any particular reason not doing is_integer via a 'try: int(i) except: return False' statement ? It should be faster than regexes. On Jun 7, 1:49 pm, Iceberg wrote: > On Jun7, 6:35pm, Alexey Nezhdanov wrote: > > > > > > 2) is_integer is a fast call, but with 1.1k (!) calls ... > > > Replaced it

[web2py:23739] table/sqltable helper post-production

2009-06-09 Thread AchipA
Just been through some TABLE() and SQLTABLE() work and could not find a way (I was satisfied with) to change output results of particular columns. For example, I have an sql column that is a color code and I'd like to put in a css element with that color. The hard way is obviously foregoing the {{

[web2py:23770] Re: table/sqltable helper post-production

2009-06-09 Thread AchipA
our own SQLTABLE2, or > 2) loop over rows explicitly > > Massimo > > On Jun 9, 11:50 am, AchipA wrote: > > > Just been through some TABLE() and SQLTABLE() work and could not find > > a way (I was satisfied with) to change output results of particular > > colum

[web2py:23766] Re: web2py perfomance

2009-06-09 Thread AchipA
; function is expensive in python, so we shall call native function > (implemented by C) whenever possible. > > On Jun10, 0:48am, mdipierro wrote: > > > good point. Anyway, the function is no longer called as often as > > Alexey originally pointed out, so it would make a negl

[web2py:23771] getHelperById ?

2009-06-09 Thread AchipA
Another idea while I wait for some of my computations to finish. Javascript can access HTML elements in different ways. With web2py helpers, this can get a bit cumbersome. How about a generic getHelperById method for the base helper class so it goes through it's components and fetches the helper w

[web2py:23780] Re: getHelperById ?

2009-06-09 Thread AchipA
is there already: > > form.element(_id='something')['_class']='red' > > On Jun 9, 2:58 pm, AchipA wrote: > > > Another idea while I wait for some of my computations to finish. > > Javascript can access HTML elements in different ways. With we

[web2py:23814] Re: getHelperById ?

2009-06-10 Thread AchipA
m').find('#whatever') > > works as well, though slower > > On Jun 9, 5:48 pm, mdipierro wrote: > > > it returns the actual helper, not a copy. > > > On Jun 9, 4:41 pm, AchipA wrote: > > > > Err... I was under the impression div.element only wo

[web2py:23815] Re: web2py perfomance

2009-06-10 Thread AchipA
On Jun 10, 7:01 am, Alexey Nezhdanov wrote: > I get these results (best timing): >   try-variant: 10.24s >   regex: 9.58s > So on my laptop try:except: function loses about 5% to regex - probably it > depends on hardware/OS. Interesting, which python/platform are you using ? > And as Massimo po

[web2py:23820] Re: web2py perfomance

2009-06-10 Thread AchipA
> > > So on my laptop try:except: function loses about 5% to regex - probably > > > it depends on hardware/OS. > > > Interesting, which python/platform are you using ? > > Python 2.5.2 (r252:60911, Jul 31 2008, 17:28:52) > [GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)] on linux2 Hm, is it perhaps 32bit ? Th

[web2py:23899] YACI, or how to speed up model loading

2009-06-11 Thread AchipA
I was wondering of a possibility of speeding up models (especially if you have several different datasources), while keeping backward compatibility and also a convention over configuration approach. We do everything as before, however, if there IS a model with the same base name as a controller, u

[web2py:23915] Re: YACI, or how to speed up model loading

2009-06-11 Thread AchipA
dels > > On Jun 11, 8:03 am, AchipA wrote: > > > I was wondering of a possibility of speeding up models (especially if > > you have several different datasources), while keeping backward > > compatibility and also a convention over configuration approach. We do > >

[web2py:23917] Re: sqllite web2py gen question

2009-06-11 Thread AchipA
It would be surprising if mysql would manage to keep it's position - from what most blogs/news said, it seems most of the core mysql developers have jumped ship. On Jun 11, 4:23 pm, JohnMc wrote: > Might want to keep our eyes on this DB > --http://askmonty.org/wiki/index.php/MariaDB. > They hav

[web2py:23956] Re: YACI, or how to speed up model loading

2009-06-11 Thread AchipA
On Jun 11, 10:08 pm, DenesL wrote: > Using the common code in the controller as a model substitute? > There goes the MVC separation. > And the other models still get executed. > > I think AchipA means execute one model only. > The problem is that models are executed before c

[web2py:23990] Re: YACI, or how to speed up model loading

2009-06-12 Thread AchipA
On Jun 12, 4:36 am, DenesL wrote: > > a) if there is no stuff.py in models, we include all models, > > convenient for development, friendly to newbies > > If no stuff.py include everything else?. > I am against this one. Errr, but that is how it works right now, so you have to keep this behavior

[web2py:24415] Re: web2py 1.64.2 is OUT

2009-06-18 Thread AchipA
Wasn't there a policy that new functionality is only included in major releases and not point releases ? If that's still in place it would be perfectly OK to rename it for 1.65 as you shouldn't rely on 1.64.*2* to have this anyway. On Jun 18, 7:37 am, mdipierro wrote: > Good point but now it mad

[web2py:24416] Re: universal data representation/encoding

2009-06-18 Thread AchipA
I think we're forgetting an important lesson from gettext here... What you include in T() is NOT the message. It's an ASCII key. Of course, most people make the key identical to the English message string for convenience as it's the fallback, too. On Jun 17, 1:38 pm, Francisco Gama wrote: > Tha

[web2py:24423] Re: web2py 1.64.2 is OUT

2009-06-18 Thread AchipA
Why not just (IS_)STRONGPWD (or pwdstrength) ? That's what it is, isn't it ? On Jun 18, 2:49 pm, "mr.freeze" wrote: > Sorry guys, didn't even think about the python complex number object. > > Perhaps just COMPLEXITY? So you could say: > db.mytable.passwd.requires=[COMPLEXITY(),CRYPT()] > > I too

[web2py:24578] Re: Coming from grails world

2009-06-20 Thread AchipA
You didn't say what web server you used for Django, whether you benchmarked compiled applications or not, etc, etc. The only way it's not apples and oranges if you use the SAME web server and compiled code. You wouldn't be using the bundled servers in a production environment anyway (that's true f

[web2py:24774] Shove as cache backend ?

2009-06-23 Thread AchipA
I was wondering whether there would be interest to extend web2py caching with shove ( http://pypi.python.org/pypi/shove ). Shove probably wouldn't be directly exposed to the user, but wrapped in the current cache module (just like mem, disk or memcache is now). By using shove for caching, we could

[web2py:24778] Re: Possible to render view template from db blob/text/string instead of file?

2009-06-23 Thread AchipA
Could response.view also be a handle (or maybe response.viewhandle ?). That way we could throw a (c)StringIO at response view, and StringIO can wrap db fields, python strings or whatever we want. Note that response.stream already works this way so it would be perhaps more consequential, too. On

[web2py:25002] Re: Maemo 2009

2009-06-25 Thread AchipA
Just to report back, both proposals got accepted in some form, so it's first row for web2py people :) @fpp: if you need anything with regard to web2py and/or Maemo, let me know so we could get organized in time On Jun 23, 7:59 pm, fpp wrote: > On 23 juin, 02:01, mdipierro wrote: > > > Well don

[web2py:25313] Re: maintain dictionary state between requests

2009-06-30 Thread AchipA
Just a note - cache gives you more control of data persistence (do you really need to regenerate when logging in/out ? maybe mid-session ? etc). Perhaps even more importantly it allows for pregeneration of data (e.g. on web2py startup). mdipierro wrote: > I agree with has. You cache when multiple

[web2py:25315] Re: Web2py is not too designer friendly?

2009-06-30 Thread AchipA
Just to re-float some old ideas... http://groups.google.com/group/web2py/browse_thread/thread/99afdeb834f39d02/74f564e0fe130ec9?lnk=gst&q=formify#74f564e0fe130ec9 This approach was 'invented' to completely separate the view from any helper funk that goes on in the controllers, thereby giving des

[web2py:25426] Re: Cron Gui

2009-07-01 Thread AchipA
A few notes about such a potential gui: - take into account that different machines might share databases - the recommended place for job scripts is the 'cron' directory - the interface should support two way synch (so you still keep the crontab format) - the interface should support the web2py c

[web2py:25473] Re: Feature IDEA: Auto Deploy Web2py Apps

2009-07-02 Thread AchipA
I would also kind of like more admin functionality available from the command line. Web is cool and all, but if your web2py install has no https (or maybe even http if it's an intranet install) and you only can access it via ssh and lynx which is dead in the water because of JS in web2py... a pyth

[web2py:25493] Re: Feature IDEA: Auto Deploy Web2py Apps

2009-07-02 Thread AchipA
Great tip ! How would you go about handling tickets/errors ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" group. To post to this group, send email to web2py@googlegroups.com To unsubscribe fr

[web2py:25964] Re: web2py via shell account

2009-07-08 Thread AchipA
Actually, cron has a keyword for that. Specify the time of the task as @reboot and itt will be run only once, right after booting. On Jul 8, 4:47 pm, Mr admin wrote: > You can use CRON entry like  this to try and run web2py every 15 minuses > > # cron entry to run web2py every 15 minutes > 0,15,

[web2py:25981] Re: web2py via shell account

2009-07-08 Thread AchipA
@reboot is a cron keyword, in unix context it means right after boot. Web2py cron *also* supports that keyword, and it means right after starting web2py. On Jul 8, 7:51 pm, mdipierro wrote: > you talking about web2py cron or unix cron? > > On Jul 8, 12:07 pm, AchipA wrote: > > &

[web2py:25984] Re: Waht is cron for?

2009-07-08 Thread AchipA
It's like linux cron but with the following extras: a) it will work transparently on all platforms (mac&win incl) b) you don't need root access or user settable crontabs c) can call web2py controller functions directly d) allows you to call init/preload/precache functions on web2py startup e) all

[web2py:26002] Re: web2py via shell account

2009-07-08 Thread AchipA
: > >> I'm talking about the cron from Linux. > > >> Sterling > > >> On Jul 8, 12:51 pm, mdipierro wrote: > > >>> you talking about web2py cron or unix cron? > > >>> On Jul 8, 12:07 pm, AchipA wrote: > > >>>> Act

[web2py:26147] Re: web2py based queue

2009-07-10 Thread AchipA
You could try something like this - not too clean but, good for kicking off async tasks in another thread after the page has been served. import gluon.contrib.wsgihooks as wsgihooks class myasynctask(wsgihooks.PostConnectionTask): def __init__(self): wsgihooks.PostConnectionTask.__in

[web2py:26217] Re: Multithreaded and Multicore Programming/Solutions

2009-07-10 Thread AchipA
Whether it's faster depends on the particular problem (in some cases it's faster, in some it isn't), but it's definitely not more scalable (have you heard of Google App Engine ? You don't get much more scalable than that and it's running a version of Python). The GIL plays no role in web applicat

[web2py:26394] Re: UTf-8 output

2009-07-13 Thread AchipA
Doublecheck that you actually have properly encoded data in the database ('show table X' should tell you the encoding of the table itself). Often 'displaying correctly' is misleading because of the possibility of making the same encoding mistake both ways (=treat mysql as binary storage). The othe

[web2py:26399] Re: UTf-8 output

2009-07-13 Thread AchipA
That's a utf8 to 8859 conversion right there. The mysql table (or data in it) is not utf8. Whatever else you're using is probably making the same error both while writing and reading the data, that's why it comes out OK (or you have an AddDefaultCharset UTF8 if you're using apache). The bottom lin

[web2py:26401] Re: UTf-8 output

2009-07-13 Thread AchipA
| Yes      |       8 | > | utf8_spanish2_ci   | utf8    | 206 |         | Yes      |       8 | > | utf8_roman_ci      | utf8    | 207 |         | Yes      |       8 | > | utf8_persian_ci    | utf8    | 208 |         | Yes      |       8 | > | utf8_esperanto_ci  | utf8    | 20

[web2py:26499] Re: 3 Suggestions and a Question

2009-07-14 Thread AchipA
BTW the scribd code is not only slow but wrong, too http://d.scribd.com/ScribdViewer.swf? document_id=16085263&access_key=key- g0mf8a4za0foxo36f5z&page=1&version=1&viewMode="> Note the lack of space between name and value attribs. Discovered that the other day when experimenting with HTMLParser

[web2py:26639] Re: Web2Py Foundation?

2009-07-16 Thread AchipA
MapServer and OpenLayers, both under the OSGeo Foundation umbrella. Upside: - clear authority with regard to announcements, project stance, roadmap, etc - clear ownership of copyright, licenses, and source of help for developers/companies interested in that matter - well defined source of additio

[web2py:26646] Re: Web2Py Foundation?

2009-07-16 Thread AchipA
, etc). On Jul 16, 3:21 pm, mdipierro wrote: > Can you elaborate? specifically on the last point. > > On Jul 16, 5:30 am, AchipA wrote: > > > MapServer and OpenLayers, both under the OSGeo Foundation umbrella. > > > Upside: > > - clear authority with regard to anno

[web2py:26650] Re: Web2Py Foundation?

2009-07-16 Thread AchipA
t you want or not is your call. On Jul 16, 4:29 pm, mdipierro wrote: > But the is the point of the conservatory. We would not have to run our > own foundation. They do it. > > Massimo > > On Jul 16, 9:21 am, AchipA wrote: > > > Running stuff (even if it's a non-pr

[web2py:26657] Re: Cron not working with Controller Functions

2009-07-16 Thread AchipA
Depending on the cron mode, you likely won't see the logging.warn as it is executed in a different process when called from cron. When called from the script, the warn is executed in the 'main' process and hence you can see it. So that in itself does not mean anything. When debugging cron function

[web2py:26733] Re: Cron not working with Controller Functions

2009-07-17 Thread AchipA
No idea about service, I have not tested it separately. Looking at widget.py, however, I saw an unrelated potential problems though, so I'll test it a bit anyway. Will send the patch to Massimo and/or report back regarding to findings on service mode. On Jul 16, 7:55 pm, Fran wrote: > On Jul 16,

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

2009-07-19 Thread AchipA
Just to chime in... Such a split of lists is perfectly normal and does seem to work pretty well for other projects I'm interested in (the OSGeo projects, Maemo, etc). In fact, the usual layout is a trinity of lists - users, developers and community (the last one encompassing topics that are not te

[web2py:27033] Re: Does CRON work on GAE?

2009-07-21 Thread AchipA
GAE is not supported at the moment, but only because I don't use it and there was no particular interest in it so far. If GAE has no means of starting cron-style or long running processes, soft cron should stil work, provided someone implements a locking mechanism that works with GAE. The current

[web2py:27036] Re: Does CRON work on GAE?

2009-07-21 Thread AchipA
tation > > -http://code.google.com/appengine/docs/python/config/cron.html > -http://code.google.com/appengine/docs/python/config/queue.html > -http://code.google.com/appengine/docs/python/taskqueue/ > > perhaps some kind of remapping (like cache) can do the trick > > On Tue,

[web2py:27113] Re: missing cron folder results in ticket

2009-07-21 Thread AchipA
As Massimo said, it should be re-generated if it's missing. Are you using an up to date version and does the web2py process have sufficient privileges to make a cron dir ? On Jul 21, 9:10 pm, Hans Donner wrote: > When running an app that has no cron folder, a ticket is generated and > the folder

[web2py:27155] Re: missing cron folder results in ticket

2009-07-22 Thread AchipA
g r1036 (so quite recent). > Just tested it by creating a new app via the webinterface, stopping > the server, removing cron and restarting it. Went ok. > > As I'm running a window box, it could be some rights issue .. Will > look further into this. > > On Wed, Jul 22,

[web2py:27237] Re: Does CRON work on GAE?

2009-07-23 Thread AchipA
= "0.1.0.1" > > def insert_a_note(): >     if request.env.remote_addr != valid_inner_ip: >         redirect(URL(r=request,f="index")) >     ... >     db.note.insert(name=some_new_name) >     ... > > That's all. > > On Jul 21, 1:16 pm, AchipA wrote: >

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

2009-07-23 Thread AchipA
Unreasonable ? Why ? For example, I run several of my hobby projects as separate web2py applications and all are on separate domains as they are not really related (except for being done by me :) If I put them on separate web2py instances, that would mean a tenfold memory increase requirement for

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

2009-07-23 Thread AchipA
Yes, obviously, at any serious deployment you'll end up doing things at the level of an external web server. With including the web server in web2py it's a bit of a can of worms, as you theoretically could do a lot of things which are not core web2py. --~--~-~--~~~---~-

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

2009-07-23 Thread AchipA
cause most non-hobbyist sites only have 1 > canonical domain. When I run Web2Py it only uses around 20mb of memory > for each instance. > > On Jul 23, 2:42 am, AchipA wrote: > > > Unreasonable ? Why ? For example, I run several of my hobby projects > > as separate web2

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

2009-07-23 Thread AchipA
variables per site vs. per application. > > On Thu, Jul 23, 2009 at 4:46 PM, AchipA wrote: > > > Most non-hobbyist sites should not use the built-in server (yes, > > that's an official recommendation), and with, say, apache+mod_rewrite > > it doesn't matter anyw

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

2009-08-05 Thread AchipA
I've got no reply to my mail to your cron chapter question... Are we on track with that or ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web2py@googlegrou

[web2py:28008] Re: cron job website communication, find to find port?

2009-08-05 Thread AchipA
Not sure I follow... If you're using web2py cron I'd suggest calling the function directly (see the cron doc page on syntax). If you're using service mode on windows and this does not work out, you can still call the function directly (e.g. python web2py.py -S application/ controller/function in t

[web2py:28114] Where'd table_newfilename go ?

2009-08-06 Thread AchipA
I might have missed a few classes, but where did the newfilename field go from SQLFORM's accepts/vars and why ? I know I can query it back from the DB but it's kind of awkward, having it returned by sqlform.accepts() was far more natural, especially considering transactions... --~--~-~--~-

[web2py:28209] Re: Where'd table_newfilename go ?

2009-08-08 Thread AchipA
Yay ! Thanks. On Aug 8, 12:37 pm, mdipierro wrote: > it is back, in trunk. > > On Aug 6, 8:11 pm, AchipA wrote: > > > I might have missed a few classes, but where did thenewfilenamefield > > go from SQLFORM's accepts/vars and why ? I know I can query it back >

[web2py:30967] Re: Cron in web2py

2009-09-14 Thread AchipA
Further, is this send_mail.py a web2py controller or a regular python script ? Asking because I see you have it in your controllers dir and if it IS a controller, you should use a different syntax. @anand: the unix crontab should contain the username which executes the command, that's where the '

[web2py:31207] Re: Bug in cron rev1189?

2009-09-17 Thread AchipA
IIRC in that particular code snippet -1 was deprecated in favor of the more standard @reboot keyword. I have not noticed such a bug, but will certainly check it out for a possible regression. On Sep 16, 4:23 pm, Iceberg wrote: > Hi Achipa or Kacper, > > I noticed that in gluon/contri

[web2py:36257] Re: Call web page in cron

2009-12-01 Thread AchipA
Actually, this is not really a cron question :) The question is rather if you can specify arguments to controllers when invoked on the command line - if you can do that in the command line (I have no idea if that's possible), you will probably be able to do it in cron, too. On Dec 1, 10:50 am, Ang

[web2py:36425] Re: web2py users growth

2009-12-03 Thread AchipA
It's not the packaging that is difficult, it's the process of getting the package into a mainstream distribution. On Dec 3, 5:09 pm, mdipierro wrote: > It is a good idea. I need somebody to help and take the initiative. > > On Dec 3, 8:59 am, selecta wrote: > > > with > > > sudo apt-get install

[web2py:36448] Re: web2py users growth

2009-12-03 Thread AchipA
. On Dec 3, 6:19 pm, mdipierro wrote: > If we had a script that does the packing I can work out the politics. > > On Dec 3, 10:42 am, AchipA wrote: > > > It's not the packaging that is difficult, it's the process of getting > > the package into a mainstream d

[web2py] Re: cron issue

2010-01-30 Thread AchipA
Just to chime in, I'm still alive and preparing an update to cron as quite a few things changed since I last touched it. As for the questions - all cron modes support the * and ** syntax, and yes, cron files can be modified on the fly. On Jan 26, 4:00 pm, mdipierro wrote: > I did not write cron p

[web2py] Re: has anybody check the the cron in trunk?

2010-01-31 Thread AchipA
I'm also workin on refactoring a few things in cron, let's not trip over each other :) I see people have been busy with my code so there are more things to check than I initially thought, but I'm still on track. I also plan on including a test module which will make regression tests easier. On Jan

[web2py] Re: Extra cron processes under Ubuntu 9.10 and Snow Leopard after upgrade to 1.74.9

2010-02-02 Thread AchipA
As Massimo says -N will disable cron. The two cron tasks you see should be expiring sessions to avoid piling up of files in the session dir. Note that if you use extcron, the web2py serving the pages is not the parent (so killing it does nothing to those started by the system cron) On Feb 1, 10:4

[web2py:11511] Re: How to have a global layout.html

2008-11-09 Thread achipa
Another way, maybe a bit more hackish is to have a soft link to the global view dir in your app view dir. If you're under linux or macos, that is. On Nov 9, 9:19 am, mdipierro <[EMAIL PROTECTED]> wrote: > yes > > On Nov 9, 2:16 am, "Phyo Arkar" <[EMAIL PROTECTED]> wrote: > > > Sorry > > I mean li

[web2py:11512] Re: Possible bug in IS_URL

2008-11-09 Thread achipa
lidated > and changed tohttp://www.test.com/my%20file.pdf. Automatically > encoding characters like # . _ & or + would screw up a large number of > perfectly valid URL's as it could change their meaning. > > Kyle > > On Wed, Nov 5, 2008 at 3:36 AM, achipa <[EMAIL PR

[web2py:11514] Re: new in trunk

2008-11-09 Thread achipa
Maybe it would be nice to have this (and generally new stuff) also in a changelog, would be much easier to track what's new. I can see there was some effort in the README file but so many non-obvious goodies get introduced that it's easy to miss unless you really watch this group really carefully.

[web2py:11515] Re: How to define configuration items for apps

2008-11-09 Thread achipa
Massimo will correct me if I'm wrong, but I think there is something wrong with the general approach if one application needs to know/use an another application's model. You're either try ing to split something into two apps that is logically one, or you are trying to make an app from something th

[web2py:11590] Re: Proposal: MVC separation - son of custom views

2008-11-10 Thread achipa
Two cents withheld due to misbehaving DNS/server :) On Nov 10, 9:57 pm, billf <[EMAIL PROTECTED]> wrote: > Massimo > > As you say, the proposal can be implemented as a module so as to not > compromise backwards-compatibility. > > I am happy to come up with some code but it would be really helpful

[web2py:11625] Re: How to define configuration items for apps

2008-11-11 Thread achipa
If your stuff is like t2, act like t2 :) You should then call your controllers/methods in the config app from your main app (which then should not know about the config app's model anyway). On Nov 11, 10:15 am, Grahack <[EMAIL PROTECTED]> wrote: > I understand the separation problem involved here

[web2py:11634] Re: Proposal: MVC separation - son of custom views

2008-11-11 Thread achipa
The line must be drawn otherwise after a while it will be harder (and messier) to make any progress because of all the backwards compatibility issues (see Microsoft), especially in a relase often type OSS project. The simplest and cleanest solution, done in many OSS projects is well-planned deprec

[web2py:11642] Re: Proposal: MVC separation - son of custom views

2008-11-11 Thread achipa
tally share your thoughts, it should be great to have a web2py > 3000 as a new branch. The problem is whether Massimo has enough > resources to support two branches of his creature. > > carlo > > On 11 Nov, 13:50, achipa <[EMAIL PROTECTED]> wrote: > > > The lin

[web2py:11624] Re: Proposal: MVC separation - son of custom views

2008-11-11 Thread achipa
Am I the only one who gets "Firefox can't find the server at www.wellbehavedsystems.co.uk" ? On Nov 11, 9:53 am, billf <[EMAIL PROTECTED]> wrote: > Thank you for your kind comment. > > I have made a few changes to the "spec" described in a change log at > the top of the page. > > On Nov 11, 8:22 

[web2py:11703] Re: Possible bug in IS_URL

2008-11-11 Thread achipa
Maybe it would be worth generalizing it a bit, a sort of IS_URI(schema=['generic'|'http'|'ftp'|'mailto']) and have http as the default? On Nov 11, 4:43 pm, mdipierro <[EMAIL PROTECTED]> wrote: > Hi Jonathan, > > please make them into a single one IS_URL(mode="strict" or "generic") > and email it

[web2py:11927] web2py meets N810

2008-11-16 Thread achipa
http://www.youtube.com/watch?v=s0fsjGVIGPU I Installed web2py on my Nokia N810 just for kicks while waiting for some friends in a caffe (how geeky is that ?) - it turns out it was even less effort than I thought. It doesn't get any easier (unless you're in a maemo repository, that is). Sorry, no

[web2py:11929] Re: web2py foundation

2008-11-16 Thread achipa
Massimo, all that can still fit into the foundation approach, in fact, I don't really see (apart from focus and/or emphasis) how is it different from what, say, OSGEO does. Apart from all the tech and managing aspect, it also has a consulting facet, see http://www.osgeo.org/search_profile The poi

[web2py:11934] Re: web2py meets N810

2008-11-16 Thread achipa
www.rosswalker.co.uk/tv_sounds/sounds_files_20081022_3079652/s... > > > > On Nov 16, 5:48 pm, achipa <[EMAIL PROTECTED]> wrote: > > > > >http://www.youtube.com/watch?v=s0fsjGVIGPU > > > > > I Installed web2py on my Nokia N810 just for kicks while

[web2py:11935] Re: web2py egg

2008-11-16 Thread achipa
Also, it would perhaps not be pointless to make actual packages (like for Debian, RHEL, etc) to facilitate easier install (e.g. take into account apache, proper dependencies, system startup stuff, proper logging, etc). On Nov 16, 3:12 pm, mdipierro <[EMAIL PROTECTED]> wrote: > I used the wrong wo

[web2py:11957] Re: new command line switches

2008-11-17 Thread achipa
fusing for new users who think that the db exceptions at web2py startup are actually errors (we could still keep them, but with lower priority, logging.debug probably, so it doesn't get in the way of debugging). On Nov 6, 8:48 pm, achipa <[EMAIL PROTECTED]> wrote: > Ok, ok :) I

[web2py:11989] Re: web2py foundation

2008-11-17 Thread achipa
Please take a look at OSGeo. If you have companies like Autodesk joining in, you can't say it's not being taken seriously. Also, OSGeo has a far broader reach as it has half a dozen very different projects under it's umbrella and at least as much in incubation. With regard to differentiating devel

[web2py:12010] Re: are all pacthes in?

2008-11-17 Thread achipa
The cron patch seems to be missing. I do have a newer version than the one I sent you a while back (now with external/system cron support), so if you still want to include it, let me know so I could send you the latest version. On Nov 17, 9:22 pm, mdipierro <[EMAIL PROTECTED]> wrote: > ... or did

[web2py:12013] Re: web2py foundation

2008-11-17 Thread achipa
ing that works as close as possible as a > real international consulting company but without a base salary, > leaving members greater independence and all the revenues of their > work. > > Massimo > > On Nov 17, 12:52 pm, achipa <[EMAIL PROTECTED]> wrote: > > > Ple

[web2py:12212] Re: web2py book in PDF at $12.50

2008-11-20 Thread achipa
It would be interesting to know (let's say after a month) the ratio of pdf-s sold compared to the number of paper books sold. Just out of curiosity, I hope a ratio does not count as top secret business data. On Nov 19, 6:06 am, mdipierro <[EMAIL PROTECTED]> wrote: > That may conflict. I do not kn

[web2py:12213] Re: Patch proposal to backup file before saving from web editor

2008-11-20 Thread achipa
Completely forgot that patch, it's waiting to be cleaned up. Oh well. In any case, IMHO a simple .bak mechanism wouldn't be bad idea even if you have a VCS, it's more for cases where network/browser issues play a trick on you. Unless you want to commit on every save, which is very likely not the c

[web2py:12223] Re: Patch proposal to backup file before saving from web editor

2008-11-20 Thread achipa
Yarko, maybe including is the wrong word if Massimo is referring to my VCS web2py patch. I'm providing a mechanism to call whatever underlying VCS you are using in the project. It's just making web2py smart enough to detect different VCS files, and putting a button or two on some of the admin page

  1   2   3   4   5   >