[Ogden] new year ... What is the state of OGden?

1 view
Skip to first unread message

Lars Olsson

unread,
Jan 29, 2009, 8:28:58 AM1/29/09
to ogden-de...@rubyforge.org
Hi,

> the source is in fairly good shape. there are some bugs to weed out
> however and there are some specific TODO items

I'd like to help out if I can. Trans, you mentioned bugs, but the Rubyforge bugtracker seems empty. Do you have a list of bugs stored somewhere else?

/lasso

________________________________________
Lars Olsson
lasso3000(at)yahoo.se


___________________________________________________
Sök efter kärleken!
Hitta din tvillingsjäl på Yahoo! Dejting: http://ad.doubleclick.net/clk;185753627;24584539;x?http://se.meetic.yahoo.net/index.php?mtcmk=148783

_______________________________________________
Ogden-developers mailing list
Ogden-de...@rubyforge.org
http://rubyforge.org/mailman/listinfo/ogden-developers

* William

unread,
Jan 31, 2009, 1:04:48 AM1/31/09
to lass...@yahoo.se, ogden-de...@rubyforge.org
Hi there ...

It has been very hot here, so I haven't done much.  One seeming intractable bug that I get when I run the simple demo.rb  as a regression test against the last OG gem, ..

  *  odgen demo.rb
       ..........  works a-ok with the OG-0.41.0
       ..........  String class doesn't exist with the ogden library

That seems a nonsense to me. 

My hypotheis was an issue is with a class decoration or mixin,  definition or something. 

I have been poking about using the debugger.  Unfortunately the 'problem'  comes during the class load I'm sure and not when the Og verbs are used.

Any expertise in 'string' woud be good.

:-)

2009/1/30 Lars Olsson <lass...@yahoo.se>



--
aloha,
        \_w_/
          [ask about marketing your technology]

Lars Olsson

unread,
Feb 6, 2009, 3:12:12 PM2/6/09
to ogden-de...@rubyforge.org
Hi,

sorry for not getting back to you sooner, but real life got in the
way...I've tried reproducing your results, but I don't seem to get the
same errors...I still get errors though ;)

This is my results so far:
1) Cloned the git repository

2) Tried to find out which version of Facets that worked...I tried every
version from 1.4.5 (the version that Og uses) to 2.5.0. The *only* ones
that worked for me was 2.4.1, 2.4.2 and 2.4.3...so I settled for 2.4.3.

3) Modified the demo.rb file to include the the new lib
$LOAD_PATH << File.expand_path('../lib')

4) Changed a 'prop' call to a 'property' call on line 57 in run.rb

5) Ran it with 'ruby -rubygems run.rb' with the following results:

[output]
INFO: Og uses the Sqlite store.
INFO: Dropped database 'test'
DEBUG: Og manageable classes: [Part, UserComment, ArticleComment,
Category, Article, User, Comment]
DEBUG: CREATE TABLE ogpart (name text, oid integer PRIMARY KEY,
article_oid integer)
INFO: Created table ogpart.
DEBUG: SELECT * FROM ogpart LIMIT 1
DEBUG: CREATE TABLE ogcomment (body text, oid integer PRIMARY KEY)
INFO: Created table ogcomment.
DEBUG: SELECT * FROM ogcomment LIMIT 1
DEBUG: CREATE TABLE ogcomment (body text, oid integer PRIMARY KEY,
author_oid integer)
DEBUG: SELECT * FROM ogcomment LIMIT 1
DEBUG: CREATE TABLE ogcomment (body text, oid integer PRIMARY KEY,
article_oid integer)
DEBUG: SELECT * FROM ogcomment LIMIT 1
DEBUG: CREATE TABLE ogcategory (title text, body text, oid integer
PRIMARY KEY)
INFO: Created table ogcategory.
DEBUG: CREATE TABLE ogj_article_category ( article_oid integer NOT
NULL, category_oid integer NOT NULL, PRIMARY KEY(article_oid,
category_oid) )
DEBUG: Created join table 'ogj_article_category'.
DEBUG: SELECT * FROM ogcategory LIMIT 1
DEBUG: CREATE TABLE ogarticle (title text, body text, level smallint
DEFAULT 1, options text, create_time timestamp, oid integer PRIMARY KEY,
author_oid integer)
INFO: Created table ogarticle.
DEBUG: CREATE TABLE ogj_article_category ( article_oid integer NOT
NULL, category_oid integer NOT NULL, PRIMARY KEY(article_oid,
category_oid) )
DEBUG: Join table already exists
DEBUG: SELECT * FROM ogarticle LIMIT 1
DEBUG: CREATE TABLE oguser (name text, oid integer PRIMARY KEY)
INFO: Created table oguser.
DEBUG: SELECT * FROM oguser LIMIT 1
DEBUG: INSERT INTO ogarticle (author_oid, title, oid, level,
create_time, options, body) VALUES (NULL, 'Title1', NULL, NULL,
'2009-02-06 19:31:56', '--- {}

', 'Body1')
DEBUG: SELECT last_insert_rowid()
DEBUG: INSERT INTO ogarticle (author_oid, title, oid, level,
create_time, options, body) VALUES (NULL, 'Title2', NULL, NULL,
'2009-02-06 19:31:56', '--- {}

', 'Body2')
DEBUG: SELECT last_insert_rowid()


* Get and print all articles:
DEBUG: SELECT * FROM ogarticle
Title1: Body1
Title2: Body2
DEBUG: INSERT INTO ogcomment (article_oid, oid, body) VALUES (1, NULL,
'Comment 1')
ERROR: DB error table ogcomment has no column named article_oid, [INSERT
INTO ogcomment (article_oid, oid, body) VALUES (1, NULL, 'Comment 1')]
ERROR:
/usr/local/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.4/lib/sqlite3/errors.rb:62:in
`check'
/usr/local/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.4/lib/sqlite3/statement.rb:39:in
`initialize'
/usr/local/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.4/lib/sqlite3/database.rb:154:in
`new'
/usr/local/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.4/lib/sqlite3/database.rb:154:in
`prepare'
/usr/local/lib/ruby/gems/1.8/gems/sqlite3-ruby-1.2.4/lib/sqlite3/database.rb:245:in
`query'
/home/lasso/git/ogden/lib/og/adapter/sqlite.rb:78:in `exec_statement'
/home/lasso/git/ogden/lib/og/store/sql.rb:593:in `exec'
/home/lasso/git/ogden/lib/og/store/sql.rb:821:in `insert'
/home/lasso/git/ogden/lib/og/store/sql.rb:102:in `og_insert'
/home/lasso/git/ogden/lib/og/store.rb:94:in `save'
/home/lasso/git/ogden/lib/og/model.rb:72:in `save'
/home/lasso/git/ogden/lib/og/manager.rb:118:in `with_store'
/home/lasso/git/ogden/lib/og/model.rb:71:in `save'
/home/lasso/git/ogden/lib/og/relation/refers_to.rb:62:in `article='
run.rb:166
/home/lasso/git/ogden/lib/og/store/sql.rb:615:in `handle_sql_exception':
Og::StoreException (Og::StoreException)
from /home/lasso/git/ogden/lib/og/store/sql.rb:596:in `exec'
from /home/lasso/git/ogden/lib/og/store/sql.rb:821:in `insert'
from /home/lasso/git/ogden/lib/og/store/sql.rb:102:in `og_insert'
from /home/lasso/git/ogden/lib/og/store.rb:94:in `save'
from /home/lasso/git/ogden/lib/og/model.rb:72:in `save'
from /home/lasso/git/ogden/lib/og/manager.rb:118:in `with_store'
from /home/lasso/git/ogden/lib/og/model.rb:71:in `save'
from /home/lasso/git/ogden/lib/og/relation/refers_to.rb:62:in `article='
from run.rb:166
[end of output]

In other words, I broke the code in a completely different way...Any
ideas on how to proceed?


Sincerely

/lasso

________________________________________
Lars Olsson
lasso3000(at)yahoo.se


--- Den lör 2009-01-31 skrev * William <william....@gmail.com>:

> Från: * William <william....@gmail.com>
> Ämne: Re: [Ogden] new year ... What is the state of OGden?
> Till: lass...@yahoo.se, ogden-de...@rubyforge.org
> Datum: lördag 31 januari 2009 07.04
> Hi there ...
>
> It has been very hot here, so I haven't done much. One
> seeming intractable
> bug that I get when I run the simple demo.rb as a
> regression test against
> the last OG gem, ..
>
> * odgen demo.rb
> .......... works a-ok with the OG-0.41.0
> .......... String class doesn't exist with the
> ogden library
>
> That seems a nonsense to me.
>
> My hypotheis was an issue is with a class decoration or
> mixin, definition
> or something.
>
> I have been poking about using the debugger. Unfortunately
> the 'problem'
> comes during the class load I'm sure and not when the
> Og verbs are used.
>
> Any expertise in 'string' woud be good.
>
> :-)


__________________________________________________________
Låna pengar utan säkerhet. Jämför vilkor online hos Kelkoo.
http://www.kelkoo.se/c-100390123-lan-utan-sakerhet.html?partnerId=96915014

Trans

unread,
Feb 10, 2009, 2:15:17 PM2/10/09
to ogden-de...@rubyforge.org
Try to figure out why article_oid doesn't exist in the table.

ERROR: DB error table ogcomment has no column named article_oid,
[INSERT
INTO ogcomment (article_oid, oid, body) VALUES (1, NULL, 'Comment 1')]

_______________________________________________

Trans

unread,
Feb 10, 2009, 2:15:17 PM2/10/09
to ogden-de...@rubyforge.org
Try to figure out why article_oid doesn't exist in the table.

ERROR: DB error table ogcomment has no column named article_oid,


[INSERT
INTO ogcomment (article_oid, oid, body) VALUES (1, NULL, 'Comment 1')]

_______________________________________________

Trans

unread,
Feb 10, 2009, 5:49:37 PM2/10/09
to ogden-de...@rubyforge.org
This is odd because

DEBUG: CREATE TABLE `ogcomment` (`oid` integer(11) unsigned
AUTO_INCREMENT PRIMARY KEY, `author_oid` integer, `body` text)

So it says it is creating the field, but it doesn;t actually do it.
How is that possbile?

T.

chris

unread,
Feb 11, 2009, 10:19:31 AM2/11/09
to ogden-de...@rubyforge.org
Yep, your in as an admin.

-Chris

* William

unread,
Feb 12, 2009, 7:59:05 AM2/12/09
to ogden-de...@rubyforge.org
Did it commit?

A friend had a problem something like that.  We discovered a typo in the SQL.

Since you are doing an INSERT to the dbms, it should be logged in admin.

Depending on the database you are using.

Either that, or an exception is being swallowed at low level.

Just thoughts I'm afraid.

w.

2009/2/11 Trans <tran...@gmail.com>

This is odd because

 DEBUG: CREATE TABLE `ogcomment` (`oid` integer(11) unsigned
AUTO_INCREMENT PRIMARY KEY, `author_oid` integer, `body` text)

So it says it is creating the field, but it doesn;t actually do it.
How is that possbile?

Trans

unread,
Feb 14, 2009, 9:54:39 AM2/14/09
to ogden-de...@rubyforge.org

On Feb 12, 7:59 am, "* William" <william.full.m...@gmail.com> wrote:
> Did it commit?

ok. I just pushed the changes that get us to the missing column
(article_oid) when running the demo.

I am going to spend some time cleaning up the code related to the
dependencies some more.

BTW anyone know about this note in lib/og/inflect.rb

# NOTE: This is "vendor" material from English project.
# But that project is being rebranded and this is the
# only part we need for Og. So, for now at least we'll
# just keep our own copy here.

Who said it was being rebranded?

Reply all
Reply to author
Forward
0 new messages