[Nitro] [NP.ORG] Nitro/Og Fora daily diggest
george.moschovitis at gmail.com
george.moschovitis at gmail.com
Mon Mar 26 20:05:02 EDT 2007
>From gmosx.myopenid.com
Date: Mon Mar 26 17:47:43 UTC 2007
Subject: RE:
In-Reply-To: http://www.nitroproject.org/fora/posts/view/77
Message-ID: http://www.nitroproject.org/fora/posts/view/79
<blockquote>Bottom line it does work as you say but the Hello World needs to “require ‘raw’”.</blockquote>
ah, that must be it.
<blockquote>The library itself needs trivial changes to glycerin.rb and application.rb:</blockquote>
how about sending a nice Darcs patch. See http://nitroproject.org/repo for more info regarding patches.
-g.
>From gmosx.myopenid.com
Date: Mon Mar 26 17:44:52 UTC 2007
Subject: RE:
In-Reply-To: http://www.nitroproject.org/fora/posts/view/76
Message-ID: http://www.nitroproject.org/fora/posts/view/78
As I said,
I am interested, send me more details...
-g.
>From rmela.myopenid.com
Date: Mon Mar 26 14:09:14 UTC 2007
Subject: RE:
In-Reply-To: http://www.nitroproject.org/fora/posts/view/60
Message-ID: http://www.nitroproject.org/fora/posts/view/77
Probably faster to type it in from memory. It's two very short files, with one-line changes to glycerin.rb and application.rb.
Bottom line -- it does work as you say *but* the Hello World needs to "require 'raw'".
The library itself needs trivial changes to glycerin.rb and application.rb:
- line 108 of application.rb ( if defined? :Og ) is broken, at least for a "Hello World" that doesn't start Og. I added "and defined? Og.methods", though probably replacing "defined? :Og" with "defined? Og" would do the trick.
- glycerin.rb needs to include 'raw' when building its include paths.
Further, it appears that templates are discovered in ./template, not ./app/template.
It's faster to type the code here from memory than find and tar my most recent version. Hopefully no typos!
examples/foo/app.rb:
require "#{File.dirname(__FILE__)}/../../script/glycerin"
require 'nitro'
include Nitro
require 'raw' # # # require 'raw' !!!! # # #
class Foo # may also inherit from Raw::Controller. Perhaps the API does that transparently
# via Nitro.start ?
def index
render_text "Hello" #
end
def foo
end
end
Nitro.start Foo
Then the extensive Web 0.01 template file
examples/foo/template/foo.htmlx
Hello from template. Time now is #{Time.new}
>From aplatypus.myopenid.com
Date: Mon Mar 26 14:01:10 UTC 2007
Subject: Business Application -- Droll and Essential
Message-ID: http://www.nitroproject.org/fora/posts/view/76
Hello all ...
Hello hello,
Well things have been busy around here. I've got several new clients and time to put return some focus on my favourite software framework. I am a believer in the adage: "eat your own dog-food".
I have at least one business critical application that I want to see done. I reckon that many people will have forgotten who Brady Booch was. Who he is today might not be the person who would say that the usefulness of a framework is the tactical advantage it gives applications.
A corollary for that comment, is that real-world applications are the only way to polish frameworks. We can see the evidence of this in the polish being added on Flora and NP.org
I have the application domain information, and design skills with rudimentary ruby -- who is technical enough to surrender to a business case to develop application(s) that will really show off the value of Nitro, Og and the gang?
Regards,
William
_My_Bright_Ideas_____________________________________________________________________
"You must BE the change you want." ~ Gandhi Success Coaching
http://adroit-process.blogspot.com/ ph/sms: 041-476-1217
(©2007) Information proprietary and confidential intended for direct recipient(s) and mutually
agreed correspondents
abn:77425560110.
>From gmosx.myopenid.com
Date: Mon Mar 26 12:18:48 UTC 2007
Subject: Initial support for general primary keys and
Message-ID: http://www.nitroproject.org/fora/posts/view/75
I just pushed some patches to the repo with initial support for general primary keys and UUID keys in particular. Have a look at og/model/uuid.rb for some details. I have made a small change to the Postgresql adapter (where the pk for a new row is calculated). I have no access to a postgresql rdbms at the moment so I would like to ask someone from the community to test this.
Jonathan, please let me know if this fixes your text key problems. If not I will have another look at this!
-g.
>From gmosx.myopenid.com
Date: Mon Mar 26 12:10:34 UTC 2007
Subject: RE:
In-Reply-To: http://www.nitroproject.org/fora/posts/view/60
Message-ID: http://www.nitroproject.org/fora/posts/view/74
you probbaly forgot to attach the file ;-)
>From rmela.myopenid.com
Date: Mon Mar 26 02:22:57 UTC 2007
Subject: RE: RE:
In-Reply-To: http://www.nitroproject.org/fora/posts/view/60
Message-ID: http://www.nitroproject.org/fora/posts/view/73
File attached.
>From rmela.myopenid.com
Date: Mon Mar 26 01:54:16 UTC 2007
Subject: RE:
In-Reply-To: http://www.nitroproject.org/fora/posts/view/69
Message-ID: http://www.nitroproject.org/fora/posts/view/72
<blockquote>I've removed all previous nitro gems. The only Nitro source is the current repo ( or what was current as of three days ago ). Sending the source , including the mods </blockquote>
--
This mail is automatically generated from the http://nitroproject.org/fora
digest robot. It presents the discussions in the fora during the last 24 hours.
Do not reply to this email.
More information about the Nitro-general
mailing list