ANN: Attachmentable plugin version 0.2.0

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

ANN: Attachmentable plugin version 0.2.0

Göran Ehrsson
Hi,

I have published a new release of the Attachmentable plugin, developed by Mihai Cazacu.
Version 0.2.0 adds the following features:

You can now add
static attachmentable = true
to your domain class instead of implementing a marker interface.

The script tag now accepts a "redirect" attribute containing a URL to redirect to when file upload is finished.

The downloadLink tag now accepts an "inline" attribute that will set Content-Disposition to "inline" to view the file inside the browser.

A new icon tag will render an <img> tag with an icon representing the attachment file type.

A new config option make it easy for searchable/lucene to index your uploaded files.

How to make sure uploaded files are deleted when the owning domain instance is deleted is now documented.

Documentation is updated.

http://www.grails.org/plugin/attachmentable

Feel free to submit questions or comments.

/Göran Ehrsson
Reply | Threaded
Open this post in threaded view
|

Re: ANN: Attachmentable plugin version 0.2.0

U10C11
There's an issue using the plugin with spring secutity

The earlier release of the plugin worked well grails.attachmentable.poster.evaluator = { getPrincipal() }

Now the same thing  is throwing an error :
groovy.lang.MissingMethodException: No signature of method: org.codehaus.groovy.grails.plugins.springsecurity.GrailsUser.ident() is applicable for argument types: () values: []
Possible solutions: print(java.lang.Object), print(java.io.PrintWriter), identity(groovy.lang.Closure), inject(java.lang.Object, groovy.lang.Closure), wait(), every()
        at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:54)

C

On Wed, Jan 5, 2011 at 9:49 AM, Goran Ehrsson <[hidden email]> wrote:
Hi,

I have published a new release of the Attachmentable plugin, developed by Mihai Cazacu.
Version 0.2.0 adds the following features:

You can now add
static attachmentable = true
to your domain class instead of implementing a marker interface.

The script tag now accepts a "redirect" attribute containing a URL to redirect to when file upload is finished.

The downloadLink tag now accepts an "inline" attribute that will set Content-Disposition to "inline" to view the file inside the browser.

A new icon tag will render an <img> tag with an icon representing the attachment file type.

A new config option make it easy for searchable/lucene to index your uploaded files.

How to make sure uploaded files are deleted when the owning domain instance is deleted is now documented.

Documentation is updated.

http://www.grails.org/plugin/attachmentable

Feel free to submit questions or comments.

/Göran Ehrsson



--
Regards,
U10C11
Reply | Threaded
Open this post in threaded view
|

Re: ANN: Attachmentable plugin version 0.2.0

Göran Ehrsson
Sorry about that. I only tested with 'poster' being a String or a grails domain instance, not a GrailsUser from spring security plugin.
There is now a 0.2.1 version in the repository, please test that.
Sorry for the inconvenience.

/Göran

U10C11 wrote 2011-01-14 01:41:
There's an issue using the plugin with spring secutity

The earlier release of the plugin worked well grails.attachmentable.poster.evaluator = { getPrincipal() }

Now the same thing  is throwing an error :
groovy.lang.MissingMethodException: No signature of method: org.codehaus.groovy.grails.plugins.springsecurity.GrailsUser.ident() is applicable for argument types: () values: []
Possible solutions: print(java.lang.Object), print(java.io.PrintWriter), identity(groovy.lang.Closure), inject(java.lang.Object, groovy.lang.Closure), wait(), every()
        at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:54)

C

On Wed, Jan 5, 2011 at 9:49 AM, Goran Ehrsson <[hidden email]> wrote:
Hi,

I have published a new release of the Attachmentable plugin, developed by Mihai Cazacu.
Version 0.2.0 adds the following features:

You can now add
static attachmentable = true
to your domain class instead of implementing a marker interface.

The script tag now accepts a "redirect" attribute containing a URL to redirect to when file upload is finished.

The downloadLink tag now accepts an "inline" attribute that will set Content-Disposition to "inline" to view the file inside the browser.

A new icon tag will render an <img> tag with an icon representing the attachment file type.

A new config option make it easy for searchable/lucene to index your uploaded files.

How to make sure uploaded files are deleted when the owning domain instance is deleted is now documented.

Documentation is updated.

http://www.grails.org/plugin/attachmentable

Feel free to submit questions or comments.

/Göran Ehrsson



--
Regards,
U10C11
Reply | Threaded
Open this post in threaded view
|

Re: ANN: Attachmentable plugin version 0.2.0

U10C11
It Works,
Thank you!
C

On Fri, Jan 14, 2011 at 2:54 AM, Goran Ehrsson <[hidden email]> wrote:
Sorry about that. I only tested with 'poster' being a String or a grails domain instance, not a GrailsUser from spring security plugin.
There is now a 0.2.1 version in the repository, please test that.
Sorry for the inconvenience.

/Göran

U10C11 wrote 2011-01-14 01:41:
There's an issue using the plugin with spring secutity

The earlier release of the plugin worked well grails.attachmentable.poster.evaluator = { getPrincipal() }

Now the same thing  is throwing an error :
groovy.lang.MissingMethodException: No signature of method: org.codehaus.groovy.grails.plugins.springsecurity.GrailsUser.ident() is applicable for argument types: () values: []
Possible solutions: print(java.lang.Object), print(java.io.PrintWriter), identity(groovy.lang.Closure), inject(java.lang.Object, groovy.lang.Closure), wait(), every()
        at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:54)

C

On Wed, Jan 5, 2011 at 9:49 AM, Goran Ehrsson <[hidden email]> wrote:
Hi,

I have published a new release of the Attachmentable plugin, developed by Mihai Cazacu.
Version 0.2.0 adds the following features:

You can now add
static attachmentable = true
to your domain class instead of implementing a marker interface.

The script tag now accepts a "redirect" attribute containing a URL to redirect to when file upload is finished.

The downloadLink tag now accepts an "inline" attribute that will set Content-Disposition to "inline" to view the file inside the browser.

A new icon tag will render an <img> tag with an icon representing the attachment file type.

A new config option make it easy for searchable/lucene to index your uploaded files.

How to make sure uploaded files are deleted when the owning domain instance is deleted is now documented.

Documentation is updated.

http://www.grails.org/plugin/attachmentable

Feel free to submit questions or comments.

/Göran Ehrsson



--
Regards,
U10C11



--
Regards,
U10C11