[Pkg-sql-ledger-discussion] LedgerSMB templates directory

Robert James Clay jame at rocasa.us
Sat May 19 01:32:32 UTC 2012


On Mon, 2012-03-12 at 08:34 -0400, Raphael Hertzog wrote:
> On Sun, 11 Mar 2012, Robert James Clay wrote:
> >      Thing is; with LedgerSMB v1.3 it's my understanding that templates
> > are edited in the application, not by the system admin.  Wouldn't that
> > be reason to install it to /var/lib/ledgersmb? 
> 
> Well, normal files installed by the package are not supposed to be modified.
> You could provide them in /usr/share

   Or perhaps as an example set of files (all of the current empty
language specific template directories may end up being unneeded, btw),
then those are copied to the ledgersmb /var/lib/ledgersmb/template
directory as part of an initial install?    


>  and copy them to /var/lib on initial
>  installation and then purge them in the postrm purge.

   The default template files can also be selected for editing.  If a
language specific template file for a particular template is available,
then that can be edited.  Possible changes that are being looked at:
automatic creation of a language specific file for editing from the
default file if the language specific file is not already present, and
possibly creation of the language specific directory if that is not
already present.
    

> >      In any case, there's something wrong with how the package is being
> > installed because the online editing of Styleheets and templates isn't
> > working.  ....

   That appears to be fixed, although there are still several default
versions of template files that have a naming issue in the
application...


> With sql-ledger templates are specific to each user IIRC. I don't know if
> it's the same with ledgersmb.

   With LedgerSMB; users have to have the correct permissions enabled in
order to be able to edit any templates, but the templates appear to be
otherwise available application wide.



Jame





More information about the Pkg-sql-ledger-discussion mailing list