File Uploader plugin grails - grails-plugin

How can I add fields to the UFile table created by the file uploader plugin.
Basically I want to set relations between UFile and my table

If you create a domain class in your project in the same package with the same name, it'll be used instead of the one from the plugin.

Related

Model visibility scope in security (ir.model.access.csv)

I’m trying to programmatically create a group with security permissions to be applied on a certain model.
I use (ir.model.access.csv) and an XML file.
I keep getting the error message:
No matching record found for external id
It happens if I define the permissions for an existing model not defined in my module (such as res_partner for example).
Is this how it works? Should I set permissions for the models created by my module only or can I set permissions for other models in the system?
I had this problem once in odoo v8.0
Inherited modules have their permissions already defined in it's own folders, with their .csv and .xml files. So you don't need to set them. Probably you can inherit the permissions, but so far I haven't seen any modules that do that.
In my case, I only set the permissions for the modules I created and it worked.
Hope it helps!
For Adding Access Rights to Already installed or other than your custom modules.
add model name section as
modulename.model_model_name
Sample csv line :-
access_manager_ir_conf,Manager Ir Conf,base.model_ir_config_parameter,estimate.group_estimate_manager,1,0,0,0

Can SCM-Manager prefill my newly created repositories with a template?

Many of my projects have the same directory structure. When creating a new project I would like to have that structure set up right away.
My projects are managed by SCM-Manager.
Is there a way to have SCM-Manager create my directory structure from a template when I create a new repository?
At the moment, this is not possible. Maybe this can be implemented by writing a plugin. There already exists a feature request (for subversion but should be possible for all repo types) at https://bitbucket.org/sdorra/scm-manager/issue/241/creating-repositories-with-standard where you can vote for.

Where do we keep the website configuration file in yii?

I want some information and settings are stored in the location Yii that I have access to it in anywhere of the program(controller,view,model .....)
Can i create this file as Component or Extension?
my another question:
How can I create a function that will auto run on all pages?(global function).
Depends on how the application is set up and there might be more of them.
Usually you can find it in protected/config/.
Link to how to use it http://www.yiiframework.com/wiki/59/.

How to create Eclipse custom java-based new File Wizard based on code templates?

I'm just starting into some Eclipse (juno) plugin experimentation. A key part of the plugin I want to create needs to provide the user with the ability to create New java-based classes. These classes may be 1 of 3 different types.
Is it possible to do this using variation of the NewFileWizard that will use a template for each class type under the hood?
For example, when the user is in the new Custom project they created from the plugin, I'd like them to be able to do a right-click, "New" and be given 3 choices. Depending on the choice, the wizard will use a corrosponding code template - filling in class name, package name, etc., and then generating the file in the proper project folder.
Please let me know if you need any clarification on what I'm asking.
Is it possible to do this using variation of the NewFileWizard that will use a template for each class type under the hood?
Yes.
You're basically going to have to get the Eclipse source code for the New File Wizard, bring it into an Eclipse plug-in project, and modify it to meet your specific needs.

Adding specific references from a NuGet Package

I have created a package with a bunch of assemblies that we will provide to our users. I want our users to be able to pick and add only references they need from within the package to a project. The user should be able to add this package at a solution level and then pick the references to be added to each project from the package added. Is this possible with NuGet?
Example:
MyPackage - contain foo.dll, bar.dll, bla.dll
User installs package "MyPackage" to solution
Project 1 - select and add reference foo.dll, bar.dll
Project 2 - select and add reference bla.dll
Currently, every reference of the package is added to every project. This is not the desired setup. I want only the selected references added. Is there a way to do this with Nuget?
NuGet is not designed to work this way. Packages are whole delivery units. Our recommendation in this scenario would be to package the individual assemblies according to how you want them individually installable.