Ticket #6359 (closed enhancement: fixed)

Opened 8 months ago

Last modified 7 months ago

Box filled with code from repository

Reported by: adrian@boreste.com Assigned to: nuald
Priority: normal Component: CodeExampleMacro
Severity: normal Keywords:
Cc: Trac Release: 0.11

Description

Goal:

  • administrate code from repository
  • adhere to DRY (do not repeat yourself) guideline

How could it work:

  • Box is filled-up with code gattered from SVN (or other) repository
  • a path for such a file in the repository is given
  • a regular expression indicates which to start getting
  • parameter limits number of lines of code to get
    {{{
    #!CodeExamplePath
    #!python
    path=./browser/codeexamplemacro/0.11/codeexample-plugin-en/codeexample/code_example_processor.py
    regex="def expand_macro"
    lines=5 (or default until function ends)
    }}}
    

Attachments

Change History

02/12/10 08:57:18 changed by anonymous

  • owner changed from nuald to anonymous.
  • status changed from new to assigned.

02/12/10 08:57:39 changed by nuald

  • owner changed from anonymous to nuald.
  • status changed from assigned to new.

02/12/10 08:57:49 changed by nuald

  • status changed from new to assigned.

02/12/10 23:27:59 changed by rjollos

Hi, Do you consider the changes in [7534] to be very stable, or does it need to be tested out a bit?

02/13/10 02:27:00 changed by nuald

No, at least I have to finish writing unit-tests for covering this new functionality. But if you want, you can test - it's stable enough.

02/13/10 06:34:20 changed by nuald

  • status changed from assigned to closed.
  • resolution set to fixed.

Fixed in r7540.

02/15/10 02:39:05 changed by rjollos

See also #6624 for a suggestion of another way to include a similar feature.

02/15/10 03:06:19 changed by rjollos

Possible issue with this feature has been noted in #6622.


Add/Change #6359 (Box filled with code from repository)




Change Properties
Action