You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jspwiki.apache.org by "Janne Jalkanen (JIRA)" <ji...@apache.org> on 2009/01/05 21:55:44 UTC

[jira] Commented: (JSPWIKI-460) Add current time stamp to WikiVariables

    [ https://issues.apache.org/jira/browse/JSPWIKI-460?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12660919#action_12660919 ] 

Janne Jalkanen commented on JSPWIKI-460:
----------------------------------------

-1 on this patch; while the idea is ok, I don't think the syntax is good.  It suits only this particular instance - how would you e.g. have multiple parameters?

In addition, having variables with parameters muddies the line between plugins and variables.  Would it make sense to rethink how we're going to deal with this?  Perhaps it might be a better solution to unify plugins and variables?

At any rate, I don't like the syntax.  At least it needs to be in line with plugin syntax with a key-value system.

> Add current time stamp to WikiVariables
> ---------------------------------------
>
>                 Key: JSPWIKI-460
>                 URL: https://issues.apache.org/jira/browse/JSPWIKI-460
>             Project: JSPWiki
>          Issue Type: Improvement
>            Reporter: NicolaFischer
>            Assignee: Harry Metske
>            Priority: Minor
>             Fix For: 3.0
>
>         Attachments: patch.txt
>
>
> Hi,
> i would like to add a current time stamp to the wikivariables to use it in different plugins (f.e Formhandler).
> Input:
> Call with [{$identifier=time format}]
> f.e. [{$timestamp=yyyyMMdd}]
> Output:
> 20081219
> Explanation:
> 1. "timestamp" as identifier for the variable
> 2. after the "=" come the "time format". (Examples: yy-MM-dd hh:mm, yyyy.MM.dd)
> Exception: if the "time format" is null or wrong, a message appears.
> The changes would be made in the VariablesManager.java. I have the code ready and tested.
> Question: How can I achieve Commitrights?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.