You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by "Brian Palmer (JIRA)" <ji...@apache.org> on 2009/01/10 00:05:59 UTC

[jira] Created: (COUCHDB-202) [PATCH] Support other languages for views in Futon

[PATCH] Support other languages for views in Futon
--------------------------------------------------

                 Key: COUCHDB-202
                 URL: https://issues.apache.org/jira/browse/COUCHDB-202
             Project: CouchDB
          Issue Type: Improvement
          Components: Administration Console
            Reporter: Brian Palmer
         Attachments: Futon_languages_support.patch

Attached is a small patch to generalize Futon to support any language defined in the .ini file. If the language is recognized, Futon will use the correct "stub" map function in the edit textarea. Currently I've added stub map methods for javascript and ruby, more could be added.

Languages are checked on save and handled conservatively. So once a view has been created, its language cannot be changed. And when first saving a view, the target document's language is checked and an error is returned if the languages don't match.

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


[jira] Resolved: (COUCHDB-202) [PATCH] Support other languages for views in Futon

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

Christopher Lenz resolved COUCHDB-202.
--------------------------------------

       Resolution: Fixed
    Fix Version/s: 0.9

Thanks a bunch for that patch, this is something I wanted to add for quite some time! I've integrated it in slightly modified form in r734528.

> [PATCH] Support other languages for views in Futon
> --------------------------------------------------
>
>                 Key: COUCHDB-202
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-202
>             Project: CouchDB
>          Issue Type: Improvement
>          Components: Administration Console
>            Reporter: Brian Palmer
>            Assignee: Christopher Lenz
>             Fix For: 0.9
>
>         Attachments: Futon_languages_support.patch
>
>
> Attached is a small patch to generalize Futon to support any language defined in the .ini file. If the language is recognized, Futon will use the correct "stub" map function in the edit textarea. Currently I've added stub map methods for javascript and ruby, more could be added.
> Languages are checked on save and handled conservatively. So once a view has been created, its language cannot be changed. And when first saving a view, the target document's language is checked and an error is returned if the languages don't match.

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


[jira] Commented: (COUCHDB-202) [PATCH] Support other languages for views in Futon

Posted by "Brian Palmer (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/COUCHDB-202?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12662554#action_12662554 ] 

Brian Palmer commented on COUCHDB-202:
--------------------------------------

I forgot to mention one small quirk, the most logical place for the language select dropdown is in the bottom bar of the #viewcode element. However there's a problem with safari and the resizable drag handle on that bar, preventing the select from being clicked. So on safari I move it down below, which is ugly. If anybody knows of a fix that'd be awesome.

> [PATCH] Support other languages for views in Futon
> --------------------------------------------------
>
>                 Key: COUCHDB-202
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-202
>             Project: CouchDB
>          Issue Type: Improvement
>          Components: Administration Console
>            Reporter: Brian Palmer
>         Attachments: Futon_languages_support.patch
>
>
> Attached is a small patch to generalize Futon to support any language defined in the .ini file. If the language is recognized, Futon will use the correct "stub" map function in the edit textarea. Currently I've added stub map methods for javascript and ruby, more could be added.
> Languages are checked on save and handled conservatively. So once a view has been created, its language cannot be changed. And when first saving a view, the target document's language is checked and an error is returned if the languages don't match.

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


[jira] Updated: (COUCHDB-202) [PATCH] Support other languages for views in Futon

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

Brian Palmer updated COUCHDB-202:
---------------------------------

    Attachment: Futon_languages_support.patch

Patch against the latest SVN trunk r733173

> [PATCH] Support other languages for views in Futon
> --------------------------------------------------
>
>                 Key: COUCHDB-202
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-202
>             Project: CouchDB
>          Issue Type: Improvement
>          Components: Administration Console
>            Reporter: Brian Palmer
>         Attachments: Futon_languages_support.patch
>
>
> Attached is a small patch to generalize Futon to support any language defined in the .ini file. If the language is recognized, Futon will use the correct "stub" map function in the edit textarea. Currently I've added stub map methods for javascript and ruby, more could be added.
> Languages are checked on save and handled conservatively. So once a view has been created, its language cannot be changed. And when first saving a view, the target document's language is checked and an error is returned if the languages don't match.

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


[jira] Assigned: (COUCHDB-202) [PATCH] Support other languages for views in Futon

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

Christopher Lenz reassigned COUCHDB-202:
----------------------------------------

    Assignee: Christopher Lenz

> [PATCH] Support other languages for views in Futon
> --------------------------------------------------
>
>                 Key: COUCHDB-202
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-202
>             Project: CouchDB
>          Issue Type: Improvement
>          Components: Administration Console
>            Reporter: Brian Palmer
>            Assignee: Christopher Lenz
>         Attachments: Futon_languages_support.patch
>
>
> Attached is a small patch to generalize Futon to support any language defined in the .ini file. If the language is recognized, Futon will use the correct "stub" map function in the edit textarea. Currently I've added stub map methods for javascript and ruby, more could be added.
> Languages are checked on save and handled conservatively. So once a view has been created, its language cannot be changed. And when first saving a view, the target document's language is checked and an error is returned if the languages don't match.

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