Permalink
Browse files

added source code and tagged as v0.1

  • Loading branch information...
1 parent c592036 commit ab7afea503198a4e6d05ff32019958aa24ae6474 @thomasklein committed Jan 18, 2010
View
@@ -0,0 +1,29 @@
+from setuptools import find_packages, setup
+
+version='0.1'
+
+setup(
+ name='Trac2mite',
+ version=version,
+ description="Trac2mite connects your Trac account with your mite.account. Track your time easily on issues within Trac (requires 'TracHoursPlugin') and get them automatically send to mite.",
+ packages=find_packages(exclude=['*.tests*']),
+ author="Yolk - Sebastian Munz & Julia Soergel GbR / Thomas Klein",
+ author_email='thomas.klein83@gmail.com',
+ url="http://github.com/thomasklein/Trac2mite",
+ keywords="trac plugin mite yolk",
+ license="MIT License",
+ install_requires=['TracHoursPlugin'],
+ dependency_links=['http://trac-hacks.org/svn/trachoursplugin/0.11'],
+ include_package_data=True,
+ package_data={'trac2mite': ['templates/*.html',
+ 'htdocs/css/*.css',
+ 'htdocs/js/*.js',
+ 'htdocs/images/*']},
+ entry_points = """
+ [trac.plugins]
+ trac2mite.trac2mite = trac2mite.trac2mite
+ trac2mite.setup = trac2mite.setup
+ trac2mite.userprefs = trac2mite.userprefs
+ trac2mite.web_ui = trac2mite.web_ui
+ """
+)
@@ -0,0 +1,2 @@
+# trac2mite module
+from trac2mite import *
View
@@ -0,0 +1,16 @@
+from trac.core import *
+
+# new interface to define ExtensionPoints in TracHoursPlugin
+class ITracHoursPluginListener(Interface):
+
+ def after_ticket_time_created(ticket_time):
+ """Called when a ticket time is created."""
+
+ def before_ticket_times_updated(ticket_times):
+ """Called when ticket times are modified"""
+
+ def before_ticket_times_deleted(self,ticket_times_ids):
+ """Called before ticket times get's deleted """
+
+ def before_process_request(req, ticket_id):
+ """Called when a TracHoursPlugin page is requested"""
@@ -0,0 +1,187 @@
+/* @group Plugin config */
+
+#mite_config {
+ width:500px;
+ margin: 1em 0;
+ border: 1px solid #aaa;
+ padding: 0.5em;
+ background:#F6F6F6;
+}
+
+#mite_config h2 {
+ font-size: 12pt;
+ background: #62c1cd;
+ color: white;
+ padding: 0.25em;
+ margin: 0;
+}
+
+#mite_config .config_fields {
+ padding: 0.25em;
+}
+
+#mite_config p.bindings_help {
+
+ color: #888888;
+ font-size: 90%;
+ line-height: 150%;
+ margin: 0 0 0.5em 0;
+}
+
+#mite_config hr {
+ border: 0;
+ border-top: 1px solid #aaa;
+ padding-bottom: 0.5em;
+}
+
+#mite_config label {
+ display: block;
+ font-weight: bold;
+ margin: 0.7em 0 0.25em 0;
+}
+
+
+#mite_config fieldset {
+ border: 1px solid #aaa;
+ margin-top: 2em;
+}
+
+#mite_config fieldset legend {
+ font-style: italic;
+}
+
+#mite_config input.readonly {
+ color: #666;
+}
+
+
+#mite_config span.linkChangeValue {
+ float: right;
+ margin-right: 12em;
+}
+
+#mite_config a,#mite_config a:visited {
+ color: #5e7edb;
+}
+
+#mite_config .readonly {
+ color: #666;
+}
+
+div.mite_connection_active {
+ background: url(../images/mite-logo-active.png) no-repeat right bottom;
+}
+
+div.mite_connection_inactive {
+ background: url(../images/mite-logo-inactive.png) no-repeat right bottom;
+}
+
+div.mite_connection_status_msg {
+ padding: .3em;
+ margin: 0.5em 0;
+ font-size: 80%;
+}
+
+div.mite_connection_active div.mite_connection_status_msg {
+ border: 1px solid #C6D880;
+ background: #E6EFC2;
+ color: #529214;
+}
+
+div.mite_connection_inactive div.mite_connection_status_msg {
+ background: #FBE3E4;
+ color: #D12F19;
+ border: 1px solid #FBC2C4;
+}
+
+div.mite_connection_status_msg small {
+ font-size: 90%;
+}
+
+
+#mite_config .formularButtons {
+ margin: 1.5em 0 0.5em 0;
+ padding: 0;
+}
+
+#mite_config .formularButtons .buttonsLeft {
+ float: left;
+ padding: 0;
+
+}
+
+#mite_config .formularButtons .buttonsRight {
+ float: right;
+ padding: 0;
+
+}
+
+#mite_config .formularButtons .clearBoth {
+ clear: both;
+}
+
+#mite_config .readonly {
+ color: #666666;
+}
+
+
+#mite_user_bindings .note_pattern {
+ width: 95%;
+}
+
+#mite_account_name {
+ width: 135px;
+}
+
+#mite_api_key {
+ width: 255px;
+}
+
+.mite_notifier {
+ background: url(../images/indicator.gif) no-repeat left center;
+ margin: 0 auto;
+ padding-left: 12px;
+ width: 12px;
+ color: transparent;
+ display: none;
+}
+
+#mite_link_change_api_key {
+ padding: 0.25em;
+ text-decoration: none;
+}
+
+#mite_link_change_api_key:hover {
+ -moz-border-radius:5px;
+ -khtml-border-radius:5px;
+ text-shadow: 0 1px 1px #E6D0C9;
+ background-color: #5e7edb;
+ color: white !important;
+ cursor: pointer;
+}
+
+/* @end */
+
+/* @group no javascript */
+
+.mite_text_if_no_javascript {
+ background: #FBE3E4;
+ color: #D12F19;
+ border: 1px solid #FBC2C4;
+ padding: 0.3em;
+ font-weight: normal;
+ font-size: 90%;
+ width: 200px;
+ margin: 1em auto;
+
+}
+
+.mite_hide_if_no_javascript {
+ display: none;
+}
+
+
+/* @end */
+
+
+
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.

0 comments on commit ab7afea

Please sign in to comment.