[web2py] Using regular DAL API to delete users in auth_user table. Bad idea?

2010-05-18 Thread Magnitus
I noticed that a special API via the instance of the Auth class is provided to manage groups, user memberships to groups, permissions and groups access to permissions. Is that purely a convenience thing or was it put in place to prevent some weird crashes caused by race conditions if the DAL API i

[web2py] Re: Using regular DAL API to delete users in auth_user table. Bad idea?

2010-05-19 Thread Magnitus
anually. > > > You can also block users by putting "blocked" in the user > > registration_key > > > On May 18, 4:35 pm, Magnitus wrote: > > > > I noticed that a special API via the instance of the Auth class is > > > provided to manage groups,

[web2py] Re: creating background process with multiprocessing spawns new instance of web2py

2010-05-21 Thread Magnitus
But if you create "tasks" without doing it at the OS level, doesn't that means that you won't really be able to take full advantage of multi-processor hardware (since the OS handles the hardware and if the OS doesn't know about it, it won't be able to do the required optimizations with the hardware

[web2py] Re: creating background process with multiprocessing spawns new instance of web2py

2010-05-21 Thread Magnitus
delving deeply into Python's threading API. On May 21, 5:00 am, Yarko Tymciurak wrote: > On May 21, 3:33 am, Magnitus wrote: > > > But if you create "tasks" without doing it at the OS level, doesn't > > that means that you won't really be able to take

[web2py] Re: new in Django

2010-05-21 Thread Magnitus
> I did not mean that in a negative tone, I do respect designers a great > deal, they have a gift that seems to allude me =) >I am sure Thadeus did not mean it is a negative sense. I am personally >envious of designer given my total lack of artistic skills. That makes 3 of us. My experience with

[web2py] Re: creating background process with multiprocessing spawns new instance of web2py

2010-05-21 Thread Magnitus
n the parallelism (given that there is a single lock on the entire API). On May 21, 6:32 am, Graham Dumpleton wrote: > On May 21, 8:14 pm, Magnitus wrote: > > > Now that you mention it, I recall reading in the Python/C API that > > Python wasn't really thread-safe and that

[web2py] Re: monetize web2py anybody?

2010-05-24 Thread Magnitus
I do not foresee looking for serious consulting work at least for the next year or so (if I do, it will be limited time stuff to pay the bills until my main venture takes off if my savings run out). After my game is off, I'll see (it will depend on how well it does). I will certainly have accumul

[web2py] Re: Y'a-t-il des Québécois sur cette list e?

2010-06-10 Thread Magnitus
Oui. Il y en a au moins 3 on dirait. On Jun 10, 3:47 pm, Jean Guy wrote: > [?] > > Je demandais s'il y avait des québécois qui développe avec Web2py et qui son > inscrit sur cette liste? > > Jean Guy > >  330.gif > < 1KViewDownload

[web2py] Some interrogations concerning Web2py compatibilities

2010-02-24 Thread Magnitus
Hi, I'm a beginner in python and a complete neophyte in python web frameworks so don't bash my head in if the questions are stupid... I'm developing an application in C++ for windows x64 and I am now looking for a way to make it a web app. I'm looking for compatibility with python 2.6 (already st

[web2py] Re: Some interrogations concerning Web2py compatibilities

2010-02-24 Thread Magnitus
Ah, I'm browsing through the web manual and found this statement which left me with more questions: "web2py runs with CPython (the C implementation) and/or Jython (the Java implementation), versions 2.4, 2.5 and 2.6 although "officially" only support 2.5 else we cannot guarantee backward compatibi

[web2py] Re: Some interrogations concerning Web2py compatibilities

2010-02-25 Thread Magnitus
ing code base and, as such, all the code > has to be ported. It won't happen overnight. > > Doesn't the code you wrote for python 2.6 run in 2.5? Maybe it does and you > can integrate it easily with web2py (instead of integrating web2py with what > you have). > > Regards,

[web2py] Re: Some interrogations concerning Web2py compatibilities

2010-02-25 Thread Magnitus
umented here > <http://groups.google.co.uk/group/web2py/browse_thread/thread/ddc56534...[Troubleshooting]+Running+from+source+on+windows+[WARNING%3Aroot%3Aunable+t­o+import+wsgiserver]+[WARNING%3Aroot%3Ano+file+locking]#f61c0827103abcd7>in > the past and it solved my problem. Don't know why th

[web2py] Re: Cron issue with recent web2py?

2010-02-27 Thread Magnitus
Running on Windows Vista here. I notice that the CPU spikes at about 60% for a fraction of a second every minute or so, but it does that whether web2py is running or not (probably my anti-virus or another process running in the background). I don't notice multiple python processes spawning or the

[web2py] Re: cron warning...

2010-03-01 Thread Magnitus
I'd lean toward option 3 as the default behavior also as its the most flexible and allows the programmer to handle the situation as his application requires. >From that, option 1 and 2 can be implemented by the user using a flag and a mutex. On Feb 28, 11:27 pm, mdipierro wrote: > follow up... >

[web2py] Re: cron warning...

2010-03-01 Thread Magnitus
solution to this problem would be to allow the programmer to change the time interval between tasks at run time. On Mar 1, 5:34 am, Magnitus wrote: > I'd lean toward option 3 as the default behavior also as its the most > flexible and allows the programmer to handle the situa

[web2py] More Questions About Compatibility

2010-03-06 Thread Magnitus
>From the fact that they stuck with MSVC++ 6.0 for so long (despite 2002, 2003, 2005 and 2008 coming along) and that MSVC++ 6.0 doesn't support the 64 bits format, I will take a wild guess and presume that Apache won't support Win64 anytime soon. So, what this means is that I'll have to run the Ap

[web2py] Re: More Questions About Compatibility

2010-03-07 Thread Magnitus
Well, I took a peak at mod_wsgi.c file (14000 lines of code in a single .c file, that guy is hardcore... the scrolling alone would have driven me insane) which pretty much confirmed my suspicions. Calls to the Apache API (32 bits) is intermixed with calls to the Python API (64 bits on my machine).

[web2py] Re: More Questions About Compatibility

2010-03-08 Thread Magnitus
> LOL. That ambiguous phrasing may be enough to tip Graham Dumpleton > over the edge! Yes, well, unless I'm using the language of mathematics, I'm not the best of communicator for technical stuff. I apologize. > Others have also spoken enthusiastically about Lighttpd / Nginx in > terms of speed,

[web2py] Re: More Questions About Compatibility

2010-03-08 Thread Magnitus
>I know it could sounds cruel, but.. try to leave windows Yeah, well, MS has a big share of the market. As a teenage gamer, I used MS Windows to play my PC games. As a undergrad student, I was taught C and then C++ with MS Visual Studio. During my 4 work terms, my employers used Windows as the

[web2py] Re: More Questions About Compatibility

2010-03-09 Thread Magnitus
Thats exactly the type of solution I was looking for. No integration nightmare. Thanks for the tip :). On Mar 9, 9:06 am, Timothy Farrell wrote: > It's never that easy.  Magnitus, you can use LightTPD on Windows.  I'm > not sure if it will satisfy the 64-bit requirement thou

[web2py] Re: Where do you use web2py?

2010-03-14 Thread Magnitus
>I'm also using web2py to handle the server-side portions of a turn-based >multiplayer game I'm working on. Same here, well, part of the server-side portion anyways. -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send e

[web2py] Re: sudoku web2py - for fun

2010-03-14 Thread Magnitus
Well, it seems to be fashionable nowadays, My father made one in Java ><. On Mar 10, 10:42 pm, mdipierro wrote: > http://web2py.com/sudoku -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroup

[web2py] Re: Rocket - windows binary issues

2010-03-15 Thread Magnitus
No objection. The python website encourages new users to use python 2.6 anyways. -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to web2py

[web2py] Re: Checking if a webserver if running web2py

2010-03-15 Thread Magnitus
On Mar 14, 9:58 pm, Graham Dumpleton wrote: > You can potentially also use any error page as a tell tale fingerprint > if defaults are used as different frameworks are going to each have > their own. Not only that, I find it very revelative that it states whether the app is wrong, the controller

[web2py] Issues with the documentation

2010-03-16 Thread Magnitus
As I am in the process of reading both the web and pdf versions of the manual (for which I am noticing some issues), I think I should state a list of issues I am seeing in case someone decides to "fix" it (would probably make his job easier). After all, as I'm reading it, it occured to me that I c

[web2py] Re: Issues with the documentation

2010-03-16 Thread Magnitus
Web/Pdf Ambiguity: In section 3.6, line 16 of the model (the "'%(title)s'" part) is probably the hardest part of the code to grasp (it was for me) and yet very little elaboration is provided (leaving the reader wondering). It was not immediately clear to me that it was strictly for the presentati

[web2py] Re: Issues with the documentation

2010-03-16 Thread Magnitus
Pdf/Web Ambiguity: In section 4.2, it was not readily apparent (to me) that the init application doesn't exist by default and that really, it is simply a mecanism for the application programmer to define an handler. Perhaps it should be specified so that the reader is not left wondering. -- You

[web2py] Re: Issues with the documentation

2010-03-16 Thread Magnitus
Pdf Issue: The pagination doesn't match the table of contents. -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to web2py+unsubscr...@googl

[web2py] Re: Issues with the documentation

2010-03-16 Thread Magnitus
Web Errata: In section 4.6, the last 4 fields describing the accessors for the request object are not properly aligned and all jumbled up in a single paragraph. Pdf: Errata: In section 4.6, the example for a request is not displayed at all (compare it to the web version and you'll see immediatel

[web2py] Re: Issues with the documentation

2010-03-16 Thread Magnitus
> In section 4.6, the example for a request is not displayed at all > (compare it to the web version and you'll see immediately what I'm > talking about). Nevermind, I see that it is displayed, but after the start of the next section (my bad). However, comparing it with the web version now makes

[web2py] Re: Issues with the documentation

2010-03-16 Thread Magnitus
Web, errata: At the very bottom of section 4.10, the example for the URL of the image is omitted. -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send

[web2py] Re: book chapters

2010-03-24 Thread Magnitus
We can make modifications to the book, ala wiki? On Mar 24, 1:37 am, mdipierro wrote: > If you make a major contribution to the book (like a new section), you > should sign it with your name. This is because if I incorporate the > chapter in a future printed version, I will want to acknowledge yo

[web2py] Re: Issues with the documentation

2010-03-24 Thread Magnitus
Web/Pdf Ambiguity: In section 4.12, a one-liner mention is made of the "Accept-Language" field, but it might not be sufficient for someone who is inexperienced with the HTTP protocol to grasp (that it is something the user usually sets in his browser for example). Perhaps a brief introduction to

[web2py] Re: For your knowledge

2010-03-25 Thread Magnitus
Thanks for the tip :). They also have a section on machine learning, nice (I wish they had had an undergraduate class on machine learning at my univ on top of the general AI class). On Mar 24, 11:38 pm, Thadeus Burgess wrote: > http://academicearth.org/courses/building-dynamic-websites > > -Thad

[web2py] Fetching a single field from multiple rows in gluon.sql.Rows as a tuple/list?

2010-03-31 Thread Magnitus
Hi, assuming that I have a "Record" table with a field called "Name" in the database (all also that there are a bunch of other fields for that table). Assume that I make the following query: Rows = db().select(db.Record.ALL) Is there a way to directly (with one line without having to iterate th

[web2py] Re: best jquery plugin ever

2010-03-31 Thread Magnitus
Who still uses IE6 anyways? Ah, I once found a way to automatically close the web browser without asking for the user permission using javascript for IE7. I googled it somewhere. It was great for doing unit tests on the client-side GUI scripts. On Mar 31, 12:56 pm, mdipierro wrote: > http://plu

[web2py] Re: Fetching a single field from multiple rows in gluon.sql.Rows as a tuple/list?

2010-04-01 Thread Magnitus
pr 1, 10:30 am, Thadeus Burgess wrote: > ``db().select(db.Record.Name)`` returns a rows object, which acts like a > tuple. > > -Thadeus > > On Thu, Apr 1, 2010 at 5:06 AM, DenesL wrote: > > thelist=[row.Name for row in db().select(db.Record.Name)] > > &

[web2py] Re: Fetching a single field from multiple rows in gluon.sql.Rows as a tuple/list?

2010-04-01 Thread Magnitus
) To be: db('NOT %s' % (db.Record.Group_id!=ID | db.Record.Name.belongs(List_of_names))).delete() Got it. On Apr 1, 2:01 pm, Magnitus wrote: > Thanks for both replies :). > > So, if ``db().select(db.Record.Name)``  acts like a tuple, then I can > do something like

[web2py] Re: Fetching a single field from multiple rows in gluon.sql.Rows as a tuple/list?

2010-04-02 Thread Magnitus
; db((db.Record.Group_id == ID) & > (~db.Record.Name.belongs(db(db.Record.BloodType == > 'O-')._select(.count() > > -Thadeus > > > > On Thu, Apr 1, 2010 at 12:01 PM, Magnitus wrote: > > Thanks for both replies :). > > > So, if ``db().sel

[web2py] Re: Fetching a single field from multiple rows in gluon.sql.Rows as a tuple/list?

2010-04-03 Thread Magnitus
ro wrote: > The issue is just a missing backet > > db((db.Record.Group_id==ID)&(! > db.Record.Name.belongs(List_of_names))).delete() > > On Apr 1, 1:01 pm, Magnitus wrote: > > > > > Thanks for both replies :). > > > So, if ``db().select

[web2py] Re: best jquery plugin ever

2010-04-03 Thread Magnitus
has ie6..it's as awesome as it sounds. > > Regards, > Tiago > -- > > On Thu, Apr 1, 2010 at 7:47 AM, Magnitus wrote: > > Who still uses IE6 anyways? > > > Ah, I once found a way to automatically close the web browser without > > a

[web2py] Re: Our membership is steadily growing!

2010-04-10 Thread Magnitus
>Project for the summer: manual 3rd edition.< Yes! That would be awesome. Thank you :). -- To unsubscribe, reply using "remove me" as the subject.

[web2py] Re: VPS.net With Web2py.... Unable to install Application

2010-09-23 Thread Magnitus
I found that doing it the "hard" way was in some way easier for me. Been at least 2 months since I setup the server on vps and its amazing how much you can forget in 2 months when you have to cram other stuff in your head, but here is what I recall of it: 1) Disable admin. Setup a sudo user (I re

[web2py] Re: JQuery plugin

2010-09-24 Thread Magnitus
Assuming that you know how to create sound effects in regular Javascript, making your own pluggin for it doesn't seem that difficult. Lets assume that you want a pluggin that affect only div elements in a wrapped set and you want to be able to specify the sound... It'd look something like this (n

[web2py] Code for multilingual string options Widget without the aggravating "" when a default is specified

2010-09-26 Thread Magnitus
Meant to do this for a while as it was irritating me (both the lack of multilingual support and the "" option when a default is specified). Pretty much a copy-paste from sqlhtml.OptionsWidget.widget method with 2 improvements (as per the title): 1) The options get translated using the facility pr

[web2py] Re: adding fields to SQLFORM.factory

2010-09-27 Thread Magnitus
I know I've had problems with form submission when a form submit cause modification in its own fields (for SQLFORM.factory anyways). When doing something like that, the following approach worked for me: On Sep 27, 4:37 am, b0j3 wrote: > Hi! > > I'd like to add new fields to SQLFORM.factory,

[web2py] Re: Suggestion needed!

2010-09-28 Thread Magnitus
You can look at the internals if there is a bug, if core features don't do what you want and you need to extend them or if the documentation isn't sufficient for you to understand how to properly use the facilities provided by the framework. However, this should be the exception and not the norm.

[web2py] Re: Javascript Template Engine for Cleaner Coding

2010-10-01 Thread Magnitus
Never heard of it. With jQuery (http://jquery.com/), the Javascript part is not so bad as about 95% of the browser dependant code is handled by the library. However, css is still a real pain in the neck. I know people like to complain about IE, but Google Chrome and Apple Safari are the ones that

[web2py] Re: Javascript Template Engine for Cleaner Coding

2010-10-02 Thread Magnitus
I'm not sure if he was suggesting it as a solution for the community as much as asking about it for his purposes. If you use tables a lot, the html might be clutered, but if you follow the tips in this article and keep the tags to a minimum (using css for the styling & layout), then html is not so

[web2py] Support for more fine grained database optimisation

2010-10-04 Thread Magnitus
While I'm aware that many of those optimizations can be built on top of the DAL, I think it would be nice if they were provided as optional parts of a more complete optimisation solution with the DAL: 1) Fine Grained Cache Instead of simply caching selects in memory and retrieving it in memory, c

[web2py] Re: CRITICAL IMPORTANCE

2010-10-04 Thread Magnitus
On Oct 4, 1:19 pm, mdipierro wrote: > Please help me update > > http://www.appliedstacks.com/NewestFirst/web2py > > Massimo Do you mean check the links to make sure they are still valid or report our aps? If its for reporting an ap, I only have one online atm and its a "test app" that I used to

[web2py] Any possible problems if I do this? Any possible improvement?

2010-10-07 Thread Magnitus
I am in the process of securing the help of an artist for my project, but he's a casual computer user (doesn't know ssh/scp) and I'm trying very hard to make everything as painless and pleasant as possible for him to secure his help. In order to do that, I decided to create a view that will allow

[web2py] Re: Any possible problems if I do this? Any possible improvement?

2010-10-07 Thread Magnitus
e it access to the language files. Being able to define an 'Artist' group and give it limited access to the static files. Anyways, my 2 cents. On Oct 7, 3:44 am, Magnitus wrote: > I am in the process of securing the help of an artist for my project, > but he's a casual compu

[web2py] Re: Form validation service in web2py

2010-10-07 Thread Magnitus
The concept of "static" pages where you can submit data to the server seems a bit weird (means you can submit info to the server, but then you never see the result of that info... unless you access the info via Ajax requests I guess). Anyways, concerning the centralized Ajax requests, its definite

[web2py] Re: Any possible problems if I do this? Any possible improvement?

2010-10-09 Thread Magnitus
nk solution 2 is probably the lesser of 2 evils. btw, if I'm not the only nutcase who do all his html/javascript/css himself and put placeholder pictures for an artist to fill, I guess I could create a slice detailing my solution. On Oct 7, 3:07 pm, Magnitus wrote: > Something just occured

[web2py] Re: Any possible problems if I do this? Any possible improvement?

2010-10-09 Thread Magnitus
ynamic. Maybe limit the area, I'll see. > > I've got some apps around the web with the admin exposed and haven't > had any problems. Though it probably helps that nothing links to them. > > Could you modify admin so that it locks the account after a number of > successi

[web2py] Encountering problem with a computer field

2010-12-22 Thread Magnitus
Hi, btw, I upgraded from 1.87 to 1.91 to see if the problem would get resolved and 1.91 is loading my pages significantly faster. Also, the revised version of the pdf manual is greatly superior to the original. Thank you for that. So, I tried to get fancy and use a computer field in my model and

[web2py] Re: Encountering problem with a computer field

2010-12-22 Thread Magnitus
to compute fields > when there is not enough information. The downside is that a typo will > result in a silent failure to compute. Perhaps we should do this > anyway. > > Massimo > > On Dec 22, 4:56 pm, Magnitus wrote: > > > Hi, > > > btw, I upgraded from 1.87

[web2py] Re: Encountering problem with a computer field

2010-12-23 Thread Magnitus
I've thought about the dependencies problem a little bit. Maybe add some kind of hook so that the user can define the dependencies of the computed field himself. If he doesn't define them, the current behavior occurs. If he defines them, the behavior could be as follow: 1) All the dependencies

[web2py] Re: Web2Py Foundation?

2010-12-28 Thread Magnitus
Wow, some heavy duty concerns in this thread... I'm not fully versed in the detailed legalities of those things, but I'll elaborate things as I understand them and perhaps I can be corrected if I'm wrong... Basically, I get Web2py under the GLP licence. Under that licence, I can: 1) Use and dis

[web2py] Unknown Ticket

2011-01-05 Thread Magnitus
Hi, some of my users have encountered a weird error on my mock production server. They get the following ticket when the first page (login) tries to load: Internal error Ticket issued: unknown Rebooting the server fixed the problem, but I'd still like to get some insight into what could have g

[web2py] Re: Unknown Ticket

2011-01-05 Thread Magnitus
So I guess it would be indicative of a lower level issue at a layer below the framework? I guess its time to dust off those Apache logs then. On Jan 5, 3:42 pm, Kenneth Lundström wrote: > If I remember right Unknown ticket is displayed when web2py/webserver is > not able to write a ticket into t

[web2py] Re: Unknown Ticket

2011-01-05 Thread Magnitus
Well, not very reassuring, but thanks for confirming that. On Jan 5, 6:28 pm, Massimo Di Pierro wrote: > You will not finding anything at tha apache log error. This is a > web2py error and it is indeed its failure to write to the filesystem. > > On Jan 5, 3:30 pm, Magnitus wrote: &g

[web2py] Re: Why web2py? and not django?

2011-01-26 Thread Magnitus
As a programmer, I found Web2py more appealing out of the box. I did a fair chunk of the Django tutorial, but they started on a bad note by showing me how to add an admin interface and considering it to be some hot stuff (for crying out loud, that's a pretty high level feature and one that you can

[web2py] 2 quickies about cache

2011-01-28 Thread Magnitus
I'm trying to determine whether the built-in web2py cache will fulfill my needs or not and thus need a clarification on the following... Based on this completely artificial example to illustrate my questions: someModule.py: def ICacheLogs(cache, X): return db(db.log.id==X).select(db.log.ALL,

[web2py] Re: 2 quickies about cache

2011-01-28 Thread Magnitus
user rather than the framework. Obviously, the example I gave is not practical, but illustrates my question well. > > On Jan 28, 3:52 pm, Magnitus wrote: > > > I'm trying to determine whether the built-in web2py cache will fulfill > > my needs or not and thus need a clarific

[web2py] Need webvtt entry in gluon/contenttype.py

2013-01-18 Thread Magnitus
http://dev.w3.org/html5/webvtt/#text/vtt http://www.w3.org/community/texttracks/2012/08/23/webvtt-support-in-browsers/ I know the format is still pretty bleeding edge, but it seems to be gaining support amongst browser manufacturers. I can see why. It is a very good concept I find. I think supp

[web2py] Re: Need webvtt entry in gluon/contenttype.py

2013-01-18 Thread Magnitus
It's good, thank you :). On Friday, 18 January 2013 11:00:30 UTC-5, Massimo Di Pierro wrote: > > Please. check if the solution in trunk is correct. > > On Friday, 18 January 2013 04:19:01 UTC-6, Magnitus wrote: >> >> http://dev.w3.org/html5/webvtt/#text/vtt >

[web2py] Frustration With @reboot & Cron

2012-11-28 Thread Magnitus
Hi gents, I have been populating my databases with groups (for access control) manually for a while and then, switched to running a script that does it, though I still run the script manually in the web2py context. Now, I'd like to programmatically implement this in a sensible way (in a way th

[web2py] Re: Frustration With @reboot & Cron

2012-11-28 Thread Magnitus
After some reflection, I suppose I could write a wrapper script that first runs python web2py.py --import_models --shell=/default --run="" and then starts web2py normally when using web2py standalone. That is one workaround. On Wednesday, 28 November 2012 11:19:01 UTC-5, Magn

[web2py] Re: Frustration With @reboot & Cron

2012-11-29 Thread Magnitus
structure), but that's not the default out of the box architecture. Either way, inserting the script into a module that is included in a controller is not a 100% satisfying solution since the script is actually executed on the first page request and not really at startup. On Wednesday, 28

[web2py] Uncouple the Default Registration/Login/Logout Mechanism From Form/Email

2012-11-29 Thread Magnitus
Sincere apologies for poking holes at this beautiful framework, but while I'm in here, I have another issue I encountered while using the framework. I'm only expressing hurdles I've encountered while using the framework in the hope that it can give the devs some insights on how the framework can

Re: [web2py] Re: Frustration With @reboot & Cron

2012-11-29 Thread Magnitus
uted with every request. On Thursday, 29 November 2012 10:44:17 UTC-5, Jonathan Lundell wrote: > > On 29 Nov 2012, at 6:41 AM, Magnitus > > wrote: > > I'd be curious to know if the lack of feedback on this thread so far is > due to the devs being incredibly busy or web2py

[web2py] Re: Uncouple the Default Registration/Login/Logout Mechanism From Form/Email

2012-11-29 Thread Magnitus
>Please open a ticket for improvement and list APIs you would want to have. I will probably add them. I'll take a look at what posters have described so far and if I find that the functionality is still lacking, I'll add a ticket for it. >2) you can use auth.define_tables(username=True) so that

Re: [web2py] Re: Frustration With @reboot & Cron

2012-11-30 Thread Magnitus
14:00:05 UTC-5, Jonathan Lundell wrote: > > On 29 Nov 2012, at 10:22 AM, Magnitus > > wrote: > > >There are a couple of issues. One is: what do you mean by startup? It's > fairly well defined if you're running web2py with Rocket as the server, but > in a wsgi e

Re: [web2py] Re: Frustration With @reboot & Cron

2012-11-30 Thread Magnitus
Btw, one additioanl thing... Looking at the Settings.py file, I see this line of code: settings = global_settings # legacy compatibility Given what is written in the comments, is it a good idea to use global_settings in new apps? On Friday, 30 November 2012 12:38:08 UTC-5, Magnitus wrote

Re: [web2py] Re: Frustration With @reboot & Cron

2012-11-30 Thread Magnitus
ok,reading it again, I see that this has more to with with the functionality having two different names (one old, one new and more descriptive) rather than being deprecated. On Friday, 30 November 2012 12:45:04 UTC-5, Jonathan Lundell wrote: > > On 30 Nov 2012, at 9:41 AM, Magnitus >

Re: [web2py] Frustration With @reboot & Cron

2012-11-30 Thread Magnitus
: > > On 30 Nov 2012, at 9:38 AM, Magnitus > > wrote: > > What you are suggesting addresses the concurrency access problem (which > could be resolved with the DB since it locks or with your suggestion). > > However, if you stick the logic in your model, you still have the

Re: [web2py] Frustration With @reboot & Cron

2012-11-30 Thread Magnitus
Holy cow, you're right! I've had so many things on my mind that I totally forgot about that! Guess that will speed up my production app a little then... On Friday, 30 November 2012 13:06:34 UTC-5, Jonathan Lundell wrote: > > On 30 Nov 2012, at 9:54 AM, Magnitus > >

[web2py] Example that should be included in the manual for multiple left joints

2012-12-10 Thread Magnitus
I must have spent a good hour hammering at this before I got it right. Maybe rephrase it a bit, but I think it's a good example... Assume that you want all users returned, but want to outline specifically those belonging to group A or B (with the others having their group set to None) in one qu

[web2py] Re: Example that should be included in the manual for multiple left joints

2012-12-10 Thread Magnitus
in for the auth_group. On Monday, 10 December 2012 14:48:16 UTC-5, Magnitus wrote: > > I must have spent a good hour hammering at this before I got it right. > > Maybe rephrase it a bit, but I think it's a good example... > > Assume that you want all users returned, but want to outlin

[web2py] Streaming for large video files

2012-12-30 Thread Magnitus
I am currently in the process of writing a netflix/youtube-like app that allows you stream movies on your local LAN (eventually, perhaps over the internet even, but that is not an immediate priority, especially given my limited data transfer allowance by my ISP) using a web interface. I am writ

[web2py] Re: Streaming for large video files

2012-12-31 Thread Magnitus
%2Fi3QdrO%27MhWp0%7D%7D3P%29iWU%5Ezt%7El%3Ds%21TeaI%7DHo%23hRY5Bfq%3F_%3Cr%5B1g%7Dd_LNl%3Cc%5EFaFwZ%29V%5BlNws39%5B%2Ft%22o3%25%3AL%5E%22&User=Magnitus HTTP/1.1 Host 127.0.0.1:8000 Accept-Encoding identity;q=1, *;q=0 User-Agent Mozilla/5.0 (Windows NT 6.0; WOW64) AppleWebKit/537.11 (KHTML

[web2py] Re: Streaming for large video files

2012-12-31 Thread Magnitus
With an async server (like node.js) you do not have to worry about loss of > resources when a connection is open and the client is idle. > > Massimo > > > > On Sunday, 30 December 2012 14:32:44 UTC-6, Magnitus wrote: >> >> I am currently in the process of writing

[web2py] Re: Streaming for large video files

2013-01-01 Thread Magnitus
ore they get killed, response.stream(chunk_size=...)). > > With an async server (like node.js) you do not have to worry about loss of > resources when a connection is open and the client is idle. > > Massimo > > > > On Sunday, 30 December 2012 14:32:44 UTC-6, Magnitus wr

[web2py] Re: book 4th edition in PDF

2012-01-24 Thread Magnitus
I gave up on the first attempt after waiting over 10 minutes for a reply. Second attempt worked and promptly. Used Visa. btw, thanks for the reasonable pricing on the pdf format. I hate it when the price for the physical copy and the price for the pdf are almost the same.

Re: [web2py] Re: book 4th edition in PDF

2012-01-24 Thread Magnitus
If it helps, consider it a donation with benefits ;).

Re: [web2py] Web2py in large web scenarios

2012-01-27 Thread Magnitus
>This is very good advice. I have moved many of my plugins and apps from using models to modules because of the performance gain. There is nothing wrong with the models implementation, but it's really meant to define tables and that's it. Functionality that doesn't belong in a controller should

[web2py] Problem with the audio tag, web2py and Firefox

2012-01-28 Thread Magnitus
I recently read a book about html 5 and promptly started using some of the features described in my project. I experienced a problem with the audio tag and Firefox which I reduced to a minimalistic example illustrating the problem. *The experiment:* *1) Control Situation* I put "Main_theme.we

[web2py] Re: Problem with the audio tag, web2py and Firefox

2012-01-28 Thread Magnitus
Ah, obviously, the default server is Rocket, not Tornado (sorry for the typo, I guess Tornado just sounds cooler :P). Anyways, I guess I'll test it on my web2py+Apache node next time I do an update on it in order to isolate the server variable.

[web2py] Re: Problem with the audio tag, web2py and Firefox

2012-01-29 Thread Magnitus
Making some inroads. The file type returned in the HTTP header for audio files is this: text/plain; charset=utf-8 Accoding to this article, Firefox is actually the correct implementation amongst the browsers for this, because it respects the file type indicated by the server: https://develope

[web2py] Re: Problem with the audio tag, web2py and Firefox

2012-01-29 Thread Magnitus
The problem is with web2py. I changed 'contenttype.py' in gluon and added '.webm': 'video/webm' to the list. If the necessary changes could be made to the trunk so that I don't have to do the above modification to my copy each time I download the latest version of the framework, it would be a

[web2py] Re: Problem with the audio tag, web2py and Firefox

2012-01-29 Thread Magnitus
Well, thank you for the support :). I realize that the html5 codecs situation is a bit of a mess at the present. @Lightdot: It's always reassuring to know you're not the only one who tripped over this. Sometimes, I feel like I should know the Framework inside out after having used it for abou

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

2011-09-19 Thread Magnitus
I wrote the engine myself so it's as flexible as I need it to be ;). Haven't gone on the XML wagon yet, was simply considering it. I did work with JSON for the AJAX component of my web server so that solution is looking pretty good atm. I thought it was mostly a Javascript-Server thing and wasn't

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

2011-09-19 Thread Magnitus
I have a web server running with Web2py. I have potentially several instances of my game engine running as standalone C++ processes. They communicate with each other via sockets (given that the game engine needs to be expendable over several computers, sockets are a must). So far, I've used bare

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

2011-09-20 Thread Magnitus
t; so the power is all yours,. use JSON or AMF > > There are many C++ Json libs for sure. > > (http://jsoncpp.sourceforge.net/) > > For AMF (Binary Protocol , Lesser packet size , Higher > Performance)http://code.google.com/p/libamfx/ > > On 9/20/11, Magnitus wrote: > &

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

2011-09-21 Thread Magnitus
gt;     libjson. > >     nosjob. > >     JSONKit. > >     JsonBox. > > > On 9/20/11, Phyo Arkar wrote: > >> yeah may be due to nature of C/C++ is not used for programming web > >> apps json support is quite weak. > > >> Python's Nat

[web2py] Cheaper hosting...

2011-10-30 Thread Magnitus
So far, I've been using this service for my personal apps at 1 node: http://www.vps.net/product/cloud-servers/ Recently, someone suggested this: http://fibervolt.com/vps.php At the lower specs range (and assuming you don't use even a 1/10 of the bandwidth vps provides), you have something that is

[web2py] Re: gluon.storage.Storage interface discrepancy?

2011-11-02 Thread Magnitus
I agree. s.a is not sufficient if you want to avoid code repetition. You'll naturally want use something like s['a'] at some point if you want to write good code and you will also want to rely on the convenient "returns None instead of throwing an exception" facility. There are workarounds for t

[web2py] Re: gluon.storage.Storage interface discrepancy?

2011-11-02 Thread Magnitus
Definitely, so much is storage (vars, sessions, DAL results, etc) that you pretty much have to use it. And for that reason, I think it warrants its own small subsection in the manual. For uses where I don't have to rely on None identifying initialized keys with the None value specifically, I tend

  1   2   >