Re: [web2py] Re: Mercurial not found

2012-08-30 Thread Sergi Pons Freixes
2012/8/30 Johann Spies johann.sp...@gmail.com: I recently installed a recent version of mercurial on Debian stable from backports and did not have any problem. I just installed the backports version, 2.2.2, and it works fine. Problem solved :) --

Re: [web2py] Re: Mercurial not found

2012-08-29 Thread Sergi Pons Freixes
On 28 Aug 2012, at 9:40 AM, Massimo Di Pierro massimo@gmail.com wrote: Which web2py version? which python version? It's with Python 2.6.6, web2py stable (1.99.7). But I noticed that I also have python 2.5.5 installed on my system, and grepping web2py files I can see several calls to

Re: [web2py] Re: Mercurial not found

2012-08-29 Thread Sergi Pons Freixes
2012/8/29 Nico Zanferrari nicoz...@gmail.com: There is exactly the same problem with http://www.pythonanywhere.com (they use python 2.6.6 and web2py 1.99.7). But I've found that it imports: from mercurial import ui, hg, cmdutil, scmutil and in fact the scmutil fails to be imported manually.

[web2py] Mercurial not found

2012-08-28 Thread Sergi Pons Freixes
Hi all, I have mercurial installed: # dpkg -l |grep mercurial ii mercurial 1.6.4-1 scalable distributed version control system

Re: [web2py] Model for graph hierarchy (many-to-many ralationship)

2012-08-26 Thread Sergi Pons Freixes
I created a new database, copy-pasted the models on a new app, and everything works fine... really weird. Maybe the previous database had some kind of corruption? Anyway, it works now. --

[web2py] Referencing other tables, two ways of doing it

2012-08-26 Thread Sergi Pons Freixes
Is there any difference between: db.define_table('sample_table, Field('sample_field', 'text'), Filed('referenced_field', db.another_table)) and db.define_table('sample_table, Field('sample_field', 'text'), Filed('referenced_field', ' reference another_table')) ? --

[web2py] Model for graph hierarchy (many-to-many ralationship)

2012-08-24 Thread Sergi Pons Freixes
Hi all, I'm interested on implementing a many-to-many relation for kind of graph structure, i.e., there are a set of nodes, with some on-way connections between them. Part of my model is: db.define_table('bookpage',\ Field('content', 'text'),\ Field('image', 'upload'),\

Re: [web2py] Model for graph hierarchy (many-to-many ralationship)

2012-08-24 Thread Sergi Pons Freixes
2012/8/24 Manuele Pesenti manu...@inventati.org 2012/8/24 Sergi Pons Freixes sachiel2...@gmail.com db.define_table('page_link',\ Field('in_page', db.bookpage),\ Field('out_page', db.bookpage),\ Field('text')) Are you sure you can call a field text? Or is it a reserved

Re: [web2py] Model for graph hierarchy (many-to-many ralationship)

2012-08-24 Thread Sergi Pons Freixes
I add the revelants parts of sql.log: CREATE TABLE bookpage( id INT AUTO_INCREMENT NOT NULL, content LONGTEXT, image VARCHAR(255), from_book INT, INDEX from_book__idx (from_book), FOREIGN KEY (from_book) REFERENCES book(id) ON DELETE CASCADE, modified_on DATETIME, PRIMARY

Re: [web2py] Model for graph hierarchy (many-to-many ralationship)

2012-08-24 Thread Sergi Pons Freixes
2012/8/24 Massimo Di Pierro massimo.dipie...@gmail.com Field('text') is the problem. A field cannot be called 'text' because it is a reserved keyword. The database complains. But... changing it to 'link_text' or something else doesn't solve the problem. BTW, it's on MySQL. --

Re: [web2py] Model for graph hierarchy (many-to-many ralationship)

2012-08-24 Thread Sergi Pons Freixes
On Friday, August 24, 2012 6:12:08 PM UTC+1, rochacbruno wrote: can you try changing db.bookpage to reference bookpage On my case, it keeps crashing with that. Something weird: once it crash and raises the ticket, I can not load the page again... it timeouts. I have to restart apache to be

Re: [web2py] Model for graph hierarchy (many-to-many ralationship)

2012-08-24 Thread Sergi Pons Freixes
Yes, there is really something else messing up somewhere I just created a new app with only this part, and it works perfect. I will start from scratch trying to find what is interfering with this part. I'll keep you posted. --

[Solved] Re: [web2py] Re: Apache+virtualhosts+wsgi, loading always the same content

2012-04-09 Thread Sergi Pons Freixes
2012/4/5 rdodev ruben.or...@infotechfl.com Seems to be working as intended from here. Possibly your browser's cache playing yedi mind tricks on you :D *facepalm* Yes, it was the cache...

[web2py] Book erratas

2012-04-05 Thread Sergi Pons Freixes
Just two questions regarding the book: - Are all the typos/erratas collected somewhere? I've seen a couple of posts of Johann Spies, but I would like to know if more has been detected. - Is the web version of the book corrected as soon as those mistakes are detected, or is it exactly the same

Re: [web2py] 2.6, 2.7, 3.2, PyPy ... wich one to use?

2012-03-29 Thread Sergi Pons Freixes
2012/3/29 Jonathan Lundell jlund...@pobox.com: Latest 2.7. I thought 2.5 was the recommended option for web2py. From the book: ...on Python versions 2.4, 2.5, 2.6, and 2.7, although officially it only supports 2.5 so that we can guarantee backward compatibility for applications.

[web2py] Apache+virtualhosts+wsgi, loading always the same content

2012-03-28 Thread Sergi Pons Freixes
Hi All, After checking the apache documentation and looking at older related discussions in the group, I still don't get what's wrong on my setup. What I want to achieve is: cub3.net - Load my home page www.cub3.net - Load my home page web2py.cub3.net - Load web2py Using Apache with mod_wsgi.