dev | 22 Jul 22:50 2014

[freenas/freenas] 4ff4fbb: Add more new features.

branch: master
Repository: freenas/freenas
Pushed by: git
Pushed to: branch master
commit 4ff4fbb85ba39a8c90f708fdb359e6a09cd0a0dc
Author: dlavigne <dru <at> freebsd.org>
Date:   Tue Jul 22 16:49:50 2014 -0400

    Add more new features.
---
 docs/userguide/index.rst | 554 ++++++++++++++++++++---------------------------
 1 file changed, 238 insertions(+), 316 deletions(-)

diff --git a/docs/userguide/index.rst b/docs/userguide/index.rst
index 8f1e184..c81464c 100644
--- a/docs/userguide/index.rst
+++ b/docs/userguide/index.rst
 <at>  <at>  -164,19 +164,27  <at>  <at>  The GUI has been reorganized as follows:

 The following features have been added or changed:

-* The "WebGUI -> HTTPS Port" field has been added to System → Settings → General.
+* The "WebGUI -> HTTPS Port" field has been added to System → General.

-* The "Directory Services" field is now deprecated and has been removed from System → Settings →
General. FreeNAS® now supports the
+* The "System dataset pool" and "Use system dataset for syslog" fields have been removed from System →
Advanced as these are now set in System
+  → System Dataset.
+
(Continue reading)

dev | 22 Jul 22:48 2014

[freenas/freenas] 601bbb2: If we can't find the id, don't even try to make a url

branch: master
Repository: freenas/freenas
Pushed by: git
Pushed to: branch master
commit 601bbb2e38e4cdd46aa1122b395894fcc059568e
Author: John Hixson <john@...>
Date:   Tue Jul 22 13:48:15 2014 -0700

    If we can't find the id, don't even try to make a url
---
 gui/directoryservice/views.py            | 4 ++--
 gui/freeadmin/static/lib/js/freeadmin.js | 8 +++++---
 2 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/gui/directoryservice/views.py b/gui/directoryservice/views.py
index 0de23f3..534b1f2 100644
--- a/gui/directoryservice/views.py
+++ b/gui/directoryservice/views.py
 <at>  <at>  -32,7 +32,7  <at>  <at>  from django.http import HttpResponse
 from django.shortcuts import render
 from django.utils.translation import ugettext_lazy as _

-from freenasUI.directoryservice import forms, models
+from freenasUI.directoryservice import forms, models, utils
 from freenasUI.freeadmin.options import FreeBaseInlineFormSet
 from freenasUI.freeadmin.views import JsonResp
 from freenasUI.services.models import services
 <at>  <at>  -334,7 +334,7  <at>  <at>  def directoryservice_idmap_tdb2(request, id):

 
(Continue reading)

dev | 22 Jul 22:41 2014

[freenas/freenas] 591738d: Make rid the default for AD and move stuff to utils file

branch: master
Repository: freenas/freenas
Pushed by: git
Pushed to: branch master
commit 591738d66fb8b012f5daed1f7a977dab90d4b053
Author: John Hixson <john@...>
Date:   Tue Jul 22 13:41:10 2014 -0700

    Make rid the default for AD and move stuff to utils file
---
 gui/directoryservice/forms.py       | 187 +-------------------------------
 gui/directoryservice/utils.py       | 205 ++++++++++++++++++++++++++++++++++++
 gui/freeadmin/static/css/custom.css |  11 +-
 3 files changed, 210 insertions(+), 193 deletions(-)

diff --git a/gui/directoryservice/forms.py b/gui/directoryservice/forms.py
index 9446a75..21e300f 100644
--- a/gui/directoryservice/forms.py
+++ b/gui/directoryservice/forms.py
 <at>  <at>  -39,192 +39,13  <at>  <at>  from freenasUI.common.freenasldap import (
     FreeNAS_ActiveDirectory,
     FreeNAS_LDAP
 )
-from freenasUI.directoryservice import models
+from freenasUI.directoryservice import models, utils
 from freenasUI.middleware.notifier import notifier
 from freenasUI.services.exceptions import ServiceFailed

 log = logging.getLogger('directoryservice.form')

(Continue reading)

dev | 22 Jul 22:06 2014

[freenas/freenas] fbfcd16: Remove NAA column from iSCSI Extents datagrid

branch: master
Repository: freenas/freenas
Pushed by: git
Pushed to: branch master
commit fbfcd16bb9b24f585e5964f4b3866112c66cfa90
Author: William Grzybowski <wg@...>
Date:   Tue Jul 22 17:07:05 2014 -0300

    Remove NAA column from iSCSI Extents datagrid

    Ticket:	#5588
---
 gui/services/admin.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/gui/services/admin.py b/gui/services/admin.py
index f998e05..bb3b49c 100644
--- a/gui/services/admin.py
+++ b/gui/services/admin.py
 <at>  <at>  -137,6 +137,7  <at>  <at>  class ISCSITargetExtentFAdmin(BaseFreeAdmin):
     exclude_fields = (
         'id',
         'iscsi_target_extent_filesize',
+        'iscsi_target_extent_naa',
     )
dev | 22 Jul 22:02 2014

[freenas/freenas] 1a0b963: Remove comment about vol dbnest as its not valid since 30385297a6

branch: master
Repository: freenas/freenas
Pushed by: git
Pushed to: branch master
commit 1a0b963a717b926b0972f83f5953578278b9e95a
Author: William Grzybowski <wg@...>
Date:   Tue Jul 22 17:02:22 2014 -0300

    Remove comment about vol dbnest as its not valid since 30385297a6

    While I here do a small cleanup.
---
 src/freenas/usr/local/libexec/nas/generate_afpd_conf.py | 17 ++++++-----------
 1 file changed, 6 insertions(+), 11 deletions(-)

diff --git a/src/freenas/usr/local/libexec/nas/generate_afpd_conf.py b/src/freenas/usr/local/libexec/nas/generate_afpd_conf.py
index 76b3515..b5dca73 100755
--- a/src/freenas/usr/local/libexec/nas/generate_afpd_conf.py
+++ b/src/freenas/usr/local/libexec/nas/generate_afpd_conf.py
 <at>  <at>  -14,6 +14,8  <at>  <at>  os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'freenasUI.settings')
 from django.db.models.loading import cache
 cache.get_apps()

+from freenasUI.sharing.models import AFP_Share
+from freenasUI.services.models import AFP

 def main():
     """Use the django ORM to generate a config file.  We'll build the
 <at>  <at>  -23,12 +25,6  <at>  <at>  def main():
     afp_config = "/usr/local/etc/afp.conf"
(Continue reading)

dev | 22 Jul 21:46 2014

[freenas/freenas] 5ce411f: Error about not enough available disks

branch: master
Repository: freenas/freenas
Pushed by: git
Pushed to: branch master
commit 5ce411fdde0892a5d1673a677a6b311d87b80ac0
Author: William Grzybowski <wg@...>
Date:   Tue Jul 22 15:41:03 2014 -0300

    Error about not enough available disks
---
 gui/system/forms.py                            | 11 +++++++++--
 gui/templates/system/initialwizard_volume.html |  2 +-
 2 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/gui/system/forms.py b/gui/system/forms.py
index 2155c57..e9ee67a 100644
--- a/gui/system/forms.py
+++ b/gui/system/forms.py
 <at>  <at>  -1228,13 +1228,12  <at>  <at>  class InitialWizardVolumeForm(Form):
     def _types_avail(self, disks):
         types = []
         ndisks = self._higher_disks_group(disks)[1]
-        log.error("ndisks %r - %r", ndisks, disks)
         if ndisks >= 4:
             types.extend(['raid10', 'raidz2'])
         if ndisks >= 3:
             types.append('raidz1')
         if ndisks > 0:
-            types.append('stripe')
+            types.extend(['auto', 'stripe'])
(Continue reading)

dev | 22 Jul 21:46 2014

[freenas/freenas] 81502f2: Fix load of values for the ownership screen

branch: master
Repository: freenas/freenas
Pushed by: git
Pushed to: branch master
commit 81502f2ff02926e04bb8599aa7c0c91672956e74
Author: William Grzybowski <wg@...>
Date:   Tue Jul 22 14:30:07 2014 -0300

    Fix load of values for the ownership screen
---
 gui/freeadmin/static/lib/js/freeadmin/WizardShares.js | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/gui/freeadmin/static/lib/js/freeadmin/WizardShares.js b/gui/freeadmin/static/lib/js/freeadmin/WizardShares.js
index 8397028..8e28f03 100644
--- a/gui/freeadmin/static/lib/js/freeadmin/WizardShares.js
+++ b/gui/freeadmin/static/lib/js/freeadmin/WizardShares.js
 <at>  <at>  -348,10 +348,14  <at>  <at>  define([
       me._ownershipUserCreate.set("value", data.usercreate);
       me._ownershipGroupCreate.set("value", data.groupcreate);
       if(data.usercreate) {
-        me._ownershipUser.set("disabled", true);
+        me._ownershipUserCreate.set("disabled", false);
+      } else {
+        me._ownershipUserCreate.set("disabled", true);
       }
       if(data.groupcreate) {
-        me._ownershipGroup.set("disabled", true);
+        me._ownershipGroupCreate.set("disabled", false);
+      } else {
(Continue reading)

dev | 22 Jul 21:46 2014

[freenas/freenas] 13100f7: Validate unexistent user/group and that has not been checked for creation

branch: master
Repository: freenas/freenas
Pushed by: git
Pushed to: branch master
commit 13100f7f2d438310b660b743fd8eddcfdd006ecb
Author: William Grzybowski <wg@...>
Date:   Tue Jul 22 14:58:27 2014 -0300

    Validate unexistent user/group and that has not been checked for creation
---
 .../static/lib/js/freeadmin/WizardShares.js        | 36 ++++++++++++++++++++--
 1 file changed, 34 insertions(+), 2 deletions(-)

diff --git a/gui/freeadmin/static/lib/js/freeadmin/WizardShares.js b/gui/freeadmin/static/lib/js/freeadmin/WizardShares.js
index 8e28f03..83dd706 100644
--- a/gui/freeadmin/static/lib/js/freeadmin/WizardShares.js
+++ b/gui/freeadmin/static/lib/js/freeadmin/WizardShares.js
 <at>  <at>  -194,10 +194,26  <at>  <at>  define([
       me._storeGroups.fetch();

       me._ownershipUser = new ComboBox({
+        required: true,
         store: me._storeUsers,
         searchAttr: 'name',
         intermediateChanges: true,
-        value: 'root'
+        value: 'root',
+        invalidMessage: gettext('This user does not exist.'),
+        validator: function(value, constraints) {
+          var found;
(Continue reading)

dev | 22 Jul 21:46 2014

[freenas/freenas] 0043f18: Hook up ownership screen in the backend

branch: master
Repository: freenas/freenas
Pushed by: git
Pushed to: branch master
commit 0043f1872bbd012618eb9d9eedeaebfbb1a547a7
Author: William Grzybowski <wg@...>
Date:   Tue Jul 22 11:45:54 2014 -0300

    Hook up ownership screen in the backend
---
 gui/system/forms.py | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 53 insertions(+)

diff --git a/gui/system/forms.py b/gui/system/forms.py
index 855974e..2155c57 100644
--- a/gui/system/forms.py
+++ b/gui/system/forms.py
 <at>  <at>  -48,6 +48,7  <at>  <at>  from django.utils.translation import ugettext as __

 from dojango import forms
 from freenasUI import choices
+from freenasUI.account.models import bsdGroups, bsdUsers
 from freenasUI.common.forms import ModelForm, Form
 from freenasUI.freeadmin.views import JsonResp
 from freenasUI.middleware.exceptions import MiddlewareError
 <at>  <at>  -217,12 +218,63  <at>  <at>  class InitialWizard(CommonWizard):
                 share_allowguest = share.get('share_allowguest')
                 share_timemachine = share.get('share_timemachine')
                 share_iscsisize = share.get('share_iscsisize')
+                share_user = share.get('share_user')
(Continue reading)

dev | 22 Jul 21:46 2014

[freenas/freenas] 08f8ddc: Add middleware method to create a group

branch: master
Repository: freenas/freenas
Pushed by: git
Pushed to: branch master
commit 08f8ddcaa780cbc90ff3455a6ef3d40529cf8016
Author: William Grzybowski <wg@...>
Date:   Tue Jul 22 11:13:13 2014 -0300

    Add middleware method to create a group
---
 gui/middleware/notifier.py | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/gui/middleware/notifier.py b/gui/middleware/notifier.py
index 6e181b2..3f93320 100644
--- a/gui/middleware/notifier.py
+++ b/gui/middleware/notifier.py
 <at>  <at>  -178,6 +178,7  <at>  <at>  class notifier:

     from os import system as __system
     from pwd import getpwnam as ___getpwnam
+    from grp import getgrnam as ___getgrnam
     IDENTIFIER = 'notifier'

     def _system(self, command):
 <at>  <at>  -2211,6 +2212,17  <at>  <at>  class notifier:
         user = self.___getpwnam(username)
         return (user.pw_uid, user.pw_gid, user.pw_passwd, smb_hash)

+    def group_create(self, name):
(Continue reading)

dev | 22 Jul 21:46 2014

[freenas/freenas] 5895459: Fix getgrnam call

branch: master
Repository: freenas/freenas
Pushed by: git
Pushed to: branch master
commit 58954593ec01d75a0de88d75392c3db69399cd73
Author: William Grzybowski <wg@...>
Date:   Tue Jul 22 11:43:05 2014 -0300

    Fix getgrnam call
---
 gui/middleware/notifier.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gui/middleware/notifier.py b/gui/middleware/notifier.py
index 3f93320..80ae225 100644
--- a/gui/middleware/notifier.py
+++ b/gui/middleware/notifier.py
 <at>  <at>  -2220,7 +2220,7  <at>  <at>  class notifier:
         proc.communicate()
         if proc.returncode != 0:
             raise MiddlewareError(_('Failed to create group %s') % name)
-        grnam = ___getgrnam(name)
+        grnam = self.___getgrnam(name)
         return grnam.gr_gid

     def user_lock(self, username):

Gmane