Modify

Opened 3 years ago

Closed 13 months ago

Last modified 3 months ago

#11160 closed enhancement (fixed)

Shell command to create project

Reported by: anonymous Owned by: Cinc-th
Priority: normal Component: SimpleMultiProjectPlugin
Severity: normal Keywords:
Cc: Trac Release: 1.0

Description

Hi, is there any shell command for unix to create a project under SSMPP, thank you in advance

Attachments (5)

__init__.py-11160.patch (729 bytes) - added by Cinc 17 months ago.
Add admin commands plugin
SOURCES.tst-11160.patch (782 bytes) - added by Cinc 17 months ago.
Add admin commands plugin
admin_command.py (5.7 KB) - added by Cinc 17 months ago.
Add admin commands plugin, main file.
admin_command.2.py (7.1 KB) - added by Cinc-th 13 months ago.
Revised admin command prlugin fixing trap. Some imporvements and documentation.
admin_command.3.py (7.1 KB) - added by Cinc-th 13 months ago.
Changed defualt list action from detailed to short.

Download all attachments as: .zip

Change History (29)

comment:1 Changed 3 years ago by falkb

No, you can only do that via /roadmap. Somehow this is related to comment:ticket:10733:8.

comment:2 Changed 3 years ago by rjollos

Yeah, you'd need to implement IAdminCommandProvider. It would be fun though, right? ... if only we could find the time ;) comment:8:ticket:10733: should help with the implementation like you suggest.

comment:3 Changed 3 years ago by anonymous

I'm creating a shell script to create projects easily, creating the repository, linking it to trac and the only thing I was missing is the creation of the project under SSMPP, thank you very much for your answers

comment:4 Changed 17 months ago by Cinc

I'm currently working on a patch.

comment:5 Changed 17 months ago by Cinc

The following three files add admin commands to the plugin.

Changed 17 months ago by Cinc

Add admin commands plugin

Changed 17 months ago by Cinc

Add admin commands plugin

Changed 17 months ago by Cinc

Add admin commands plugin, main file.

comment:6 Changed 17 months ago by Cinc

The second file is of course SOURCES.txt...

comment:7 Changed 17 months ago by rjollos

You (and the plugin maintainer receiving your patches) may find the information in trac:TracDev/SubmittingPatches useful. Most people find the unified diff format much easier to deal with rather than entire copies of the modified files.

comment:8 Changed 17 months ago by falkb

No worries, it's OK for me. Either Tortoise SVN merges that or I use BeyondCompare which offers partial merge in a side-by-side view.

comment:9 Changed 17 months ago by falkb

If you like, you could give him write access to the repository. His patches are good, useful and straight forward to a neat plugin. I would reserve all rights of the maintainer though including taking the rights away again (in case of bigger unsolvable trouble (which I don't expect though)). ;-)

comment:10 follow-up: Changed 17 months ago by falkb

testing result on project remove testtest :

  File "build\bdist.win32\egg\simplemultiproject\model.py", line 241, in execute_sql_statement
    for id in ids_projects:
TypeError: 'int' object is not iterable

comment:11 Changed 17 months ago by falkb

The command syntax and help texts look good to me (y)

comment:12 follow-up: Changed 17 months ago by rjollos

At the request of falkb, Cinc has been provided write access to the SimpleMultiProjectPlugin repository.

comment:13 Changed 17 months ago by anonymous

Thanx Ryan :-)

comment:14 in reply to: ↑ 12 ; follow-up: Changed 13 months ago by Cinc-th

Replying to rjollos:

At the request of falkb, Cinc has been provided write access to the SimpleMultiProjectPlugin repository.

Hi Ryan,

since I couldn't register the user name Cinc for some reason (the register page didn't give any hint what went wrong), can you switch over the permissions to Cinc-th?

Regards Cinc

comment:15 in reply to: ↑ 10 Changed 13 months ago by Cinc-th

Replying to falkb:

testing result on project remove testtest :

  File "build\bdist.win32\egg\simplemultiproject\model.py", line 241, in execute_sql_statement
    for id in ids_projects:
TypeError: 'int' object is not iterable

Hi falkb,

been some time... But it's not forgotten.

I've got some idea why the command failed for you. Will update the patch asap.

comment:16 Changed 13 months ago by Cinc-th

  • Owner changed from falkb to Cinc-th
  • Status changed from new to accepted

Changed 13 months ago by Cinc-th

Revised admin command prlugin fixing trap. Some imporvements and documentation.

comment:17 Changed 13 months ago by Cinc-th

Hi falkb,

the new admin_command.2.py fixes your trap. The __init__.py patch is still necessary.

I added some documentation and improved some of the commands slightly.

regards Cinc

Last edited 13 months ago by Cinc-th (previous) (diff)

comment:18 Changed 13 months ago by falkb

Hi Cinc-th, I've tested and your new patch works great. Thanks a lot! I just suggest to change the default behaviour of 'project list' to the short one, and use a parameter 'detailed' for showing it with all bells and whistles, what do you think about this?

Changed 13 months ago by Cinc-th

Changed defualt list action from detailed to short.

comment:19 Changed 13 months ago by Cinc-th

Well, I had a very distinct reason to present the detailed list as default.

By now I have forgotten what it was so I changed it as you suggested :-). See attachement admin_command.(3).py.

comment:20 Changed 13 months ago by falkb

Yeah, cool, I think this way a "project list" wont bury with a text avalanche.

What are your next plans about this SimpleMultiProjectPlugin? And do you want to commit this patch by yourself? Looks like you're seeing through here. Maybe, if you want to join in contributing to this plugin, you can give a few more hints about yourself, you know what I mean... Cheers, falkb

comment:21 Changed 13 months ago by falkb

Now I've seen you are already active here: wiki:Cinc-th Didn't know that :-)

comment:22 Changed 13 months ago by falkb

  • Resolution set to fixed
  • Status changed from accepted to closed

In 14585:

Close #11160: Now the trac-admin script supports a bunch of command for 'project'. All you can configure via web-interface is also possible via command line now. Thanks to Cinc-th for the nice patch.

comment:23 in reply to: ↑ 14 Changed 13 months ago by rjollos

Replying to Cinc-th:

Hi Ryan,

since I couldn't register the user name Cinc for some reason (the register page didn't give any hint what went wrong), can you switch over the permissions to Cinc-th?

Regards Cinc

I'll contact you by email to discuss.

comment:24 Changed 3 months ago by rjollos

In 15391:

0.5.1dev: Fix incorrect import from [14585]

Refs #11160.

Add Comment

Modify Ticket

Action
as closed The owner will remain Cinc-th.
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.