svn commit: r1524352 [1/3] - in /bloodhound/branches/livesyntaxhighlighting: ./ bloodhound_livesyntaxhighlighting/ bloodhound_livesyntaxhighlighting/bhlivesyntaxhighlight/ bloodhound_livesyntaxhighlig

2013-09-18 Thread anoopknayak
Author: anoopknayak
Date: Wed Sep 18 09:36:49 2013
New Revision: 1524352

URL: http://svn.apache.org/r1524352
Log:
First commit after making the bloodhound LiveSyntaxHighlightingPlugin

Added:

bloodhound/branches/livesyntaxhighlighting/bloodhound_livesyntaxhighlighting/   
(with props)

bloodhound/branches/livesyntaxhighlighting/bloodhound_livesyntaxhighlighting/bhlivesyntaxhighlight/

bloodhound/branches/livesyntaxhighlighting/bloodhound_livesyntaxhighlighting/bhlivesyntaxhighlight/__init__.py
   (with props)

bloodhound/branches/livesyntaxhighlighting/bloodhound_livesyntaxhighlighting/bhlivesyntaxhighlight/bhlivesyntaxhighlight.py
   (with props)

bloodhound/branches/livesyntaxhighlighting/bloodhound_livesyntaxhighlighting/bhlivesyntaxhighlight/htdocs/

bloodhound/branches/livesyntaxhighlighting/bloodhound_livesyntaxhighlighting/bhlivesyntaxhighlight/htdocs/css/

bloodhound/branches/livesyntaxhighlighting/bloodhound_livesyntaxhighlighting/bhlivesyntaxhighlight/htdocs/css/codemirror.css
   (with props)

bloodhound/branches/livesyntaxhighlighting/bloodhound_livesyntaxhighlighting/bhlivesyntaxhighlight/htdocs/css/wikimarkup.css
   (with props)

bloodhound/branches/livesyntaxhighlighting/bloodhound_livesyntaxhighlighting/bhlivesyntaxhighlight/htdocs/js/

bloodhound/branches/livesyntaxhighlighting/bloodhound_livesyntaxhighlighting/bhlivesyntaxhighlight/htdocs/js/codemirror.js
   (with props)

bloodhound/branches/livesyntaxhighlighting/bloodhound_livesyntaxhighlighting/bhlivesyntaxhighlight/htdocs/js/livesyntaxhighlight.js
   (with props)

bloodhound/branches/livesyntaxhighlighting/bloodhound_livesyntaxhighlighting/bhlivesyntaxhighlight/htdocs/js/wikimarkup.js
   (with props)

bloodhound/branches/livesyntaxhighlighting/bloodhound_livesyntaxhighlighting/bhlivesyntaxhighlight/templates/

bloodhound/branches/livesyntaxhighlighting/bloodhound_livesyntaxhighlighting/setup.py
   (with props)
Modified:
bloodhound/branches/livesyntaxhighlighting/   (props changed)
bloodhound/branches/livesyntaxhighlighting/.gitignore

Propchange: bloodhound/branches/livesyntaxhighlighting/
--
--- svn:global-ignores (added)
+++ svn:global-ignores Wed Sep 18 09:36:49 2013
@@ -0,0 +1 @@
+tracdeveloperplugin

Modified: bloodhound/branches/livesyntaxhighlighting/.gitignore
URL: 
http://svn.apache.org/viewvc/bloodhound/branches/livesyntaxhighlighting/.gitignore?rev=1524352r1=1524351r2=1524352view=diff
==
--- bloodhound/branches/livesyntaxhighlighting/.gitignore (original)
+++ bloodhound/branches/livesyntaxhighlighting/.gitignore Wed Sep 18 09:36:49 
2013
@@ -6,3 +6,4 @@
 *.rej
 .svn
 installer/bloodhound
+tracdeveloperplugin
\ No newline at end of file

Propchange: 
bloodhound/branches/livesyntaxhighlighting/bloodhound_livesyntaxhighlighting/
--
--- svn:global-ignores (added)
+++ svn:global-ignores Wed Sep 18 09:36:49 2013
@@ -0,0 +1,3 @@
+*.codeintel
+*.sublime-project
+*.sublime-workspace

Added: 
bloodhound/branches/livesyntaxhighlighting/bloodhound_livesyntaxhighlighting/bhlivesyntaxhighlight/__init__.py
URL: 
http://svn.apache.org/viewvc/bloodhound/branches/livesyntaxhighlighting/bloodhound_livesyntaxhighlighting/bhlivesyntaxhighlight/__init__.py?rev=1524352view=auto
==
--- 
bloodhound/branches/livesyntaxhighlighting/bloodhound_livesyntaxhighlighting/bhlivesyntaxhighlight/__init__.py
 (added)
+++ 
bloodhound/branches/livesyntaxhighlighting/bloodhound_livesyntaxhighlighting/bhlivesyntaxhighlight/__init__.py
 Wed Sep 18 09:36:49 2013
@@ -0,0 +1,16 @@
+#  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.
\ No newline at end of file

Propchange: 
bloodhound/branches/livesyntaxhighlighting/bloodhound_livesyntaxhighlighting/bhlivesyntaxhighlight/__init__.py
--
svn:eol-style = native

Added: 

svn commit: r1524352 [3/3] - in /bloodhound/branches/livesyntaxhighlighting: ./ bloodhound_livesyntaxhighlighting/ bloodhound_livesyntaxhighlighting/bhlivesyntaxhighlight/ bloodhound_livesyntaxhighlig

2013-09-18 Thread anoopknayak
Propchange: 
bloodhound/branches/livesyntaxhighlighting/bloodhound_livesyntaxhighlighting/bhlivesyntaxhighlight/htdocs/js/codemirror.js
--
svn:eol-style = native

Added: 
bloodhound/branches/livesyntaxhighlighting/bloodhound_livesyntaxhighlighting/bhlivesyntaxhighlight/htdocs/js/livesyntaxhighlight.js
URL: 
http://svn.apache.org/viewvc/bloodhound/branches/livesyntaxhighlighting/bloodhound_livesyntaxhighlighting/bhlivesyntaxhighlight/htdocs/js/livesyntaxhighlight.js?rev=1524352view=auto
==
--- 
bloodhound/branches/livesyntaxhighlighting/bloodhound_livesyntaxhighlighting/bhlivesyntaxhighlight/htdocs/js/livesyntaxhighlight.js
 (added)
+++ 
bloodhound/branches/livesyntaxhighlighting/bloodhound_livesyntaxhighlighting/bhlivesyntaxhighlight/htdocs/js/livesyntaxhighlight.js
 Wed Sep 18 09:36:49 2013
@@ -0,0 +1,45 @@
+//Defining a class for livesyntaxhighlight related stuff.
+livesyntaxhighlight = {
+  twidth : ,
+  theight : ,
+  cmwidth : ,
+  cmheight : ,
+  editor : null,
+  //Initializing function
+  init : function () {
+twidth = $('#text').width();
+theight = $('#text').height();
+editor = CodeMirror.fromTextArea(document.getElementById(text), {
+lineNumbers: true,
+matchBrackets: true,
+continueComments: Enter,
+extraKeys: {Ctrl-Q: toggleComment}
+  });
+console.log($('#text').width() + ' '+ $('#text').height());
+livesyntaxhighlight.resizeCodeMirror();
+editor.refresh();
+$(window).resize(livesyntaxhighlight.resizeCodeMirror);
+  },
+  resizeCodeMirror : function (){
+console.log($('#text').width() + ' '+ $('#text').height());
+var spanwidth = $('.span12').width()/2 - 15;
+cmwidth = window.twidth;
+if ($('.span12').width()  688  
document.getElementById('sidebyside').checked)
+  cmwidth = spanwidth;
+else cmwidth = 2 * (spanwidth +15);
+cmheight = $('#text').height();
+// if(document.getElementById('preview'))
+//   cmheight = $('#preview').height();
+editor.setSize(cmwidth, cmheight);
+editor.refresh();
+  }
+};
+// Invoked initially to initialize the editor
+$(document).ready(function (){
+  livesyntaxhighlight.init();
+});
+// To adjust the height of the editor
+$(#editrows).change(function(){
+  var twidth = livesyntaxhighlight.cmwidth;
+  editor.setSize(twidth, this.options[this.selectedIndex].value*13);
+});
\ No newline at end of file

Propchange: 
bloodhound/branches/livesyntaxhighlighting/bloodhound_livesyntaxhighlighting/bhlivesyntaxhighlight/htdocs/js/livesyntaxhighlight.js
--
svn:eol-style = native

Added: 
bloodhound/branches/livesyntaxhighlighting/bloodhound_livesyntaxhighlighting/bhlivesyntaxhighlight/htdocs/js/wikimarkup.js
URL: 
http://svn.apache.org/viewvc/bloodhound/branches/livesyntaxhighlighting/bloodhound_livesyntaxhighlighting/bhlivesyntaxhighlight/htdocs/js/wikimarkup.js?rev=1524352view=auto
==
--- 
bloodhound/branches/livesyntaxhighlighting/bloodhound_livesyntaxhighlighting/bhlivesyntaxhighlight/htdocs/js/wikimarkup.js
 (added)
+++ 
bloodhound/branches/livesyntaxhighlighting/bloodhound_livesyntaxhighlighting/bhlivesyntaxhighlight/htdocs/js/wikimarkup.js
 Wed Sep 18 09:36:49 2013
@@ -0,0 +1,330 @@
+CodeMirror.defineMode('wikimarkup', function(config) {
+function inBlock(style, terminator, returnTokenizer) {
+return function(stream, state) {
+while (!stream.eol()) {
+if (stream.match(terminator)) {
+state.tokenize = inText;
+break;
+}
+stream.next();
+}
+
+if (returnTokenizer) state.tokenize = returnTokenizer;
+
+return style;
+};
+}
+
+function inLine(style) {
+return function(stream, state) {
+while(!stream.eol()) {
+stream.next();
+}
+state.tokenize = inText;
+return style;
+};
+}
+
+function inText(stream, state) {
+function chain(parser) {
+state.tokenize = parser;
+return parser(stream, state);
+}
+
+var sol = stream.sol();
+var ch = stream.next();
+
+//non start of line
+switch (ch) { //switch is generally much faster than if, so it is used 
here
+case {: //plugin
+stream.eat(/);
+stream.eatSpace();
+var tagName = ;
+var c;
+while ((c = stream.eat(/[^\s\u00a0=\\'\/?(}]/))) tagName += c;
+state.tokenize = inPlugin;
+return tag;
+break;
+case '*': //bold or wikicreole or bold italic
+

[Apache Bloodhound] New user registration: ralienpp

2013-09-18 Thread Apache Bloodhound
New user registration for user ralienpp

--
Apache Bloodhound https://issues.apache.org/bloodhound/
The Apache Bloodhound issue tracker



[Apache Bloodhound] #661: Loss of user input

2013-09-18 Thread Apache Bloodhound
#661: Loss of user input
---+
 Reporter:  ralienpp   |  Owner:  nobody
 Type:  defect | Status:  new
 Priority:  major  |  Milestone:
Component:  ui design  |Version:
 Keywords: |
---+
 There are several cases in which user input is lost:

 * When a new ticket is created, I use the minimalist form to provide some
 data. If I realize I want the fully blown version and click ''Full
 Dialogue'' - I am presented with a new form, where all the fields are
 '''empty'''. They should be populated with the data from the earlier form.

 * When I create a new product and some of the fields are not filled out,
 the page reloads with a ''Not all data provided'' error, and the form is
 '''empty''' - so I have to type everything again.

 Perhaps JavaScript could be used to validate input before submitting it?

-- 
Ticket URL: https://issues.apache.org/bloodhound/ticket/661
Apache Bloodhound https://issues.apache.org/bloodhound/
The Apache Bloodhound issue tracker


svn commit: r1524519 - /bloodhound/branches/livesyntaxhighlighting/bloodhound_livesyntaxhighlighting/bhlivesyntaxhighlight/htdocs/js/livesyntaxhighlight.js

2013-09-18 Thread anoopknayak
Author: anoopknayak
Date: Wed Sep 18 18:32:44 2013
New Revision: 1524519

URL: http://svn.apache.org/r1524519
Log: (empty)

Modified:

bloodhound/branches/livesyntaxhighlighting/bloodhound_livesyntaxhighlighting/bhlivesyntaxhighlight/htdocs/js/livesyntaxhighlight.js

Modified: 
bloodhound/branches/livesyntaxhighlighting/bloodhound_livesyntaxhighlighting/bhlivesyntaxhighlight/htdocs/js/livesyntaxhighlight.js
URL: 
http://svn.apache.org/viewvc/bloodhound/branches/livesyntaxhighlighting/bloodhound_livesyntaxhighlighting/bhlivesyntaxhighlight/htdocs/js/livesyntaxhighlight.js?rev=1524519r1=1524518r2=1524519view=diff
==
--- 
bloodhound/branches/livesyntaxhighlighting/bloodhound_livesyntaxhighlighting/bhlivesyntaxhighlight/htdocs/js/livesyntaxhighlight.js
 (original)
+++ 
bloodhound/branches/livesyntaxhighlighting/bloodhound_livesyntaxhighlighting/bhlivesyntaxhighlight/htdocs/js/livesyntaxhighlight.js
 Wed Sep 18 18:32:44 2013
@@ -53,8 +53,8 @@ $(document).ready(function (){
   // To adjust the height of the editor
   $(#editrows).change(function(){
 var twidth = livesyntaxhighlight.cmwidth;
-// livesyntaxhighlight.editor.setSize(twidth, 
-  // this.options[this.selectedIndex].value*13);
+livesyntaxhighlight.editor.setSize(twidth, 
+  this.options[this.selectedIndex].value*13);
   });
   //Functions to hook in the wikitoolbar
   $(#strong).click(function () {




svn commit: r1524626 - in /bloodhound/trunk: bloodhound_multiproduct/multiproduct/config.py bloodhound_search/bhsearch/tests/base.py

2013-09-18 Thread rjollos
Author: rjollos
Date: Thu Sep 19 05:48:49 2013
New Revision: 1524626

URL: http://svn.apache.org/r1524626
Log:
0.8dev: Replaced instances of `has_key` with `in` operator.

Related to trac:#11306.

Modified:
bloodhound/trunk/bloodhound_multiproduct/multiproduct/config.py
bloodhound/trunk/bloodhound_search/bhsearch/tests/base.py

Modified: bloodhound/trunk/bloodhound_multiproduct/multiproduct/config.py
URL: 
http://svn.apache.org/viewvc/bloodhound/trunk/bloodhound_multiproduct/multiproduct/config.py?rev=1524626r1=1524625r2=1524626view=diff
==
--- bloodhound/trunk/bloodhound_multiproduct/multiproduct/config.py (original)
+++ bloodhound/trunk/bloodhound_multiproduct/multiproduct/config.py Thu Sep 19 
05:48:49 2013
@@ -169,7 +169,7 @@ class Section(Section):
 for parent in self.config.parents:
 if parent[self.name].contains(key, defaults=False):
 return True
-return defaults and Option.registry.has_key((self.name, key))
+return defaults and (self.name, key) in Option.registry
 
 __contains__ = contains
 

Modified: bloodhound/trunk/bloodhound_search/bhsearch/tests/base.py
URL: 
http://svn.apache.org/viewvc/bloodhound/trunk/bloodhound_search/bhsearch/tests/base.py?rev=1524626r1=1524625r2=1524626view=diff
==
--- bloodhound/trunk/bloodhound_search/bhsearch/tests/base.py (original)
+++ bloodhound/trunk/bloodhound_search/bhsearch/tests/base.py Thu Sep 19 
05:48:49 2013
@@ -131,7 +131,7 @@ class BaseBloodhoundSearchTest(unittest.
 url, data, x = BloodhoundSearchModule(self.env).process_request(
 self.req)
 self.env.log.debug(Received url: %s data: %s, url, data)
-if data.has_key(results):
+if 'results' in data:
 self.env.log.debug(results: %s, data[results].__dict__)
 return data
 




Re: [Apache Bloodhound] #598: Product InterTrac and InterWiki

2013-09-18 Thread Apache Bloodhound
#598: Product InterTrac and InterWiki
-+-
  Reporter:  olemis  |  Owner:  rjollos
  Type:  | Status:  review
  enhancement|  Milestone:  Release 8
  Priority:  major   |Version:  0.6.0
 Component:  |   Keywords:  wiki, TracLinks, product change
  multiproduct   |  listener
Resolution:  |
-+-
Changes (by rjollos):

 * owner:   = rjollos


-- 
Ticket URL: https://issues.apache.org/bloodhound/ticket/598#comment:8
Apache Bloodhound https://issues.apache.org/bloodhound/
The Apache Bloodhound issue tracker