Author: dammina
Date: Sun Aug 24 03:03:03 2014
New Revision: 1620100
URL: http://svn.apache.org/r1620100
Log:
removed the dependencies to trac/ticket midule.
Modified:
bloodhound/branches/bep_0011_batch_create_tickets/bloodhound_theme/bhtheme/htdocs/js/batchcreate.js
bloodhound/branches/bep_0011_batch_create_tickets/trac/trac/ticket/model.py
Modified:
bloodhound/branches/bep_0011_batch_create_tickets/bloodhound_theme/bhtheme/htdocs/js/batchcreate.js
URL:
http://svn.apache.org/viewvc/bloodhound/branches/bep_0011_batch_create_tickets/bloodhound_theme/bhtheme/htdocs/js/batchcreate.js?rev=1620100&r1=1620099&r2=1620100&view=diff
==============================================================================
---
bloodhound/branches/bep_0011_batch_create_tickets/bloodhound_theme/bhtheme/htdocs/js/batchcreate.js
(original)
+++
bloodhound/branches/bep_0011_batch_create_tickets/bloodhound_theme/bhtheme/htdocs/js/batchcreate.js
Sun Aug 24 03:03:03 2014
@@ -1,3 +1,22 @@
+/*
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+ */
+
function emptyTable(numOfRows,product,milestones,components,href,token) {
/*
This function will be invoked from the BatchCreateTickets wiki macro.
@@ -515,4 +534,4 @@ function display_created_tickets(ticket)
}
div.appendChild(table);
contentDiv.appendChild(div);
- }
\ No newline at end of file
+ }
Modified:
bloodhound/branches/bep_0011_batch_create_tickets/trac/trac/ticket/model.py
URL:
http://svn.apache.org/viewvc/bloodhound/branches/bep_0011_batch_create_tickets/trac/trac/ticket/model.py?rev=1620100&r1=1620099&r2=1620100&view=diff
==============================================================================
--- bloodhound/branches/bep_0011_batch_create_tickets/trac/trac/ticket/model.py
(original)
+++ bloodhound/branches/bep_0011_batch_create_tickets/trac/trac/ticket/model.py
Sun Aug 24 03:03:03 2014
@@ -109,20 +109,6 @@ class Ticket(object):
if default:
self.values.setdefault(field['name'], default)
- def _get_max_ticket_id(self):
- return self.env.db_query("SELECT MAX(id) FROM ticket")
-
- def _get_tickets_by_id(self, tkt_id):
- #this method returns standard ticket fields of all the tickets which
have a ticket id over the parameter id value
- row = None
- if self.id>=tkt_id:
- # Fetch the standard ticket fields
- return self.env.db_query("SELECT %s FROM ticket WHERE id>=%%s" %
- ','.join(self.std_fields), (tkt_id,))
- else:
- raise ResourceNotFound(_("Ticket %(id)s does not exist.",
- id=self.id), _("Invalid ticket number"))
-
def _fetch_ticket(self, tkt_id):
row = None
if self.id_is_valid(tkt_id):