Ver código fonte

[doc2] Add missing licence files

Romain Rigaux 10 anos atrás
pai
commit
1e606be

+ 1 - 1
desktop/core/src/desktop/models.py

@@ -964,7 +964,7 @@ class Document2Permission(models.Model):
   perms = models.CharField(default=READ_PERM, max_length=10, db_index=True, choices=( # one perm
     (READ_PERM, 'read'),
     (WRITE_PERM, 'write'),
-    (COMMENT_PERM, 'comment'), # PLAYER PERM?    
+    (COMMENT_PERM, 'comment'), # PLAYER PERM?
   ))
 
   link = models.CharField(default=uuid_default, max_length=255, unique=True) # Short link like dropbox

+ 17 - 0
desktop/core/src/desktop/static/desktop/js/share.vm.js

@@ -1,3 +1,20 @@
+// Licensed to Cloudera, Inc. under one
+// or more contributor license agreements.  See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership.  Cloudera, Inc. 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.
+
+
 var shareViewModel;
 
 function ShareViewModel(updateDocF) {

+ 18 - 1
desktop/core/src/desktop/static/desktop/js/share2.vm.js

@@ -1,3 +1,20 @@
+// Licensed to Cloudera, Inc. under one
+// or more contributor license agreements.  See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership.  Cloudera, Inc. 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.
+
+
 var shareViewModel;
 
 function ShareViewModel(updateDocF) {
@@ -153,7 +170,7 @@ function setupSharing(id, updateFunc) {
 
     $("#documentShareAddBtn").on("click", function () {
       if (! $(this).hasClass("disabled")){
-        handleTypeaheadSelection();  
+        handleTypeaheadSelection();
       }
     });
   }

+ 1 - 1
desktop/core/src/desktop/templates/home2.mako

@@ -223,7 +223,7 @@ ${ commonshare2() | n,unicode }
     shareViewModel.setDocId(-1);
 
     viewModel.loadDocuments(location.getParameter('path') ? location.getParameter('path') : '/');
-    
+
     prepareShareModal = function(job) {
       shareViewModel.setDocId(viewModel.shareFormDocId());
       openShareModal();