You are viewing a plain text version of this content. The canonical link for it is here.
Posted to nuvem-commits@incubator.apache.org by js...@apache.org on 2011/03/27 00:02:38 UTC
svn commit: r1085836 - in /incubator/nuvem/trunk/nuvem-parallel/nuvem:
button.py every.py location.py
Author: jsdelfino
Date: Sun Mar 27 00:02:37 2011
New Revision: 1085836
URL: http://svn.apache.org/viewvc?rev=1085836&view=rev
Log:
Add components to help apps handle user interactions, timer and location change events.
Added:
incubator/nuvem/trunk/nuvem-parallel/nuvem/button.py
incubator/nuvem/trunk/nuvem-parallel/nuvem/every.py
incubator/nuvem/trunk/nuvem-parallel/nuvem/location.py
Added: incubator/nuvem/trunk/nuvem-parallel/nuvem/button.py
URL: http://svn.apache.org/viewvc/incubator/nuvem/trunk/nuvem-parallel/nuvem/button.py?rev=1085836&view=auto
==============================================================================
--- incubator/nuvem/trunk/nuvem-parallel/nuvem/button.py (added)
+++ incubator/nuvem/trunk/nuvem-parallel/nuvem/button.py Sun Mar 27 00:02:37 2011
@@ -0,0 +1,20 @@
+# 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.
+
+def get(r, content):
+ return content.get(r)
+
Added: incubator/nuvem/trunk/nuvem-parallel/nuvem/every.py
URL: http://svn.apache.org/viewvc/incubator/nuvem/trunk/nuvem-parallel/nuvem/every.py?rev=1085836&view=auto
==============================================================================
--- incubator/nuvem/trunk/nuvem-parallel/nuvem/every.py (added)
+++ incubator/nuvem/trunk/nuvem-parallel/nuvem/every.py Sun Mar 27 00:02:37 2011
@@ -0,0 +1,26 @@
+# 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.
+
+def get(r, sec, content):
+ if r[0:1] == ('setup',):
+ s = sec.get(r)
+ if s is None or s == 0:
+ return ''
+ return 'setupIntervalHandler(' + str(int(s)) + ');'
+
+ return content.get(r)
+
Added: incubator/nuvem/trunk/nuvem-parallel/nuvem/location.py
URL: http://svn.apache.org/viewvc/incubator/nuvem/trunk/nuvem-parallel/nuvem/location.py?rev=1085836&view=auto
==============================================================================
--- incubator/nuvem/trunk/nuvem-parallel/nuvem/location.py (added)
+++ incubator/nuvem/trunk/nuvem-parallel/nuvem/location.py Sun Mar 27 00:02:37 2011
@@ -0,0 +1,23 @@
+# 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.
+
+def get(r, content):
+ if r[0:1] == ('setup',):
+ return 'setupLocationHandler();'
+
+ return content.get(r)
+