collective / collective.encrypted

1 stars 0 forks source link

Dexterity behavior? #1

Open hvelarde opened 12 years ago

hvelarde commented 12 years ago

don't you think it could be better to have this cool feature implemented as a Dexterity behavior that can be applied to other content types instead of a content type itself?

ghost commented 12 years ago

That is an interesting idea. I will go around developing that if I understand how I should approach the task.

What do you think the goal should be? Protecting automatically all the rich text fields, and not just one as it does at this moment?

That might also provide a way for removing most of the views I made. Most of them are actually just adding 5-10 lines of javascript (to kickstart the rest of what is going on there). Can I make the behavior to render that stuff and my special fields to all views (if they are using the macros that usually cause the magic to happen)?

How adding the javascript and the required special fields to the views should be handled? A few of the fields are hidden (just the javascript works with them). This is something I can't entirely grasp.

hvelarde commented 12 years ago

I have no idea on how to implement it, but I think it should be cool also to be able to encrypt file fields...

ghost commented 12 years ago

I actually do. That's what would be required to encrypt the images on the fly, I researched that a little bit. Perhaps after I get the basic thing really working!