Skip to content

fix popup display position in Y axis #60

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 168 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
168 commits
Select commit Hold shift + click to select a range
cc4dbaf
first
tekmans Nov 16, 2015
1fbcae9
second
tekmans Nov 16, 2015
d8a2264
Add the read the doc badge
tekmans Nov 16, 2015
dc01c88
read the docs badge
tekmans Nov 16, 2015
007394d
read the docs badge
tekmans Nov 16, 2015
31f0fca
definition
tekmans Nov 16, 2015
2387fdc
definition
tekmans Nov 16, 2015
2c15da6
IT Infrastructure Management Software
tekmans Nov 16, 2015
34b10da
typo
tekmans Nov 16, 2015
ac202b8
IT Infrastructure Management Software
tekmans Nov 16, 2015
a712c57
Add first commit for .travis.yml
Nov 17, 2015
3fc7ef5
travis-ci compilation
tekmans Nov 17, 2015
50c12ae
Merge branch 'master' of github.com:pulse-project/pulse
tekmans Nov 17, 2015
9597d64
Try to build
Nov 17, 2015
46525d3
Add language
Nov 17, 2015
6ab73b0
work on build
Nov 17, 2015
2fe2845
work on build
Nov 17, 2015
d7c2aa0
add build deps
Nov 17, 2015
cbde7c7
add build deps
Nov 17, 2015
629be82
add build deps
Nov 17, 2015
d2b5ce3
publish on irc
tekmans Nov 17, 2015
b2243d3
publish on irc
tekmans Nov 17, 2015
125135e
update irc notification
tekmans Nov 17, 2015
2480bdf
update irc notification
tekmans Nov 17, 2015
e5ab039
build mmc
Nov 17, 2015
64cac25
build mmc
Nov 17, 2015
4b7c0ec
Add python-ldap as a build deps
Nov 17, 2015
c80e646
Add python-gobject as a build deps
Nov 17, 2015
e7253f9
Use sudo to makeinstall
Nov 17, 2015
9df9393
fix typo
Nov 17, 2015
dda5a09
Use cd
Nov 17, 2015
0388976
Add xsltproc as build deps
Nov 17, 2015
e0c45c8
Add docbook-xsl as build deps
Nov 17, 2015
a6bc021
remove phpunit for test
tekmans Nov 17, 2015
1a74a87
Merge branch 'master' of github.com:pulse-project/pulse
tekmans Nov 17, 2015
ff2ccdb
pass script for now
tekmans Nov 17, 2015
dec92d5
irc no notice
tekmans Nov 17, 2015
4548fd3
del lien to inventory for group
Nov 18, 2015
ad1fd85
add espace filtre packager
Aug 14, 2015
c3c780f
Display space previous and next msc
Aug 14, 2015
a00ce84
update machine recovery (add condition in select)
Aug 14, 2015
cbf7c16
update getRestrictedComputersList to able return uuids only
Aug 14, 2015
b933a47
Correction bug total number of computer research
Aug 14, 2015
167f4d8
takes into account profile_entity _... in /etc/mmc/plugins/base.ini
Aug 14, 2015
e01cfbc
add-Mandatory-field-in-the-account-creation-form
Nov 18, 2015
b7b317f
fixe display computers with registry infos
Aug 14, 2015
cc84a43
synchronisation machine name with hardware name
Aug 14, 2015
b4cda80
add controle level password
Aug 14, 2015
61363b8
add image footer
Aug 21, 2015
c424aaa
change pages web title
Aug 24, 2015
e20295c
timezone Mysql base may be different to timezone system
Sep 2, 2015
534667d
Sync with internal changes now we use github
Nov 18, 2015
3b11e48
Change logo
Nov 18, 2015
2691d95
Rename
Nov 18, 2015
ed15d33
irc channel
tekmans Nov 24, 2015
12bcb19
Fix log with php7
Nov 24, 2015
bab55c6
Add pulse 3.0 theme
Nov 29, 2015
616711e
add samba configuration for pulse to contrib
tekmans Dec 2, 2015
49c239d
ddns-update-style ad_hoc no longer supported
tekmans Dec 3, 2015
ecd0c5f
Add GLPI 0.85.5 compatibility
Dec 7, 2015
399f6fa
Re enable computer link to GLPI
Dec 7, 2015
4129bd9
Re enable computer link to GLPI
tekmans Dec 7, 2015
9f60303
Merge branch 'master' of github.com:pulse-project/pulse
tekmans Dec 7, 2015
9ff08dd
Use preg functions
Dec 7, 2015
710fc7c
Merge branch 'master' of github.com:pulse-project/pulse
tekmans Dec 8, 2015
6f9e914
logo link updated
tekmans Dec 8, 2015
f883695
Do not show menu items entitées management.
Dec 9, 2015
cd8a3cb
change call webservise glpi.deleteObjects
Dec 11, 2015
7afa4cc
Add exit code to break loop error
tekmans Dec 11, 2015
0ce8076
fix user default image
BertrandGouny Dec 14, 2015
075cf71
fix acl preg_split
BertrandGouny Dec 14, 2015
ff1fe8d
fix ssh key editing
BertrandGouny Dec 14, 2015
37d265d
Change agent logo
tekmans Dec 14, 2015
47a15ec
Merge pull request #1 from ofreax/master
neoclust Dec 14, 2015
cf04c2b
Add smb.conf to makefile
neoclust Dec 16, 2015
84163ca
Fix icons
invalid-email-address Dec 16, 2015
d9bf3b1
Fix download URL
neoclust Dec 16, 2015
e5dc246
Fix pulse logo
neoclust Dec 16, 2015
cc20414
Fix service file
neoclust Dec 16, 2015
8537ed0
Fix url
neoclust Dec 17, 2015
d16c902
Fix Name and EMAIL
neoclust Dec 17, 2015
e379254
Make it compatible with sqlalchemy 0.9x
neoclust Dec 23, 2015
5d06d91
implementing multicast DAVOS
Dec 24, 2015
8f191c5
add import missing
Dec 28, 2015
f19fb75
add icone item menu all imaging groups
Dec 30, 2015
85faac6
package-server config changes to use davos as default imaging client
spointu Dec 30, 2015
7d3b43f
change check multicast running
Dec 30, 2015
6abf7db
New version
neoclust Jan 4, 2016
32f7533
pulse: bump version to 3.0.2
neoclust Jan 4, 2016
09df121
change checking sql alchemy version checkSqlalchemy
Jan 5, 2016
3abc6d8
fix import missing
Jan 5, 2016
e824ad6
Fix Siveo URL tks jc
neoclust Jan 5, 2016
7d48be9
Fix typo, tks jc
neoclust Jan 5, 2016
df4a90d
fix name function
Jan 5, 2016
9dfd98e
fix template menu
Jan 5, 2016
a598796
fix menu multicast
Jan 5, 2016
eb488e7
format ip4
Jan 6, 2016
e3d9dec
fix exception file no exist
Jan 6, 2016
df32320
fix page blanche dans edit group
Jan 8, 2016
c201ea1
Fix the way we check glpi version
Jan 12, 2016
5106737
Remove empty line
neoclust Jan 13, 2016
fb50810
fix nameinterface not defined
Jan 19, 2016
48bc380
multicast: check the number in computer form
Jan 19, 2016
53d9fde
fix function select ip for menu multicast
Jan 19, 2016
d5bcf3b
Fix multicast current location
Jan 19, 2016
e447063
fix typo multicast object
Jan 19, 2016
6fda6a7
changes the error message for multicast
Jan 19, 2016
8f65bc7
pulse2-setup: Fix create path
neoclust Jan 21, 2016
fb58c3f
Pulse2-setup: Enhance systemd support
neoclust Jan 21, 2016
b3aeeef
Pulse2-setup: Allow to disable backuppc feature
neoclust Jan 21, 2016
5a59e69
Add infos in changelog
neoclust Jan 21, 2016
af04177
Remove old, outdated entries in changelog, to start a clean new one
neoclust Jan 21, 2016
a5550c1
Fix for listing masters on remote imaging servers
Jan 21, 2016
aeae035
Removal of the multicast setup after a completed deployment
Jan 22, 2016
93b4b44
fix check condition of the multicast process finished
Jan 22, 2016
07017b5
Change the use of require_once. This fixes the delete group page.
Jan 25, 2016
bafee98
Make code compatible with new sqlalchemy
neoclust Jan 25, 2016
a805383
Add support for newer python-twisted
neoclust Jan 25, 2016
7e39255
Add changelog entry
neoclust Jan 25, 2016
43dda40
generates menu in all imaging servers
Jan 26, 2016
5f60922
Fix pulse2-setup for backuppc. Option missing
spointu Jan 26, 2016
6e847aa
Fixes to pulse2-setup. Wrong path to systemctl
spointu Jan 26, 2016
64cafa4
Update sqlalchemy version for Debina Jessie
spointu Jan 26, 2016
59c4495
Fix debian initscript
neoclust Jan 26, 2016
00238ef
adding a filter on the selection of address mac to configure machine …
Jan 26, 2016
9bfd885
Fix for postimaging scripts. Load libpostinst.sh from /usr/lib
spointu Jan 26, 2016
bb8fae4
add function for xml file answer
Jan 27, 2016
f9f04c4
rewrite menu after clear multicast menu
Jan 27, 2016
e32dea5
Make sure we use systemd only when enabled, not only because it is in…
neoclust Jan 28, 2016
076177c
create pxe menu in all imaging server
Jan 28, 2016
ca9756b
fix identation
Jan 28, 2016
6adf7a3
Fix for machines registration in Imaging. Machines are joint to entit…
Feb 3, 2016
c37554d
Creation of samba drivers share for drivers extraction
spointu Feb 3, 2016
1e4a9b8
fix: list ip adress for menu multicast
Feb 3, 2016
4fec1bb
fix: check ipV4
Feb 3, 2016
6b304d0
check return function create multicast menu.
Feb 3, 2016
38a5b65
fix up donn menu; add function for registered Computer
Feb 4, 2016
749d3f9
Change text error
Feb 4, 2016
5fbd60a
add lien manage Master in imaging dashbord
Feb 4, 2016
25a80bb
resynchronisation target master
Feb 8, 2016
a984c08
add parameter public_mask for package_server
Feb 8, 2016
13ca336
chang function for selecting valid IP (menu multicast)
Feb 8, 2016
314f81c
Fix wording
neoclust Feb 8, 2016
8d8908e
Fix wording
neoclust Feb 8, 2016
18cf6bc
Update changelog
neoclust Feb 10, 2016
88f086e
Remove unused files
neoclust Feb 10, 2016
7074e4b
Menu generation
Feb 10, 2016
92dc18a
fix filter getAllHostNameId (resynchronisation Target Table)
Feb 10, 2016
7261565
fix monitorsUDPSender (transfert UDP)
Feb 10, 2016
3f808b0
fix monitorsUDPSender (transfert UDP)
Feb 10, 2016
3ec6aa1
fix condition monitorsUDPSender
Feb 10, 2016
e13bcd5
fix error checkDeploymentUDPSender
Feb 10, 2016
0c4a9c1
fix test transfert imaging server
Feb 11, 2016
9adc1d6
fix identation
Feb 11, 2016
6ec2ed6
supp tag dev
Feb 11, 2016
5736821
pulse2 does not require pulse2-cm anymore
neoclust Feb 11, 2016
43c05a8
Modification of css style's input field "number of computers for mult…
botheis Feb 11, 2016
be42218
Modification of css style's input field "number of computers for mult…
botheis Feb 11, 2016
5809dc8
Fix the popup display position in Y axis.
botheis Feb 11, 2016
a90f694
Fix the popup display position in Y axis.
botheis Feb 11, 2016
f84dbcc
center Placement popup
Feb 12, 2016
940f249
fix name variable
Feb 12, 2016
2efd8d0
Fix the Y position of popups.
botheis Feb 12, 2016
36bc09b
provide server imaging location
Feb 12, 2016
89ce55b
Change html4 doctype to html5 doctype
botheis Feb 12, 2016
e0ff635
delete synchroEntitieMachineTarget
Feb 12, 2016
9fddc69
chang tab Computers
Feb 12, 2016
82690c7
Merge remote-tracking branch 'upstream/master'
botheis Feb 13, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
25 changes: 25 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
branches:
only:
- master


before_install:
- sudo apt-get update -qq
- sudo apt-get install -y python-sqlalchemy python-mysqldb python-twisted-web python-ldap python-gobject xsltproc docbook-xsl

install: sh -c ' cd core && sh autogen.sh && ./configure && make && sudo make install && cd ../pulse2 && sh autogen.sh && ./configure && make && sudo make install '

script:
- echo "DONE"

notifications:
email:
recipients:
- [email protected]
on_success: change
on_failure: always
irc:
channels:
- "irc01.siveo.net#main"
on_success: always #|never|change] # default: always
on_failure: always #|never|change] # default: always
22 changes: 19 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,22 @@
## Mandriva Management Console ##
## Pulse - IT Infrastructure Management Software ##

This repository is the place where you will find **Mandriva Directory Server** and **Mandriva Pulse** projects.
Both share the same framework: **Mandriva Management Console**, this is why you have to install the core part first.
<a href='http://pulse-automation-tools.readthedocs.org/en/latest/?badge=latest'>
<img src='https://readthedocs.org/projects/pulse-automation-tools/badge/?version=latest' alt='Documentation Status' />
</a>
<a href='http://travis-ci.org/pulse-project/pulse.svg?branch=master'>
<img src='http://travis-ci.org/pulse-project/pulse.svg?branch=master' alt='Compilation Status' />
</a>

This repository is the place where you will find **Directory Server** and **Pulse** projects.
Both share the same framework: **IT Infrastructure Management Software**, this is why you have to install the core part first.

Read INSTALL files of each project for installation instructions.

Documentation : http://pulse-automation-tools.readthedocs.org/

IRC Chat

You can start a conversation with our comunity here. If you have any problem, or any question, do not hesitate! We are friendly.

server : irc.freenode.net
channel : #pulse-fr, #pulse-en
2 changes: 1 addition & 1 deletion core/agent/init/mmc-agent.in
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
# description: MMC agent

# Variables
DESC="Mandriva Management Console : mmc-agent"
DESC="Management Console : mmc-agent"
DAEMON="@sbindir@/mmc-agent"
PIDFILE="@localstatedir@/run/mmc-agent.pid"

Expand Down
8 changes: 6 additions & 2 deletions core/agent/mmc/core/audit/writers.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
"""
Contains singleton classes that writes to the audit backend
"""
# standard modules
import time

import socket
import sys
Expand Down Expand Up @@ -360,6 +362,7 @@ def _initTablesmysqlV2(self):
"""
Init MySQL table for audit database version 2
"""
nowsystem = time.strftime("%Y-%m-%d %H:%M:%S")
self.module_table = Table("module", self.metadata,
Column("id", Integer, primary_key=True),
Column("name", String(15), nullable=False),
Expand Down Expand Up @@ -431,7 +434,7 @@ def _initTablesmysqlV2(self):

self.record_table=Table("record", self.metadata,
Column("id", Integer, primary_key=True),
Column("date", DateTime , default=func.now(), nullable=False),
Column("date", DateTime , default=nowsystem, nullable=False),
Column("result", Boolean, nullable=False),
Column("initiator_id", Integer, ForeignKey('initiator.id'), nullable=False),
Column("source_id", Integer, ForeignKey('source.id'), nullable=False),
Expand All @@ -446,6 +449,7 @@ def _initTablespostgresV2(self):
FIXME: to check
PostgreSQL db tables for audit database version 2
"""
nowsystem = time.strftime("%Y-%m-%d %H:%M:%S")
self.module_table = Table("module", self.metadata,
Column("id", Integer, primary_key=True),
Column("name", String(15), nullable=False)
Expand Down Expand Up @@ -507,7 +511,7 @@ def _initTablespostgresV2(self):

self.record_table=Table("record", self.metadata,
Column("id", Integer, primary_key=True),
Column("date", DateTime, default=func.now(), nullable=False),
Column("date", DateTime, default=nowsystem, nullable=False),
Column("result", Boolean, nullable=False),
Column("initiator_id", Integer, ForeignKey('initiator.id'), nullable=False),
Column("source_id", Integer, ForeignKey('source.id')),
Expand Down
5 changes: 4 additions & 1 deletion core/agent/mmc/database/database_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,10 @@
from sqlalchemy import func
from sqlalchemy.orm import sessionmaker, Query
from sqlalchemy.exc import NoSuchTableError
from sqlalchemy.orm.util import _entity_descriptor
try:
from sqlalchemy.orm.util import _entity_descriptor
except ImportError:
from sqlalchemy.orm.base import _entity_descriptor

Session = sessionmaker()
logger = logging.getLogger()
Expand Down
7 changes: 4 additions & 3 deletions core/agent/mmc/database/sqlalchemy_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,16 @@
# along with Pulse 2; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
# MA 02110-1301, USA.

from distutils.version import StrictVersion
from sqlalchemy import __version__

MIN_VERSION = '0.6.3' # Debian Squeeze version
MAX_VERSION = '0.7.9' # Debian Jessie version
MAX_VERSION = '0.9.8' # Debian Jessie version
CUR_VERSION = __version__

def checkSqlalchemy():
if MIN_VERSION <= CUR_VERSION <= MAX_VERSION:
#if MIN_VERSION <= CUR_VERSION <= MAX_VERSION:
if StrictVersion(MIN_VERSION) <= StrictVersion(CUR_VERSION) <= StrictVersion(MAX_VERSION) :
return True
else:
return False
6 changes: 3 additions & 3 deletions core/agent/mmc/plugins/base/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2376,7 +2376,7 @@ def getRestrictedComputersListLen(self, ctx, filt):
"""
return len(self.getComputersList(filt))

def getRestrictedComputersList(self, ctx, min, max, filt, advanced):
def getRestrictedComputersList(self, ctx, min, max, filt, advanced, justid):
"""
we can't do that directly in ldap, so we do it in python, just to return less xml...
"""
Expand Down Expand Up @@ -2563,9 +2563,9 @@ def getRestrictedComputersListLen(self, filt = None):
ctx = self.currentContext
return xmlrpcCleanup(ComputerManager().getRestrictedComputersListLen(ctx, filt))

def getRestrictedComputersList(self, min = 0, max = -1, filt = None, advanced = True):
def getRestrictedComputersList(self, min = 0, max = -1, filt = None, advanced = True, justid=False):
ctx = self.currentContext
return xmlrpcCleanup(ComputerManager().getRestrictedComputersList(ctx, min, max, filt, advanced))
return xmlrpcCleanup(ComputerManager().getRestrictedComputersList(ctx, min, max, filt, advanced, justid))

def getComputerCount(self, filt = {}):
ctx = self.currentContext
Expand Down
59 changes: 58 additions & 1 deletion core/agent/mmc/plugins/base/externalldap.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,13 +169,18 @@ def readConf(self):
if option.startswith(PROFILEACL):
self.profilesAcl[option.replace(PROFILEACL, "").lower()] = self.get(self.section, option)

PROFILEENTITY = 'profile_entity_'
for option in self.options(self.section):
if option.startswith(PROFILEENTITY):
self.profilesEntity[option.replace(PROFILEENTITY, '').lower()] = self.get(self.section, option)

def setDefault(self):
ProvisionerConfig.setDefault(self)
self.profileAttr = None
self.profilesAcl = {}
self.profileGroupMapping = False
self.profileGroupPrefix = ""

self.profilesEntity = {}

class ExternalLdapProvisioner(ProvisionerI):
"""
Expand Down Expand Up @@ -206,6 +211,58 @@ def doProvisioning(self, authtoken):
self.logger.info("No profile information for user %s in attribute %s" % (uid, self.config.profileAttr))
profile = ""
profile = profile.strip()

try:
entities = self.config.profilesEntity[profile].split()
self.logger.info("*******ENTITE '%s' " % (entities))
except KeyError:
if self.config.profilesEntity.has_key("default"):
entities = self.config.profilesEntity["default"].split()
self.logger.info("Set the default profile to user.")
profile = 'default'
else:
self.logger.info("No entity defined in configuration file for profile '%s'" % profile)
self.logger.info("Setting user's entity to empty")
entities = []
if profile and entities:
tmp = []
for entity in entities:
if entity.startswith('%') and entity.endswith('%'):
attr = entity.strip('%')
if attr in userentry:
tmp.extend(userentry[attr])
else:
self.logger.info("The user '%s' doesn't have an attribute '%s'" % (uid, attr))

elif entity.startswith('plugin:'):
plugin = entity.replace('plugin:', '')
searchpath = os.path.join(os.path.dirname(__file__), 'provisioning_plugins')
try:
f, p, d = imp.find_module(plugin, [searchpath])
mod = imp.load_module(plugin, f, p, d)
klass = mod.PluginEntities
found = klass().get(authtoken)
if found:
self.logger.info("Plugin '%s' found these entities: %s" % (plugin, found))
else:
self.logger.info("Plugin '%s' found no matching entity" % plugin)
tmp.extend(found)
except ImportError:
self.logger.error("The plugin '%s' can't be imported" % plugin)
except Exception, e:
self.logger.error("Error while using the plugin '%s'" % plugin)
self.logger.exception(e)



else:
tmp.append(entity)
entities = tmp[:]
self.logger.info("****Setting user '%s' entities corresponding to user profile '%s': %s" % (uid, profile, str(entities)))
from pulse2.database.inventory import Inventory
Inventory().setUserEntities(uid, entities)


try:
acls = self.config.profilesAcl[profile]
except KeyError:
Expand Down
4 changes: 2 additions & 2 deletions core/web/forgotpassword.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@

?>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<!DOCTYPE html>
<html>
<head>
<title>Mandriva Linux / Mandriva Management Console / Reset Password</title>
<title>Siveo Pulse</title>
<link href="<?php echo $root; ?>graph/login/index.css" rel="stylesheet" media="screen" type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="imagetoolbar" content="false" />
Expand Down
13 changes: 7 additions & 6 deletions core/web/graph/bootstrap-alerts.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,13 @@
*/
.alert {
padding: 8px 35px 8px 14px;
margin-bottom: 10px;
margin-top: 10px;
margin:10px 0px;
text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
background-color: #fcf8e3;
border: 1px solid #fbeed5;
-webkit-border-radius: 4px;
-moz-border-radius: 4px;
border-radius: 4px;
-webkit-border-radius: 2px;
-moz-border-radius: 2px;
border-radius: 2px;
color: #c09853;
font-size: 12px;
}
Expand All @@ -36,10 +35,12 @@
}
.alert-danger,
.alert-error {
background-color: #f2dede;
/*background-color: #f2dede;*/
background-color: #f9efef;
border-color: #eed3d7;
color: #b94a48;
}

.alert-info {
background-color: #d9edf7;
border-color: #bce8f1;
Expand Down
Loading