Modify

Opened 8 years ago

Closed 7 years ago

Last modified 7 years ago

#6359 closed enhancement (fixed)

Box filled with code from repository

Reported by: Adrian Fritz Owned by: Alexander Slesarev
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 7 years ago by anonymous

Owner: changed from Alexander Slesarev to anonymous
Status: newassigned

comment:2 Changed 7 years ago by Alexander Slesarev

Owner: changed from anonymous to Alexander Slesarev
Status: assignednew

comment:3 Changed 7 years ago by Alexander Slesarev

Status: newassigned

comment:4 Changed 7 years ago by Ryan J Ollos

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 7 years ago by Alexander Slesarev

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 7 years ago by Alexander Slesarev

Resolution: fixed
Status: assignedclosed

Fixed in r7540.

comment:7 Changed 7 years ago by Ryan J Ollos

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

comment:8 Changed 7 years ago by Ryan J Ollos

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

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Alexander Slesarev.
The resolution will be deleted.

Add Comment


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

 
Note: See TracTickets for help on using tickets.