On Fri, Dec 14, 2001 at 07:39:49PM +0100, Emiliano wrote:
> > Another quick question: why does not midgard become an official extention
> > of php? It does not seem like there is a huge barrier to entry,
> > extension projects seem to come and go for php.
> Been there, done that, not likely to try again. They were complaining
> about the size of the extension and anything else they could think of;
> bottom-line: we were not welcome. When the scripting version of the
> extension is done (Alexander, timeline on this?) it should be pretty
> light-weight. I'm still not sure it's worth the hassle given our earlier
> experience with the PHP developer crew, but at least we'll have better
> papers.
:) New Midgard php extension which will appear on scene with Scriptor work
will be smaller and possibility to integrate it into PHP sources will be
higher but personally I do not see this as a high priority item. We can
(and definitely was doing this happily) live with our own CVS. Besides
extension sizes there were also valid points about timelines for versions'
correlation of both products which are not easily solvable even if both
sides will be helpful in other parts of development.
First bits of Scriptor's object model are in CVS now, under
/midgard/scriptor module. It is possible to start work on extension on
those 21 supported Midgard objects' classes though some interfaces might
go through set of changes -- I'm trying to find more convenient and
natural way to work with those objects. Current state is pretty good and
easy to use so far:
# Create connection to Midgard database
mgd = Midgard::Core.new(username, password)
article = mgd.make(:Article, 1) # creates an object which points to
# article with id = 1
puts article.guid # displays GUID of article
article.get # fetches whole object of database
# Count number of lines in the article
number_of_lines = 0
article['content'].each {|line| number_of_lines = number_of_lines + 1}
# Print article title and number of lines of its content
puts "Article '#{article['title']}' is #{number_of_lines} line(s) long"
--
/ Alexander Bokovoy
$ cat /proc/identity >~/.signature
`Senior software developer and analyst for SaM-Solutions Ltd.`
---
Nov 21 20:58:58 alconost kernel: VFS: Busy inodes after unmount.
Self-destruct in 5 seconds. Have a nice day...
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]