Re: [web2py] Re: I cant start the web2py shell

2011-11-27 Thread ~redShadow~
do it quickly is: place web2py directory directly inside C:\, then type cd C:\web2py python web2py.py -s test -m -- Samuele ~redShadow~ Santi ---- redshadow[at]hackzine.org - redshadowhack[at]gmail.com Blog: http://hac

Re: [web2py] Re: My ideas/proposals for the CMS

2011-11-25 Thread ~redShadow~
ents in images, etc. Anyways, I'll have a look at Concrete5 themes, to see if I can figure out a way to quickly import and reuse them inside web2cms. -- Samuele ~redShadow~ Santi redshadow[at]hackzine.org - redshadowhack[

Re: [web2py] Re: My ideas/proposals for the CMS

2011-11-25 Thread ~redShadow~
ot PHP * To have something enterprise-ready, without needs of thousands of modules extending missing important features from the core, thus allowing modules to be plugged/unplugged at need, while keeping an eye on these modules too, in order to avoid development effort fragmentation, bad practices, etc

Re: [web2py] Re: My ideas/proposals for the CMS

2011-11-25 Thread ~redShadow~
Python, so we agreed that it would be cool to try building a DSN on top of the web2py-based CMS, once stable enough (there's not that much difference between a CMS and a social network.. it's quite just matter of additional configuration). -- Sa

Re: [web2py] Re: My ideas/proposals for the CMS

2011-11-24 Thread ~redShadow~
On Thu, 2011-11-24 at 20:05 +0100, Gour wrote: > On Thu, 24 Nov 2011 19:34:52 +0100 > ~redShadow~ wrote: > > > * Different kind of contents (page, article, ...), referred as "node", > > managed by the same code, but with different fields/views/behavior. >

Re: [web2py] My ideas/proposals for the CMS

2011-11-24 Thread ~redShadow~
On Thu, 2011-11-24 at 16:56 -0200, Bruno Rocha wrote: > Does it works on Google App Engine? > > I will take a look and test today! > > Thanks for sharing! Thanks for testing! -- That's why I shared :) (Long Live Open Source) -- Samue

[web2py] My ideas/proposals for the CMS

2011-11-24 Thread ~redShadow~
eep in mind that there is very few to see at the moment (content creation, listing and display are the only things working as I write). Any feedback / suggestion / proposal is greatly appreciated! -- Samuele ~redShadow~ Santi re

Re: [web2py] Re: github & hg repo

2011-11-23 Thread ~redShadow~
wonderful world every time I use it :) ..and I also see many other big projects moving onto it, so, even if I know only a small part of all its features, I guess it's worth it. So, +1 for web2py on github! -- Samu

Re: [web2py] ValueError: need more than 1 value to unpack

2011-11-21 Thread ~redShadow~
ted by ``strftime()``). By the way: why does sqlite tries to parse the date with fixed format instead of using ``datetime.datetime.strptime()``? Somebody can explain that? -- Samuele ~redShadow~ Santi redshadow[at]hackzine.org

Re: [web2py] can web2py be used as a static website generator?

2011-11-20 Thread ~redShadow~
p://example.com You can "staticize" [==get a static snapshot of] (almost) any kind of website created by (almost) any kind of application/framework/cms/... (I've tested that on web2py book, some Drupal sites, and some other misc sites providing online-only documentation I wanted t

[web2py] Using multi-field unique indexes

2011-11-20 Thread ~redShadow~
b.executesql('CREATE UNIQUE INDEX' ' unique_record_language' ' ON t9n_mytable (record, language);') else: pass -- Samuele ~redShadow~ Santi ---

Re: [web2py] Eclipse+Pydev+GAE+Debugging

2011-11-19 Thread ~redShadow~
-- Samuele ~redShadow~ Santi ---- redshadow[at]hackzine.org - redshadowhack[at]gmail.com Blog: http://hackzine.org GPG Key signature: 050D 3E9F 6E0B 44CE C008 D1FC 166C 3

Re: [web2py] Easy handling of subforms

2011-11-17 Thread ~redShadow~
from ``form.vars``, instead of just a ``dict``-of-``dict``s (maybe by exploding ``my[var][name]``-style subscripted vars), etc.. -- Samuele ~redShadow~ Santi redshadow[at]hackzine.org - redshadowhack[at]gmail.com Blog: htt

[web2py] Easy handling of subforms

2011-11-16 Thread ~redShadow~
;, } } } So, extracting trees of values becomes quite easy. Now the question is: is there anything like this inside web2py? I looked for it in the book and in the code, but didn't find anything.. -- Samuele ~redShadow~ Santi ---

Re: [web2py] Re: Resetting the database

2011-11-14 Thread ~redShadow~
the DAL to recreate the whole table (with SQLite, the allowed alters are limited, sometimes table drop is needed in order to clean up): ``db.table.truncate()`` * If you want to completely destroy and recreate the whole database, just empty the ``databases``

Re: [web2py] Offline Access to web2py manual?

2011-11-11 Thread ~redShadow~
h proper extensions. That's why I didn't find it in the manpage of the new wget, doesn't explain why I didn't find it originally. Anyways, thanks to who suggested use of that option, absolutely needed when creating mirror of any dynamically-served

Re: [web2py] Offline Access to web2py manual?

2011-11-10 Thread ~redShadow~
hors about that..) -- Samuele ~redShadow~ Santi ---- redshadow[at]hackzine.org - redshadowhack[at]gmail.com Blog: http://hackzine.org GPG Key signature: 050D 3E9F 6E0B 44C

Re: [web2py] Offline Access to web2py manual?

2011-11-10 Thread ~redShadow~
e useful things undocumented?? -- Samuele ~redShadow~ Santi ---- redshadow[at]hackzine.org - redshadowhack[at]gmail.com Blog: http://hackzine.org GPG Key signature: 050D 3E9F 6E0B 44CE C008 D1FC 166C

Re: [web2py] Mixing/supporting CMS with Web2py

2011-11-07 Thread ~redShadow~
r to discuss about the important decisions that should be taken before starting the actual development. - should we create another mailing-list just for the cms thing, in order to keep separate the discussions? - Do you guys use IRC? I see a #web2py channel

Re: [web2py] Re: Serving dynamic HTML files

2011-11-02 Thread ~redShadow~
, etc.) -- Samuele ~redShadow~ Santi ---- redshadow[at]hackzine.org - redshadowhack[at]gmail.com Blog: http://hackzine.org GPG Key signature: 050D 3E9F 6E0B 44CE C008 D1FC

[web2py] Suggested improvements to populate()

2011-11-02 Thread ~redShadow~
g, but eclipse takes some minutes to open the file and once opened it becomes unusable; with gedit it's a bit better but still very hard to navigate, due to the too long single line.. [on a Core i7 M620 @2.67 GHz 8Gb RAM machine..] --

Re: [web2py] Re: Serving dynamic HTML files

2011-11-01 Thread ~redShadow~
ly on Unix platforms (a part from macosx..?) os.path == posixpath] -- Samuele ~redShadow~ Santi ---- redshadow[at]hackzine.org - redshadowhack[at]gmail.com Blog: http://hackzine.org GPG Key si

[web2py] Re: Reset (blank) value in datetime form widget

2011-11-01 Thread ~redShadow~
On Wed, 2011-11-02 at 02:46 +0100, ~redShadow~ wrote: > [...] For the moment, I'm using this javascript to add a "blank" button after the datetime inputs: // -- Add blank button right of datetime fields $('input.datetime').each(function(){ oc = "$(&#x

[web2py] Reset (blank) value in datetime form widget

2011-11-01 Thread ~redShadow~
lds, or it just cannot be done? It would be nice to have a "clear field" button, or so.. Also, I'm not sure that opening the date selector on focus (that is, even when accessing with tab) is the most accessible way (it requires 6 more Tab presses to get on the next field..). --

Re: [web2py] Cheaper hosting...

2011-10-30 Thread ~redShadow~
ce vserver is 7.90 EUR/month with 512MB ram and 20GB HDD; the only disadvantage is that unless vps/linode/.. VMs are on directly physical machines and not on a redundancy cloud, so it's a bit less fault-tolerant; anyways, I never get any noticeable downtime, even when they were turning off router

Re: [web2py] Re: Auth in MongoDB

2011-10-30 Thread ~redShadow~
ilar behavior work on all databases too..). So, I guess the best thing for the moment is using directly pymongo (using the ``DAL()`` just for the pooling mechanism) and subclass ``Auth`` and ``Crud`` to make them work with pymongo d

Re: [web2py] Re: Using a decorator to choose which view to use

2011-10-30 Thread ~redShadow~
code from a CherryPy "autoreload" component but http://www.cherrypy.org/wiki/AutoReload is a 404 and http://docs.cherrypy.org/dev/progguide/autoreloader.html seems to work using a clock instead of inotify to watch files, plus

[web2py] Using a decorator to choose which view to use

2011-10-30 Thread ~redShadow~
pers.request = request helpers.response = response But I don't like having to do this each time I import that module.. Any suggestions on how to do better? And, isn't already there something like this in the core? -- Samuele ~redShadow~ Santi -

[web2py] CSS for book printing

2011-10-28 Thread ~redShadow~
ting (if you wish to). -- Samuele ~redShadow~ Santi ---- redshadow[at]hackzine.org - redshadowhack[at]gmail.com Blog: http://hackzine.org GPG Key signature: 050D 3E9F 6E0B 44CE C008 D1FC

Re: [web2py] Auth in MongoDB

2011-10-27 Thread ~redShadow~
a pymongo.Collection object that Auth doesn't know how to use.. For now, the two solutions I see are: - temporarily use a sqlite database just to store users/auth stuff - write a custom (maybe inheriting) "MongoAuth" obje

RE: [web2py] Re: Better off-line book?

2011-10-14 Thread ~redShadow~
e many kinds of contributions (support, code, community, > etc) a monetary contribution has it's own unique value and utility and > I'm sure it will be greatly appreciated. already done :) (and of course I suggest doing the same, especially if you plan on using web2py for your business..)

Re: [web2py] Re: Better off-line book?

2011-10-14 Thread ~redShadow~
py.com/book Cool.. I tried playing with something similar but none worked. Looks like --html-extension fixed many things.. -- Samuele ~redShadow~ Santi ---- redshadow[at]hackzine.org - redshadowhack[at]gmail.com Blog: http://hackzi

Re: [web2py] Re: Better off-line book?

2011-10-13 Thread ~redShadow~
cursively grab pages from the online book.. -- Samuele ~redShadow~ Santi ---- redshadow[at]hackzine.org - redshadowhack[at]gmail.com Blog: http://hackzine.org GPG Key signature: 050D 3E9F 6E0B 44CE C008

[web2py] Better off-line book?

2011-10-12 Thread ~redShadow~
on in html documents quicker, and the pages are nicer with source highlight and stuff.. Might you please find a way to let people who bought the book also download html documents and/or the markmin source? This would be very handful for me and for other people, I guess.. Thank you -- Samuele ~redSha

Re: [web2py] Re: RESTful interfaace

2011-10-12 Thread ~redShadow~
derstand the exact behavior of different patterns. Quick explanation of how these work? -- Samuele ~redShadow~ Santi redshadow[at]hackzine.org - redshadowhack[at]gmail.com Blog

Re: [web2py] Re: MongoDB and Web2py

2011-10-12 Thread ~redShadow~
se the pymongo.Connection() in db._adapter.connection to directly operate on the database? I haven't tested yet (for now I'm just doing experiments, so I don't need connection pool), but looks like this should work.. -- Samuele ~redShadow~ Santi ---

Re: [web2py] Re: HTML validation

2011-10-09 Thread ~redShadow~
ttribute, the DTD for HTML5 does [0], so here it is the error marked by w3c validator defaulting to HTML5 DTD for the generic "" doctype. [0] http://www.w3.org/TR/html5/semantics.html#standard-metadata-names -- Samuele ~redShadow~ Santi -

Re: [web2py] [OT] python. pyc virus

2011-10-09 Thread ~redShadow~
lus, everything that can modify the .pyc would probably also be able to modify the .py directly, run malicious code directly, etc. etc.. -- Samuele ~redShadow~ Santi ---- redshadow[at]hackzine.org - redshadowhack[at]gmail.com Blog:

[web2py] Documentation on database adapters?

2011-10-08 Thread ~redShadow~
gh the book (in chapter 6) says "Looking at the various adapters as examples should be easy to write new ones.", looks like it isn't that easy to understand exactly the meaning of every method, especially the ones used to build queries..

Re: [web2py] MongoDB and Web2py

2011-10-03 Thread ~redShadow~
bit stuck trying to understand how adapters should work, by reading the source code of other adapters.. -- Samuele ~redShadow~ Santi ---- redshadow[at]hackzine.org - redshadowhack[at]gmail.com Blog: http://hackzine.org GPG Key s