Modify

Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#6359 closed enhancement (fixed)

Box filled with code from repository

Reported by: adrian@… Owned by: 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 (0)

Change History (8)

comment:1 Changed 4 years ago by anonymous

  • Owner changed from nuald to anonymous
  • Status changed from new to assigned

comment:2 Changed 4 years ago by nuald

  • Owner changed from anonymous to nuald
  • Status changed from assigned to new

comment:3 Changed 4 years ago by nuald

  • Status changed from new to assigned

comment:4 Changed 4 years ago by rjollos

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

comment:5 Changed 4 years ago 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.

comment:6 Changed 4 years ago by nuald

  • Resolution set to fixed
  • Status changed from assigned to closed

Fixed in r7540.

comment:7 Changed 4 years ago by rjollos

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

comment:8 Changed 4 years ago by rjollos

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

Add Comment

Modify Ticket

Action
as closed .
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from nuald. Next status will be 'closed'.
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.