You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jspwiki.apache.org by "NicolaFischer (JIRA)" <ji...@apache.org> on 2008/12/18 13:20:44 UTC

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

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
            Priority: Minor


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.


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

Posted by "Harry Metske (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/JSPWIKI-460?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12661217#action_12661217 ] 

Harry Metske commented on JSPWIKI-460:
--------------------------------------

Sounds like a good idea, how many recursion levels do we want to support ?
Did you really mean plugins as plugin parameter, or plugins as parameter for the SET directive (isnt that a bit different ?)

Anyway, feel free to correct/enhance my patch.

> 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.


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

Posted by "Harry Metske (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JSPWIKI-460?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Harry Metske updated JSPWIKI-460:
---------------------------------

    Attachment: JSPWIKI-460.patch

Here is my next offer (see patch), the syntax now is :

{$timestamp format=<dateFormat>}

At least it is now lowercase 'timestamp' , and the parameters are according to the key-value system.

Let me know what you all think.

> 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: JSPWIKI-460.patch, 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.


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

Posted by "Janne Jalkanen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JSPWIKI-460?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Janne Jalkanen updated JSPWIKI-460:
-----------------------------------

    Remaining Estimate: 0h
     Original Estimate: 0h

I think this syntax is ok.  Harry, I see you committed the patch in, so want to close this one?

> 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: JSPWIKI-460.patch, patch.txt
>
>   Original Estimate: 0h
>  Remaining Estimate: 0h
>
> 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.


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

Posted by "NicolaFischer (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/JSPWIKI-460?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12661076#action_12661076 ] 

NicolaFischer commented on JSPWIKI-460:
---------------------------------------

Thank you for your feedback. 

My purpose was to create a wikivariable that is flexible enough for users to define their own dateformat in wikipages and wikiforms.

The problem is, that we have users that need the date like 24.12.2008 other like 20081224 and others like 081224. 

In this case I (as the wikiadmin) would have to create 3 wikivariables and restart the server.

Lowercase is ok for me as my code should ignore CamelCase totally.

How does SET works? Seems to me it only processes constant content.

I tested:
[{SET myvar1='[{CurrentTimePlugin format='yyyy.MM.dd G \'at\' hh:mm:ss z'}]'}]

Show myvar1: [{$myvar1}]

> 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.


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

Posted by "NicolaFischer (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/JSPWIKI-460?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12664118#action_12664118 ] 

NicolaFischer commented on JSPWIKI-460:
---------------------------------------

At the end: How can I access my timestamp-variable?

> 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.


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

Posted by "Harry Metske (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/JSPWIKI-460?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12668833#action_12668833 ] 

Harry Metske commented on JSPWIKI-460:
--------------------------------------

If Nicola (and others) are fine with the proposed solution, yes.

> 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: JSPWIKI-460.patch, patch.txt
>
>   Original Estimate: 0h
>  Remaining Estimate: 0h
>
> 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.


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

Posted by "Janne Jalkanen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JSPWIKI-460?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Janne Jalkanen reopened JSPWIKI-460:
------------------------------------


Reopening for further discussion.

> 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.


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

Posted by "Harry Metske (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JSPWIKI-460?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Harry Metske closed JSPWIKI-460.
--------------------------------

    Resolution: Fixed

fixed in 3.0.0-svn-57

> 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: JSPWIKI-460.patch, patch.txt
>
>   Original Estimate: 0h
>  Remaining Estimate: 0h
>
> 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.


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

Posted by "Janne Jalkanen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/JSPWIKI-460?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12661230#action_12661230 ] 

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

SET is really a built-in plugin... In fact, it could be refactored to be a real plugin fairly easily.

If it looks like a plugin it should behave like one ;-)

> 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.


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

Posted by "Janne Jalkanen (JIRA)" <ji...@apache.org>.
    [ 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.


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

Posted by "Janne Jalkanen (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/JSPWIKI-460?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12661098#action_12661098 ] 

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

The question is - if we enabled plugins as plugin parameter values (which shouldn't be a very complicated thing to do), wouldn't that solve all our problems pretty neatly?  Only thing that's really needed is to make sure that the parser won't stop at the wrong apostrophe...

It would be generic, useful and would not require a new syntax.


> 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.


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

Posted by "Dirk Frederickx (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/JSPWIKI-460?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12661081#action_12661081 ] 

Dirk Frederickx commented on JSPWIKI-460:
-----------------------------------------

Nicola,

What I suggested requires of course still some changes to the handling of a *new* $timestamp variable. It just suggest a different syntax to set that variable.

What you proposed does not work: you can not invoke plugins a plugin parameter values.

dirk

> 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.


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

Posted by "Florian Holeczek (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/JSPWIKI-460?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12660948#action_12660948 ] 

Florian Holeczek commented on JSPWIKI-460:
------------------------------------------

Andrew, your proposal looks good as the standard case. However, the settings in the user preferences usually are quite coarse grained, which might collide with special use cases for this plugin.

> 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.


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

Posted by "Dirk Frederickx (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/JSPWIKI-460?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12661067#action_12661067 ] 

Dirk Frederickx commented on JSPWIKI-460:
-----------------------------------------


Let's reuse the standard variable syntax to set the format of the timestamp, iso defining a new syntax.
I would also not use CamelCase but plain lowercase, like the other predefined jspwiki variables.


[{SET timestamp='yyyyMMdd' }]


Like Andrew suggests, most of the time this would not be needed, as the default format should be based on the user-prefs.


dirk



> 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.


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

Posted by "Harry Metske (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JSPWIKI-460?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Harry Metske closed JSPWIKI-460.
--------------------------------

       Resolution: Fixed
    Fix Version/s: 3.0

Fixed in 3.0.0-svn-46

Note that there is some i18n work again.

> 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.


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

Posted by "NicolaFischer (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/JSPWIKI-460?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12668872#action_12668872 ] 

NicolaFischer commented on JSPWIKI-460:
---------------------------------------

Jupp. I think this a very good implementation. Thanks a lot.

> 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: JSPWIKI-460.patch, patch.txt
>
>   Original Estimate: 0h
>  Remaining Estimate: 0h
>
> 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.


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

Posted by "NicolaFischer (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JSPWIKI-460?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

NicolaFischer updated JSPWIKI-460:
----------------------------------

    Attachment: patch.txt

Establishes a timestamp variable in JSPWiki. It is generic, so you can give it the desired outputform:

Example:
[{$timeStamp=dd-MM-yy}] results in 05-01-09
and 
[{$timeStamp=dd.MM.yyyy HH:mm} ] results in 05.01.2009 16:32

> 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
>            Priority: Minor
>         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.


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

Posted by "Andrew Jaquith (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/JSPWIKI-460?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12660940#action_12660940 ] 

Andrew Jaquith commented on JSPWIKI-460:
----------------------------------------

I agree with Janne's comment; -1 for me too.

The cleanest way to do this would be simply to have [${timeStamp}], with the date/time formatted according to the user's Preferences settings.

> 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.


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

Posted by "Florian Holeczek (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/JSPWIKI-460?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12657799#action_12657799 ] 

Florian Holeczek commented on JSPWIKI-460:
------------------------------------------

Hi Nicola,

the common way of contributing code is attaching it as a patch to the issue.
This way, the project team is able to review and integrate it.
Have a look at http://www.jspwiki.org/wiki/ContributingChanges

Regards
 Florian

> 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
>            Priority: Minor
>
> 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.