[Zorba-coders] [Merge] lp:~zorba-coders/zorba/bug-1188062 into lp:zorba/queue-module

2013-07-17 Thread Chris Hillery
The proposal to merge lp:~zorba-coders/zorba/bug-1188062 into 
lp:zorba/queue-module has been updated.

Description changed to:

Might as well bring in 
https://code.launchpad.net/~zorba-coders/zorba/bug-1188061/+merge/169553 too.

For more details, see:
https://code.launchpad.net/~zorba-coders/zorba/bug-1188062/+merge/169946
-- 
https://code.launchpad.net/~zorba-coders/zorba/bug-1188062/+merge/169946
Your team Zorba Coders is subscribed to branch lp:zorba/queue-module.

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Merge] lp:~zorba-coders/zorba/bug-1188062 into lp:zorba/queue-module

2013-07-17 Thread Zorba Build Bot
Validation queue starting for the following merge proposals:
https://code.launchpad.net/~zorba-coders/zorba/bug-1188062/+merge/169946
https://code.launchpad.net/~zorba-coders/zorba/bug-1188061/+merge/169553

Progress dashboard at http://jenkins.lambda.nu/view/ValidationQueue
-- 
https://code.launchpad.net/~zorba-coders/zorba/bug-1188062/+merge/169946
Your team Zorba Coders is subscribed to branch lp:zorba/queue-module.

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Merge] lp:~zorba-coders/zorba/bug-1188062 into lp:zorba/queue-module

2013-07-17 Thread Zorba Build Bot
Validation queue succeeded - proposal merged!
-- 
https://code.launchpad.net/~zorba-coders/zorba/bug-1188062/+merge/169946
Your team Zorba Coders is subscribed to branch lp:zorba/queue-module.

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Merge] lp:~zorba-coders/zorba/bug-1188062 into lp:zorba/queue-module

2013-07-17 Thread noreply
The proposal to merge lp:~zorba-coders/zorba/bug-1188062 into 
lp:zorba/queue-module has been updated.

Status: Approved = Merged

For more details, see:
https://code.launchpad.net/~zorba-coders/zorba/bug-1188062/+merge/169946
-- 
https://code.launchpad.net/~zorba-coders/zorba/bug-1188062/+merge/169946
Your team Zorba Coders is subscribed to branch lp:zorba/queue-module.

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


Re: [Zorba-coders] [Merge] lp:~zorba-coders/zorba/bug-1188062 into lp:zorba/queue-module

2013-07-16 Thread Chris Hillery
Review: Approve


-- 
https://code.launchpad.net/~zorba-coders/zorba/bug-1188062/+merge/169946
Your team Zorba Coders is subscribed to branch lp:zorba/queue-module.

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Merge] lp:~zorba-coders/zorba/bug-1188062 into lp:zorba/queue-module

2013-07-16 Thread Chris Hillery
The proposal to merge lp:~zorba-coders/zorba/bug-1188062 into 
lp:zorba/queue-module has been updated.

Description changed to:

https://code.launchpad.net/~zorba-coders/zorba/xqdoc-private-variables/+merge/175166

For more details, see:
https://code.launchpad.net/~zorba-coders/zorba/bug-1188062/+merge/169946
-- 
https://code.launchpad.net/~zorba-coders/zorba/bug-1188062/+merge/169946
Your team Zorba Coders is subscribed to branch lp:zorba/queue-module.

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Merge] lp:~zorba-coders/zorba/bug-1188062 into lp:zorba/queue-module

2013-07-16 Thread Chris Hillery
The proposal to merge lp:~zorba-coders/zorba/bug-1188062 into 
lp:zorba/queue-module has been updated.

Commit Message changed to:

Update to 3.0 module guidelines; make JSON-ready.

For more details, see:
https://code.launchpad.net/~zorba-coders/zorba/bug-1188062/+merge/169946
-- 
https://code.launchpad.net/~zorba-coders/zorba/bug-1188062/+merge/169946
Your team Zorba Coders is subscribed to branch lp:zorba/queue-module.

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


Re: [Zorba-coders] [Merge] lp:~zorba-coders/zorba/bug-1188062 into lp:zorba/queue-module

2013-07-16 Thread Luis Rodriguez Gonzalez
Review: Approve


-- 
https://code.launchpad.net/~zorba-coders/zorba/bug-1188062/+merge/169946
Your team Zorba Coders is subscribed to branch lp:zorba/queue-module.

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Merge] lp:~zorba-coders/zorba/bug-1188062 into lp:zorba/queue-module

2013-07-16 Thread Luis Rodriguez Gonzalez
The proposal to merge lp:~zorba-coders/zorba/bug-1188062 into 
lp:zorba/queue-module has been updated.

Status: Needs review = Approved

For more details, see:
https://code.launchpad.net/~zorba-coders/zorba/bug-1188062/+merge/169946
-- 
https://code.launchpad.net/~zorba-coders/zorba/bug-1188062/+merge/169946
Your team Zorba Coders is subscribed to branch lp:zorba/queue-module.

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Merge] lp:~zorba-coders/zorba/bug-1188062 into lp:zorba/queue-module

2013-07-16 Thread Chris Hillery
The proposal to merge lp:~zorba-coders/zorba/bug-1188062 into 
lp:zorba/queue-module has been updated.

Description changed to:

Depends on 
https://code.launchpad.net/~zorba-coders/zorba/xqdoc-private-variables/+merge/175166,
 and might as well bring in 
https://code.launchpad.net/~zorba-coders/zorba/bug-1188061/+merge/169553 too.

For more details, see:
https://code.launchpad.net/~zorba-coders/zorba/bug-1188062/+merge/169946
-- 
https://code.launchpad.net/~zorba-coders/zorba/bug-1188062/+merge/169946
Your team Zorba Coders is subscribed to branch lp:zorba/queue-module.

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Merge] lp:~zorba-coders/zorba/bug-1188062 into lp:zorba/queue-module

2013-07-16 Thread Zorba Build Bot
Validation queue starting for the following merge proposals:
https://code.launchpad.net/~zorba-coders/zorba/bug-1188062/+merge/169946
https://code.launchpad.net/~zorba-coders/zorba/xqdoc-private-variables/+merge/175166
https://code.launchpad.net/~zorba-coders/zorba/bug-1188061/+merge/169553

Progress dashboard at http://jenkins.lambda.nu/view/ValidationQueue
-- 
https://code.launchpad.net/~zorba-coders/zorba/bug-1188062/+merge/169946
Your team Zorba Coders is subscribed to branch lp:zorba/queue-module.

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Merge] lp:~zorba-coders/zorba/bug-1188062 into lp:zorba/queue-module

2013-07-16 Thread Zorba Build Bot
Validation queue result for 
https://code.launchpad.net/~zorba-coders/zorba/bug-1188062/+merge/169946

Stage TestZorbaUbuntu failed.
4 tests failed (8355 total tests run).

Check test results at 
http://jenkins.lambda.nu/job/TestZorbaUbuntu/86/testReport/ to view the results.
-- 
https://code.launchpad.net/~zorba-coders/zorba/bug-1188062/+merge/169946
Your team Zorba Coders is subscribed to branch lp:zorba/queue-module.

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Merge] lp:~zorba-coders/zorba/bug-1188062 into lp:zorba/queue-module

2013-07-16 Thread Zorba Build Bot
Validation queue starting for the following merge proposals:
https://code.launchpad.net/~zorba-coders/zorba/bug-1188062/+merge/169946
https://code.launchpad.net/~zorba-coders/zorba/xqdoc-private-variables/+merge/175166
https://code.launchpad.net/~zorba-coders/zorba/bug-1188061/+merge/169553

Progress dashboard at http://jenkins.lambda.nu/view/ValidationQueue
-- 
https://code.launchpad.net/~zorba-coders/zorba/bug-1188062/+merge/169946
Your team Zorba Coders is subscribed to branch lp:zorba/queue-module.

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Merge] lp:~zorba-coders/zorba/bug-1188062 into lp:zorba/queue-module

2013-07-16 Thread Zorba Build Bot
Validation queue result for 
https://code.launchpad.net/~zorba-coders/zorba/bug-1188062/+merge/169946

Stage TestZorbaUbuntu failed.
2 tests failed (8355 total tests run).

Check test results at 
http://jenkins.lambda.nu/job/TestZorbaUbuntu/87/testReport/ to view the results.
-- 
https://code.launchpad.net/~zorba-coders/zorba/bug-1188062/+merge/169946
Your team Zorba Coders is subscribed to branch lp:zorba/queue-module.

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


Re: [Zorba-coders] [Merge] lp:~zorba-coders/zorba/bug-1188062 into lp:zorba/queue-module

2013-07-09 Thread Chris Hillery
Review: Needs Fixing

1. Error QNames should not be declared as public constants (see coding 
guidelines). Declare them as private variables as follows:

declare %private variable $queue:NOT-EXISTS as xs:QName := 
fn:QName($queue:ERR-NS, queue:NOT-EXISTS);

2. The current XQDoc for those error QNames is pointless. Either eliminate the 
XQDoc entirely, or put in some meaningful comment (only for later authors of 
the module since it won't be part of the public API).

3. The XQDoc for all the queue functions refers to nodes. It should now say 
items since it works for objects and arrays in addition to nodes.
-- 
https://code.launchpad.net/~zorba-coders/zorba/bug-1188062/+merge/169946
Your team Zorba Coders is subscribed to branch lp:zorba/queue-module.

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


Re: [Zorba-coders] [Merge] lp:~zorba-coders/zorba/bug-1188062 into lp:zorba/queue-module

2013-07-05 Thread Luis Rodriguez Gonzalez
 See the updated task description on the bug report. Also, see the updated
 coding guidelines for p and error codes.

Documentation and code problems fixed, please check it again.
-- 
https://code.launchpad.net/~zorba-coders/zorba/bug-1188062/+merge/169946
Your team Zorba Coders is subscribed to branch lp:zorba/queue-module.

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp


[Zorba-coders] [Merge] lp:~zorba-coders/zorba/bug-1188062 into lp:zorba/queue-module

2013-06-17 Thread Luis Rodriguez Gonzalez
Luis Rodriguez Gonzalez has proposed merging lp:~zorba-coders/zorba/bug-1188062 
into lp:zorba/queue-module.

Requested reviews:
  Luis Rodriguez Gonzalez (kuraru)
  Chris Hillery (ceejatec)

For more details, see:
https://code.launchpad.net/~zorba-coders/zorba/bug-1188062/+merge/169946
-- 
https://code.launchpad.net/~zorba-coders/zorba/bug-1188062/+merge/169946
Your team Zorba Coders is subscribed to branch lp:zorba/queue-module.
=== modified file 'src/CMakeLists.txt'
--- src/CMakeLists.txt	2012-02-29 09:08:58 +
+++ src/CMakeLists.txt	2013-06-17 21:13:28 +
@@ -15,6 +15,6 @@
 
 # Queue data structure
 
-DECLARE_ZORBA_MODULE (URI http://www.zorba-xquery.com/modules/store/data-structures/queue; VERSION 1.0 FILE queue.xq)
+DECLARE_ZORBA_MODULE (URI http://zorba.io/modules/queue; VERSION 1.0 FILE queue.xq)
 
 ADD_TEST_DIRECTORY(${PROJECT_SOURCE_DIR}/test)

=== modified file 'src/queue.xq'
--- src/queue.xq	2013-06-15 19:46:41 +
+++ src/queue.xq	2013-06-17 21:13:28 +
@@ -17,12 +17,12 @@
 :)
 
 (:~
- : Implementation of queue for node items, using dynamic collections.br /
+ : p Implementation of queue for node items, using dynamic collections.p/
  :
  : @author Daniel Turcanu, Sorin Nasoi
  : @project Zorba/Data Store/Data Structures/Queue
  :)
-module namespace queue = http://www.zorba-xquery.com/modules/store/data-structures/queue;;
+module namespace queue = http://zorba.io/modules/queue;;
 
 import module namespace collections-ddl = http://www.zorba-xquery.com/modules/store/dynamic/collections/ddl;;
 import module namespace collections-dml = http://www.zorba-xquery.com/modules/store/dynamic/collections/dml;;
@@ -34,7 +34,7 @@
 (:~
  : Errors namespace URI.
 :)
-declare variable $queue:errNS as xs:string := http://www.zorba-xquery.com/modules/store/data-structures/queue;;
+declare variable $queue:errNS as xs:string := http://zorba.io/modules/queue;;
  
 (:~
  : xs:QName with namespace URI=http://www.zorba-xquery.com/modules/store/data-structures/queue; and local name errNA
@@ -47,9 +47,10 @@
 declare variable $queue:errExists as xs:QName := fn:QName($queue:errNS, queue:errExists);
 
 (:~
- : Create a queue with this name. br / If queue exists, an error is raised.
+ : p Create a queue with the name given. If a queue with the given name already exists, an error is raised. p/
+ :
  : @param $name name of the new queue.
- : @return ()
+ : @return an empty sequence.
  : @error queue:errExists if the queue identified by $name already exists.
  :)
 declare %ann:sequential function queue:create($name as xs:QName) as empty-sequence()
@@ -61,7 +62,8 @@
 };
 
 (:~
- : Return the first node in the queue (the first added), without removing it.
+ : p Return the first node in the queue (the first added), without removing it. p/
+ :
  : @param $name name of the queue.
  : @return the first node, or empty sequence if queue is empty.
  : @example test/Queries/front1.xq
@@ -76,7 +78,8 @@
 };
 
 (:~
- : Return the last node in the queue (the last added), without removing it.
+ : p Return the last node in the queue (the last added), without removing it. p/
+ :
  : @param $name name of the queue.
  : @return the last node, or empty sequence if queue is empty.
  : @example test/Queries/back1.xq
@@ -91,7 +94,8 @@
 };
 
 (:~
- : Return the first node in the queue, and remove it.
+ : p Return the first node in the queue, and remove it. p/
+ :
  : @param $name name of the queue.
  : @return the first node, or empty sequence if queue is empty.
  : @example test/Queries/pop2.xq
@@ -110,7 +114,8 @@
 };
 
 (:~
- : Add a new node to the queue; the queue will contain a copy of the given node.
+ : p Add a new node to the queue; the queue will contain a copy of the given node. p/
+ :
  : @param $name name of the queue.
  : @param $value the node to be added.
  : @return ()
@@ -126,9 +131,10 @@
 };
 
 (:~
- : Checks if a queue exists and is empty.
+ : p Checks if a queue exists and is empty. p/
+ :
  : @param $name name of the queue.
- : @return true is the queue is empty or does not exist.
+ : @return true is the queue is empty, false if it is not empty.
  : @example test/Queries/empty1.xq
  : @error queue:errNA if the queue identified by $name does not exist.
  :)
@@ -141,7 +147,8 @@
 };
 
 (:~
- : Count of nodes in the queue.
+ : p Count of nodes in the queue. p/
+ :
  : @param $name name of the queue.
  : @return the count of nodes.
  : @example test/Queries/size1.xq
@@ -156,12 +163,13 @@
 };
 
 (:~
- : Copy all nodes from source queue to a destination queue.br /
- : If destination queue does not exist, it is created first. br /
- : If destination queue is not empty, the nodes are appended last.
+ : p Copy all nodes from source queue to a destination queue.
+ : If destination queue does not exist, it is created first.
+ : If destination queue is not empty, the nodes are appended last. p/
+ :
  : @param $destName name of the destination queue.
  : @param $sourceName name of the source queue.
- : @return ()
+ : @return an 

Re: [Zorba-coders] [Merge] lp:~zorba-coders/zorba/bug-1188062 into lp:zorba/queue-module

2013-06-17 Thread Chris Hillery
Review: Needs Fixing

See the updated task description on the bug report. Also, see the updated 
coding guidelines for p and error codes.
-- 
https://code.launchpad.net/~zorba-coders/zorba/bug-1188062/+merge/169946
Your team Zorba Coders is subscribed to branch lp:zorba/queue-module.

-- 
Mailing list: https://launchpad.net/~zorba-coders
Post to : zorba-coders@lists.launchpad.net
Unsubscribe : https://launchpad.net/~zorba-coders
More help   : https://help.launchpad.net/ListHelp