This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"wine": { | |
"name": "Canto dei Mori Castellani Chianti Classico Riserva 2010", | |
"image": "https:\/\/admin.wtso.com\/images\/56c33e5041b93.jpg", | |
"short_description": "Comprised of 100% Sangiovese from the extraordinary 2010 vintage, this Chianti Classico Riserva offers up intense aromas of red berries, plum, balsamic, herbs, leather, and minerals. Over-delivering on the palate, the wine is full-bodied and velvety, balanced by bright acidity and culminating in a lengthy finish bursting with fruit. Pair it with lamb or rabbit rag\u00f9, mushroom ravioli, or homemade pizzas topped with arugula and prosciutto for a deliciously memorable meal!", | |
"long_description": "Print \n Canto dei Mori Castellani Chianti Classico Riserva 2010\n\u00a0\n\u00a0\n \n\nBy Canto dei Mori\u00a0\nChianti Classico Riserva 2010\n\u00a0\nTechnical Details\nRegion: Tuscany\u00a0\nAlcohol: 13.00%\u00a0\nGrapes: 100% Sangiovese \u00a0\n\nVinification and Refinement\u00a0\nWe produce this Chianti Classico from selec |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public override void FeatureActivated(SPFeatureReceiverProperties properties) | |
{ | |
SPWeb web = properties.Feature.Parent as SPWeb; | |
web.AllowUnsafeUpdates = true; | |
try | |
{ | |
f(Microsoft.SharePoint.Publishing.PublishingWeb.IsPublishingWeb(web)) | |
{ | |
var publishingWeb = Microsoft.SharePoint.Publishing.PublishingWeb.GetPublishingWeb(web); | |
foreach(SPListItem item in publishingWeb.PagesList.Items) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# variables | |
$siteUrl = "http://www.example.ma" | |
$defaultPageFileName = "Home.aspx" | |
Add-PSSnapin Microsoft.SharePoint.PowerShell -EA SilentlyContinue | |
$web = GetSPWeb -Identity $siteUrl | |
if([Microsoft.SharePoint.Publishing.PublishingWeb]::IsPublishingWeb($web)) { | |
$publishingWeb = [Microsoft.SharePoint.Publishing.PublishingWeb]::GetPublishingWeb($web) | |
$publishingWeb.DefaultPage = ($publishingWeb.PagesList.Items | Where-Object { $_.File.Name -eq $defaultPageFileName }).File | |
$publishingWeb.Update() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function PreSaveAction() { | |
try { | |
var selectedValues = JSON.parse($('[id*="$ClientPeoplePicker_HiddenInput"]').val()), | |
returnValue = true; | |
for(i=0; i < selectedValues.length; i++){ | |
var selectedValue = selectedValues[i]; | |
if(selectedValue.IsResolved && (selectedValue.ProviderName == "AllUsers" || selectedValue.Key == "c:0(.s|true")){ | |
returnValue = false; | |
} | |
if(!selectedValue.IsResolved && (selectedValue.Key.toLowerCase() == "tout le monde" || selectedValue.Key == "الجميع")){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2016-02-29 17:14:00 [upvg] DEBUG: [Failure instance: Traceback: <class '_mysql_exceptions.OperationalError'>: (1213, 'Deadlock found when trying to get lock; try restarting transaction') | |
c:\python27\lib\threading.py:530:__bootstrap_inner | |
c:\python27\lib\threading.py:483:run | |
c:\python27\lib\site-packages\twisted\_threads\_threadworker.py:46:work | |
c:\python27\lib\site-packages\twisted\_threads\_team.py:190:doWork | |
--- <exception caught here> --- | |
c:\python27\lib\site-packages\twisted\python\threadpool.py:246:inContext | |
c:\python27\lib\site-packages\twisted\python\threadpool.py:262:<lambda> | |
c:\python27\lib\site-packages\twisted\python\context.py:118:callWithContext | |
c:\python27\lib\site-packages\twisted\python\context.py:81:callWithContext |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- phpMyAdmin SQL Dump | |
-- version 4.1.14 | |
-- http://www.phpmyadmin.net | |
-- | |
-- Host: 127.0.0.1 | |
-- Generation Time: Feb 21, 2016 at 09:12 PM | |
-- Server version: 5.6.17 | |
-- PHP Version: 5.5.12 | |
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"context": { | |
"Errors": { | |
"$t": "modules.common.model.Errors", | |
"$i": "" | |
} | |
}, | |
"store": { | |
"modules.unimplemented.entity.ContentStreamResult": { | |
"1161898907": { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.ComponentModel; | |
using System.Data; | |
using System.Drawing; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using System.Windows.Forms; | |
using System.Net; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Definition of models. | |
""" | |
from django.db import models | |
class Page(models.Model): | |
created = models.DateTimeField(auto_now_add=True, editable=False) | |
modified = models.DateTimeField(auto_now=True, editable=False) |
NewerOlder