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'),\
Field('from_
2012/8/24 Manuele Pesenti
>
>
> 2012/8/24 Sergi Pons Freixes
>
>>
>> db.define_table('page_link',\
>> Field('in_page', db.bookpage),\
>> Field('out_page', db.bookpage),\
>> Field('text'))
>
>
>
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 K
2012/8/24 Massimo Di Pierro
> 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.
--
>
> 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 apa
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.
--
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.
--
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'))
?
--
Hi all,
I have mercurial installed:
# dpkg -l |grep mercurial
ii mercurial 1.6.4-1 scalable
distributed version control system
>> On 28 Aug 2012, at 9:40 AM, Massimo Di Pierro
>> 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 explicitly python2.
2012/8/29 Nico Zanferrari :
> 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. Maybe you nee
2012/8/30 Johann Spies :
> 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 :)
--
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 tha
2012/4/5 rdodev
> 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...
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_wsg
2012/3/29 Jonathan Lundell :
>
> 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."
16 matches
Mail list logo