From: andrea Date: 2009-01-05T04:53:58+09:00 Subject: Re: Reimplementation address book program On 3 Gen, 12:30, Richard Conroy wrote: > On Sat, Jan 3, 2009 at 7:54 AM, andrea wrote: > > Is there anybody out there?? > > It might help if you actually posed a question, or phrased your problem > better. I *think* you are trying to make a web based administration interface > to an LDAP directory, but I am not sure. > > You might get better information on Rails talk, but your core problem is your > backend - its an LDAP directory not a database, so your problem might be > better served by anything that uses DataMapper, which doesn't restrict your > data sources. > > Merb might be a better choice, or possibly even Sinatra, which is simpler and > might put less barriers in your learning (and works very well with Haml, which > you like). > > regards, > Richard. Actually there were a few question marks and I thought I explained the problem, but I'll try again.. I need a frontend for the users which enables to modify / add and pretty view entries from an ldap tree. I just wanted some hints about what to use / how should I design it. Couldn't I just use mod_ruby instead of any kind of framework? I need a framework to interpret the haml code maybe? Or I could use the Haml::Engine? This is a first attempt of class structure: class Entry @@multiple = ["mobile", "telephoneNumber", "mail"] @@long = ["description"] end class Person < Entry @@attrs = { :attributes => ["cn", "sn", "o", "ou", "mobile", "telephoneNumber", "mail", "description"], :strict => ["cn", "sn"], :dn => ["dn"] } def initialize(cn, sn) end end class Factory < Entry @@attrs = { :attributes => ["o","telephoneNumber","facsimileTelephoneNumber","l","postalCode","street","description"], :strict => ["o"], :dn => ["o"] } def initialize(org) end end Depending on what you're loooking you get different attributes, it is fine to do this check directly in the haml template? They will be just input boxes or text areas with some strings already in or empty, it's not so difficult...