Re: [fossil-users] diff of wiki-page

2016-07-17 Thread Michai Ramakers
On 15 July 2016 at 20:16, Warren Young  wrote:
> On Jul 15, 2016, at 12:09 PM, Michai Ramakers  wrote:
>>
>> 1) does there happen to be a "howto" anywhere describing quick setup
>> w.r.t. security, perhaps from a wiki-only standpoint?
>
> I posted my philosophy on that here:
>
>   
> http://lists.fossil-scm.org:8080/pipermail/fossil-users/2016-January/023184.html

Ok, thanks. As a matter of fact... I decided a couple of static
Markdown-/HTML-pages would suffice, in this case. (I'll probably be
the only contributer anyway.)

Michai
___
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] diff of wiki-page

2016-07-17 Thread Richard Hipp
On 7/15/16, Warren Young  wrote:
>
> In order to view [embedded documentation] content in the wiki, the viewing 
> user
> needs checkout rights on the whole repository.

In general, this is true.  But there is one obscure exception.

On the Setup/Access page there is a "Public Pages" setting, documented
as follows:

'A comma-separated list of glob patterns for pages that are accessible
without needing a login and using the privileges given by the "Default
privileges" setting below. Example use case: Set this field to
"/doc/trunk/www/*" to give anonymous users read-only permission to the
latest version of the embedded documentation in the www/ folder
without allowing them to see the rest of the source code.'


-- 
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] Constructing Base URI With TH1 Variables

2016-07-17 Thread John L. Poole



On 7/17/2016 12:45 AM, Ron W wrote:
On Sun, Jul 17, 2016 at 2:08 AM, John L. Poole > wrote:


On your suggestion, I inserted code on the setup_header page to this:


if {[hascap r]} {
html "\n"
}



And that worked: the baseURI variable in DOM was set to
"http://themis:8080/tktview?name=149873cca9;


However, each page now complains
"ERROR: no such variable: tkt_uuid"
and is missing styling and the heading matter.


Test $current_page for "tktview". If true:
html "\n"
else:
html "\n"


Thank you, that worked.  Here's what I used:



if {$current_page eq "tktview"} {
  html "\n"
} else {
  html ""
}


...

Caveat: changing the baseURI value to a specific ticket page introduced 
a problem in that ticketview pages are not having their CSS files 
loading correctly; the URIs for the CSS assume the baseURI to be 
$baseurl/$current_page.  I'll have to go down the line and introduce 
$baseurl/$current_page prefixes to URIs that assume that the baseURI has 
been set to $baseurl/$current_page


___
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] Constructing Base URI With TH1 Variables

2016-07-17 Thread Ron W
On Sun, Jul 17, 2016 at 2:08 AM, John L. Poole  wrote:

> On your suggestion, I inserted code on the setup_header page to this:
>  
>  if {[hascap r]} {
>   html "\n"
>  }
>  
>  
>
> And that worked: the baseURI variable in DOM was set to
> "http://themis:8080/tktview?name=149873cca9;
> 
>
> However, each page now complains
> "ERROR: no such variable: tkt_uuid"
> and is missing styling and the heading matter.
>

Test  $current_page for "tktview". If true:
 html "\n"
else:
 html "\n"
___
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] Constructing Base URI With TH1 Variables

2016-07-17 Thread John L. Poole



On 7/16/2016 8:20 PM, Ron W wrote:
On Sat, Jul 16, 2016 at 1:49 PM, John L. Poole > wrote:


The Edit Page Header allows one to define an HTML page 
element's child
using TH1 variables:

   

[...]

But the Base URI as defined by the above concatenation is really:

http://themis:8080/tktview

since $current_page is valued at "tkview".

What I'd like is to have a TH1 variable that allows me to
construct a value like"tkview?name=149873cca9" or
"tkview/149873cca9e566ab28d2b9922e44a515a639c3ff
"


You can specify the TH1 and HTML for tktview. In that, you will have a 
variable with the ticket ID (don't recall name right now and replying 
from my tablet), so could build the URL using it.



Thank you.

On your suggestion, I inserted code on the setup_header page to this:

 


if {[hascap r]} {
html "\n"
}



And that worked: the baseURI variable in DOM was set to
"http://themis:8080/tktview?name=149873cca9;

However, each page now complains
"ERROR: no such variable: tkt_uuid"
and is missing styling and the heading matter.

I had tried to have the  element inserted from the Ticket View 
page,
but I think the first definition of  prevails, so that 
subsequent declarations

such as might be before the Ticket table is ignored.

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