[fossil-users] Adding settings

2012-06-11 Thread Baruch Burstein
Is there an easy way to add settings (preferably on a per-repository base)
to the `fossil settings` command? And if so, is there an easy way to also
add them to the web interface?

-- 
˙uʍop-ǝpısdn sı ɹoʇıuoɯ ɹnoʎ 'sıɥʇ pɐǝɹ uɐɔ noʎ ɟı
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


Re: [fossil-users] Adding settings

2012-06-11 Thread Remigiusz Modrzejewski

On Jun 11, 2012, at 09:03 , Baruch Burstein wrote:

 Is there an easy way to add settings (preferably on a per-repository base)
 to the `fossil settings` command? And if so, is there an easy way to also
 add them to the web interface?

I once added the *self-register* thing after just a few minutes of looking 
around the sources. So yes, I'd say it's easy. At least if you have *grep* in 
your system ;)


Kind regards,
Remigiusz Modrzejewski



___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


Re: [fossil-users] Adding settings

2012-06-11 Thread Richard Hipp
On Mon, Jun 11, 2012 at 3:03 AM, Baruch Burstein bmburst...@gmail.comwrote:

 Is there an easy way to add settings (preferably on a per-repository base)
 to the `fossil settings` command? And if so, is there an easy way to also
 add them to the web interface?



Add entries to the
ctrlSettingshttp://www.fossil-scm.org/fossil/artifact/a71fac98f85a?ln=1888array,
and explanatory text to the header
comment on the settings_cmd()
functionhttp://www.fossil-scm.org/fossil/artifact/a71fac98f85a?ln=1888then
recomile.  The help text is automatically extracted from the header
comment by the build process.


 ___
 fossil-users mailing list
 fossil-users@lists.fossil-scm.org
 http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users




-- 
D. Richard Hipp
d...@sqlite.org
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


Re: [fossil-users] Adding settings

2012-06-11 Thread Baruch Burstein
Thank you. And is there a function to get the value of a setting, or just
an old-fashioned SELECT?

On Mon, Jun 11, 2012 at 12:42 PM, Richard Hipp d...@sqlite.org wrote:



 On Mon, Jun 11, 2012 at 3:03 AM, Baruch Burstein bmburst...@gmail.comwrote:

 Is there an easy way to add settings (preferably on a per-repository
 base) to the `fossil settings` command? And if so, is there an easy way to
 also add them to the web interface?



 Add entries to the 
 ctrlSettingshttp://www.fossil-scm.org/fossil/artifact/a71fac98f85a?ln=1888array,
  and explanatory text to the header
 comment on the settings_cmd() 
 functionhttp://www.fossil-scm.org/fossil/artifact/a71fac98f85a?ln=1888then 
 recomile.  The help text is automatically extracted from the header
 comment by the build process.


 ___
 fossil-users mailing list
 fossil-users@lists.fossil-scm.org
 http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users




 --
 D. Richard Hipp
 d...@sqlite.org

 ___
 fossil-users mailing list
 fossil-users@lists.fossil-scm.org
 http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users




-- 
˙uʍop-ǝpısdn sı ɹoʇıuoɯ ɹnoʎ 'sıɥʇ pɐǝɹ uɐɔ noʎ ɟı
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


Re: [fossil-users] Adding settings

2012-06-11 Thread Baruch Burstein
Never mind, I found it (db_get*). Sorry for the extra question.

On Mon, Jun 11, 2012 at 1:18 PM, Baruch Burstein bmburst...@gmail.comwrote:

 Thank you. And is there a function to get the value of a setting, or just
 an old-fashioned SELECT?


 On Mon, Jun 11, 2012 at 12:42 PM, Richard Hipp d...@sqlite.org wrote:



 On Mon, Jun 11, 2012 at 3:03 AM, Baruch Burstein bmburst...@gmail.comwrote:

 Is there an easy way to add settings (preferably on a per-repository
 base) to the `fossil settings` command? And if so, is there an easy way to
 also add them to the web interface?



 Add entries to the 
 ctrlSettingshttp://www.fossil-scm.org/fossil/artifact/a71fac98f85a?ln=1888array,
  and explanatory text to the header
 comment on the settings_cmd() 
 functionhttp://www.fossil-scm.org/fossil/artifact/a71fac98f85a?ln=1888then 
 recomile.  The help text is automatically extracted from the header
 comment by the build process.


 ___
 fossil-users mailing list
 fossil-users@lists.fossil-scm.org
 http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users




 --
 D. Richard Hipp
 d...@sqlite.org

 ___
 fossil-users mailing list
 fossil-users@lists.fossil-scm.org
 http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users




 --
 ˙uʍop-ǝpısdn sı ɹoʇıuoɯ ɹnoʎ 'sıɥʇ pɐǝɹ uɐɔ noʎ ɟı




-- 
˙uʍop-ǝpısdn sı ɹoʇıuoɯ ɹnoʎ 'sıɥʇ pɐǝɹ uɐɔ noʎ ɟı
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users


Re: [fossil-users] Adding settings

2012-06-11 Thread Richard Hipp
On Mon, Jun 11, 2012 at 6:18 AM, Baruch Burstein bmburst...@gmail.comwrote:

 Thank you. And is there a function to get the value of a setting, or just
 an old-fashioned SELECT?


db_get() and db_get_int().

Use grep.  The code really isn't that hard once you have the general
layout.  Read
http://www.fossil-scm.org/fossil/doc/trunk/www/tech_overview.wiki




 On Mon, Jun 11, 2012 at 12:42 PM, Richard Hipp d...@sqlite.org wrote:



 On Mon, Jun 11, 2012 at 3:03 AM, Baruch Burstein bmburst...@gmail.comwrote:

 Is there an easy way to add settings (preferably on a per-repository
 base) to the `fossil settings` command? And if so, is there an easy way to
 also add them to the web interface?



 Add entries to the 
 ctrlSettingshttp://www.fossil-scm.org/fossil/artifact/a71fac98f85a?ln=1888array,
  and explanatory text to the header
 comment on the settings_cmd() 
 functionhttp://www.fossil-scm.org/fossil/artifact/a71fac98f85a?ln=1888then 
 recomile.  The help text is automatically extracted from the header
 comment by the build process.


 ___
 fossil-users mailing list
 fossil-users@lists.fossil-scm.org
 http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users




 --
 D. Richard Hipp
 d...@sqlite.org

 ___
 fossil-users mailing list
 fossil-users@lists.fossil-scm.org
 http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users




 --
 ˙uʍop-ǝpısdn sı ɹoʇıuoɯ ɹnoʎ 'sıɥʇ pɐǝɹ uɐɔ noʎ ɟı


 ___
 fossil-users mailing list
 fossil-users@lists.fossil-scm.org
 http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users




-- 
D. Richard Hipp
d...@sqlite.org
___
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users