Re: [phpldapadmin] Improving display format of objects

Deon George <[email protected]> Fri, 16 Apr 2010 13:41:03 +1000
Newsgroups gmane.comp.ldap.davedap
Message-ID <[email protected]>
Matthijs,

As long as you keep your changes to "pretty displays", and not change 
the input fields, the there shouldnt be any implementation issues. In 
fact it should be relatively easy to implement.

In the PLA 1.2.x branch, I changed a lot of the back end, so that 
attributes were rendered consistently throughout PLA's usage (search, 
create, edit, add, etc), so in essence, you are just modifying the 
rendering to show your "pretty name" alongside the appropriate field.

(There is still some more work to do in this area - mainly to separate 
rendering from logic, but it should be ok for you to do what you need.)

If I were to implement it, I would suggest that you explore an "alias" 
approach in a similar way to "Friendly Names" (for attribute names) are 
rendered. In this case it sounds like you want a "Friendly Value" for a 
"dn" (whenever a DN value is rendered). In this case, it would supersede 
tree_display_format.

Eg: if my DN is cn=Deon George,ou=People,o=PLA,c=AU, and I configured 
"uid" as the friendly value for dn, then whenever PLA rendered my DN, 
instead it would show the value of "uid".

Also, if you do implement it, keep the alias reference as an "array of 
alternatives", with the last being "dn". Thus, if my aliased array has 
('uid','phone','dn'). Then the value of "uid" would be used first, if a 
"uid" didnt exist, then the value of "phone" value would be used, and 
lastely the DN would be used, etc. In fact you could omit having 'dn' 
there explicitely (since every entry does have one!) and render it 
anyway, if there are no other attributes that exist.

Great idea ;)

...deon

Matthijs Kooijman wrote:
> Do you have any thoughts about how to make this happen? Are there
> implementation issues or problems to be expected? How would one configure
> this? Would this replace the tree_display_format configuration?
>
> If we can sketch a picture of how this should work, I'm willing to implement
> this.
>
> Gr.
>
> Matthijs
>   
>


------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
______________________________________
phpLDAPadmin development mailing list.
To unsbuscribe: https://lists.sourceforge.net/lists/listinfo/phpldapadmin-devel
http://phpldapadmin.sourceforge.net/