Chris, > I can offer some guidance if you'd like.
Yes, I would appreciate that.
If I understand correctly, what you're suggesting is a bit different than what
I am trying to do. The script I included creates a short report that gives a
list of the tags in the CVS hierarchy; its output looks like:
> rad3R5
> rad3R6
> rad3R6P1
> rad3R7P1
> rad3R7P2
> rad3R8
> rad3R9
> rad4R0
> rad4R1
>
I want to be able to run the script (perhaps every day, or on administrator
demand), cache the output, then take that list, and use it in Plone pages.
How best might I approach that problem?
Randolph
On May 10, 2012, at 11:14 AM, Cris Ewing wrote:
> Randolph,
>
> Underneath, Plone is just python, so you can do pretty much whatever you want
> to with it.
>
> It sounds to me like what you want to do is create a 'browser view', and have
> that view execute this code on your server. This is not the type of thing
> that Plone will allow you to do through the web. You will need to create a
> filesystem code add-on.
>
> I can offer some guidance if you'd like.
>
> Yours,
>
> Cris Ewing
>
>
> On May 10, 2012, at 9:58 AM, Randolph M. Fritz wrote:
>
>> [this may recur, thanks to mailing list server problems]
>>
>> I have a simple script which finds all the symbolic names in a CVS source
>> tree. I'd like to incorporate its output in a Plone site. Unfortunately,
>> the script requires access to the underlying operating system and I can't
>> figure out how to do that in Plone. In fact, I can scarcely decipher the
>> documentation at all.
>>
>> One version of the script is:
>> cvs -Q -d (place) rlog -h (root) | awk '/^symbolic names:/,/^keyword
>> substitution:/ {if ($0 ~ /^[ \t]/) {sub(/:/,""); print $1}}' |sort -u
>>
>> The output of that version is a list of CVS symbolic names, one per line.
>> Can I integrate this script into our plone server somehow? I can switch to
>> a Python script, but that script would still have to invoke the "cvs" app
>> via subprocess or system. How would I use that output, or would it be
>> better to make it HTML?
>>
>> Randolph M. Fritz
>> [email protected]
>>
>
> Cris Ewing
> --------------------------------------------------
> Principal, Cris Ewing, Developer LLC
> http://www.crisewing.com
> [email protected]
> 1.206.724.2112
>
signature.asc
Description: Message signed with OpenPGP using GPGMail
