[prev in list] [next in list] [prev in thread] [next in thread] 

List:       opengroupware-users
Subject:    Re: [OGo-Users] Renaming a resource?
From:       Adam Tauno WIlliams <awilliam () whitemice ! org>
Date:       2009-11-13 1:34:51
Message-ID: 1258076091.16380.12.camel () estate1 ! whitemice ! org
[Download RAW message or body]

On Thu, 2009-11-12 at 12:21 -0500, Jeff wrote:
> Finally got around to renaming the resource, and these database
> queries did the trick, thanks!

Excellent.

> However, the old resource name is still showing up in the calendar
> view in the dropdown (where it defaults to my account - but we have
> the Resources listed there too). 

Right it is stored in your user defaults, in the
schedular_panel_resourceNames attribute.

> What table is that stored in so I can update that without having the
> users change it manually?   And wherever that table is, does it need
> an object_version increment as well?

User defaults are stored in OpenSTEP style PList (property list) files
in the OpenGroupware documents root.  So, for example, if your account's
objectId is 10,100 then there is
a /var/lib/opengroupware.org/documents/10100.defaults file.  If you have
just a couple to edit you can do it by hand if your careful (just use a
text editor).

Otherwise I just the other day implemented an OpenSTEP PList writer
OpenGroupware Coils so you can script mass changes with Python.  Coils
will soon have an RPC for reading / writing user defaults as an admin
since that is a feature we need.  Source for the OpenSTEP PList reader /
writer is at
<http://coils.hg.sourceforge.net/hgweb/coils/coils/file/4ed140ab0c93/src/coils/model/plist>

I probably should just have an admin RPC to rename a resource?

-- 
OpenGroupware.org Users
users@opengroupware.org
http://mail.opengroupware.org/mailman/listinfo/users
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic